I use the Gatekeeper Helm Chart with a set of ingress rules in controllerManager.networkPolicy.ingress. When I do a Helm release, this error message occurs: coalesce.go:286: warning: cannot overwrite table with non table for gatekeeper.gatekeeper.controllerManager.networkPolicy.ingress (map[])
It seems, that the ingress rules are applied correctly (checked via k describe networkpolicies.networking.k8s.io gatekeeper-controller-manager).
What did you expect to happen:
The type of the object controllerManager.networkPolicy.ingress in the values.yaml should be changed from dict to list, so it looks like this: ingress: []
Anything else you would like to add:
The semantics of network policies in the template expects a set of list items. The example also shows to use a list. I fixed this in a local copy of this chart and the error was not raised.
What steps did you take and what happened:
I use the Gatekeeper Helm Chart with a set of ingress rules in
controllerManager.networkPolicy.ingress
. When I do a Helm release, this error message occurs:coalesce.go:286: warning: cannot overwrite table with non table for gatekeeper.gatekeeper.controllerManager.networkPolicy.ingress (map[])
It seems, that the ingress rules are applied correctly (checked viak describe networkpolicies.networking.k8s.io gatekeeper-controller-manager
).What did you expect to happen:
The type of the object
controllerManager.networkPolicy.ingress
in the values.yaml should be changed from dict to list, so it looks like this:ingress: []
Anything else you would like to add:
The semantics of network policies in the template expects a set of list items. The example also shows to use a list. I fixed this in a local copy of this chart and the error was not raised.
Environment:
kubectl version
): 1.31