OLM doesn't add imagePullSecrets value to the operator service account after upgrading to SDK 1.34.1 #6768
Labels
language/go
Issue is related to a Go operator project
triage/support
Indicates an issue that is a support question.
Bug Report
We recently upgraded to SDK 1.34.1 and observed that the service account created by the OLM after installing the operator on kubernetes cluster (v1.27) doesn't have the imagePullSecrets value defined.
In the service account definition file located at operator/config/rbac/service_account.yaml , it has imagePullSecret defined correctly.
What did you do?
Upgraded operator code to SDK 1.34.1, K8s v1.29 and Go 1.21.9 .
What did you expect to see?
Operator should be able to create serviceAccount as defined in the source file in operator/config/rbac/service_account.yaml
What did you see instead? Under which circumstances?
Operator creates the serviceAccount however it doesn't have the imagePullSecret key value defined.
Environment
Operator SDK v1.31.4
Go: 1.21.9
Operator K8s version: 1.29
Operator type:
Go operator
/language go
Kubernetes cluster type:
Test environment : IBM Kubernetes service v1.27
$ operator-sdk version
operator-sdk version: "v1.34.1", commit: "edaed1e5057db0349568e0b02df3743051b54e68", kubernetes version: "1.28.0", go version: "go1.21.7", GOOS: "linux", GOARCH: "amd64"
$ go version
(if language is Go)go version go1.21.9 linux/amd64
$ kubectl version
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: