-
Notifications
You must be signed in to change notification settings - Fork 196
Open
Description
While using ValuesFrom from configmap and keeping optional: true as config, it is showing the following error:
missing key '' in ConfigMap ''
Is this expected behaviour, I am using same configmap for multiple keys. I think the optional field is working only when the configmap is not present altogether. Instead if configmap is present and the key is also not present, the optional field should be respected.
I am talking about the following piece of code
helm-controller/controllers/helmrelease_controller.go
Lines 544 to 548 in 6f0b7cd
| if data, ok := resource.Data[v.GetValuesKey()]; !ok { | |
| return nil, fmt.Errorf("missing key '%s' in %s '%s'", v.GetValuesKey(), v.Kind, namespacedName) | |
| } else { | |
| valuesData = []byte(data) | |
| } |
Why is the optional not handled in this case?
Metadata
Metadata
Assignees
Labels
No labels