initImage
fails when using hashlocked operator image
#1818
Labels
initImage
fails when using hashlocked operator image
#1818
Report
initImage
doesn't match that of operator resulting in failureMore about the problem
I hash-lock (i.e. use a digest) to run the operator, i.e. the operator deployment has
image: percona/percona-xtradb-cluster-operator:1.15.0@sha256:6f7d8d4e472b8c4d166573cc7bb714bbb0fdf1535142b6138c62fdecbf881df9
When the operator attempts to figure out the init image to use (at
percona-xtradb-cluster-operator/pkg/k8s/utils.go
Lines 45 to 56 in fc46e36
With the above image, that results in a different image (probably takes the
imageName = strings.Split(imageName, ":")[0] + ":" + cr.Spec.CRVersion
path)However, my cluster has security rules that prevent unhashlocked images. So the pod fails to get created.
Steps to reproduce
image: percona/percona-xtradb-cluster-operator:1.15.0@sha256:6f7d8d4e472b8c4d166573cc7bb714bbb0fdf1535142b6138c62fdecbf881df9
)Versions
Anything else?
No response
The text was updated successfully, but these errors were encountered: