Helm operator does not update CR child serviceaccount ImagePullSecret when watched CR ImagePullSecret changed. #6695
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
language/helm
Issue is related to a Helm operator project
Milestone
Bug Report
What did you do?
Helm operator does not update CR child serviceaccount ImagePullSecret when operator watched CR ImagePullSecret changed.
I defined a CRD kong for helm chart Kong, and use helm operator to deploy it, and a watches.yaml is also defined to watch kong.
First the helm operator pod is deployed, and then a new CR instance
kong/gateway
without ImagePullSecret is created, so childserviceaccount/gateway-kong
and childpod/ gateway-kong
are created accordingly. Because no ImagePullSecret is provided in kong/gateway, so no ImagePullSecret is inserviceaccount/gateway-kong
and the pod is hang in stateImagePullBackOff
.Then ImagePullSecret is added for
kong/gateway
, but theserviceaccount/gateway-kong
with owner tokong/gateway
is not updated accordingly. And no new text are logged in helm operator pod log for this change.What did you expect to see?
When ImagePullSecret is added/changed for
kong/gateway
, theserviceaccount/gateway-kong
with owner tokong/gateway
is update accordingly by helm operator and then the child podpod/ gateway-kong
is created and running without errorImagePullBackOff
.What did you see instead? Under which circumstances?
When ImagePullSecret is added/changed for
kong/gateway
, theserviceaccount/gateway-kong
with owner tokong/gateway
is NOT update accordingly by helm operator and the child podpod/ gateway-kong
is hang inImagePullBackOff
.pod list:
helm operator log:
Environment
Operator type:
Kubernetes cluster type:
$ operator-sdk version
$ go version
(if language is Go)go: 1.21.7.
$ kubectl version
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: