I tried to use command “helm install —set app1.key1=abc my chart”, and it worked. So I read the source code helm command, eventually I figured out the root cause.
The structure of the values map should be hierarchical.
Previously the value map was created with the following code,
Values := make(map[string]interface{})
values[“app1.key1”] = “abc”
The above code isn’t correct, and it should be something as below,