check only image

[ZITADOPER-7]
This commit is contained in:
Haim Kortovich
2024-11-14 18:11:08 -05:00
parent b876801b89
commit 507f3379c4

View File

@@ -292,7 +292,7 @@ func (r *ZitadelClusterReconciler) reconcileInitJob(ctx context.Context, zitadel
}
return ctrl.Result{}, nil
}
if !reflect.DeepEqual(existingJob.Spec.Template.Spec, desiredInitJob.Spec.Template.Spec) {
if desiredInitJob.Spec.Template.Spec.Containers[0].Image != existingJob.Spec.Template.Spec.Containers[0].Image {
gracePeriod := int64(0)
err := r.Delete(ctx, &existingJob,
&client.DeleteOptions{