How to change Percona XtraDB Cluster Operator imagePullPolicy

I am deploying operator on cluster which is offline , I have uploaded images with “docker load” but while deploying operator i am getting “Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io
But images are already available, i check pod imagePullPolicy is always, Can i change to “IfNotPresent” for operator.

I tried to patch but no effect
kubectl patch statefulset cluster1-pxc -p ‘{“spec”: {“template”: {“spec”:{“containers”:[{“name”:“pxc”,“imagePullPolicy”:“Never”}]}}}}’

Hi
PXC operator will rewrite stateful set after your patch since it’s designed to keep sts with fields derived from CR and some defaults.
Could you please decrease the number of operator pods to 0, try to patch again and share the outcome with us?

IvanPylypenko said: Hi
PXC operator will rewrite stateful set after your patch since it's designed to keep sts with fields derived from CR and some defaults.
Could you please decrease the number of operator pods to 0, try to patch again and share the outcome with us?
Yes its works, Thanks You

@imranrazakhan, you can also submit an Improvement request in our Jira (https://jira.percona.com/projects/K8SPXC/issues) and we can consider exposing this directly in a future release.

pschwaller said: @imranrazakhan, you can also submit an Improvement request in our Jira (https://jira.percona.com/projects/K8SPXC/issues) and we can consider exposing this directly in a future release.
I will send Improvement request, As currently i observed as soon as i set replicas=1 it start terminating pods