fix: Fix image puller reconcile infinite loop when checluster image puller deployment name and configmap name are empty
Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>pull/878/head
parent
e87c87dcc3
commit
3b05cdfca7
|
|
@ -141,6 +141,13 @@ func ReconcileImagePuller(ctx *DeployContext) (reconcile.Result, error) {
|
|||
return reconcile.Result{}, err
|
||||
}
|
||||
|
||||
if ctx.CheCluster.Spec.ImagePuller.Spec.DeploymentName == "" {
|
||||
ctx.CheCluster.Spec.ImagePuller.Spec.DeploymentName = imagePuller.Spec.DeploymentName
|
||||
}
|
||||
if ctx.CheCluster.Spec.ImagePuller.Spec.ConfigMapName == "" {
|
||||
ctx.CheCluster.Spec.ImagePuller.Spec.ConfigMapName = imagePuller.Spec.ConfigMapName
|
||||
}
|
||||
|
||||
// If ImagePuller specs are different, update the KubernetesImagePuller CR
|
||||
if imagePuller.Spec != ctx.CheCluster.Spec.ImagePuller.Spec {
|
||||
imagePuller.Spec = ctx.CheCluster.Spec.ImagePuller.Spec
|
||||
|
|
|
|||
Loading…
Reference in New Issue