0 grace period
[ZITADOPER-7]
This commit is contained in:
@@ -293,7 +293,12 @@ func (r *ZitadelClusterReconciler) reconcileInitJob(ctx context.Context, zitadel
|
|||||||
return ctrl.Result{}, nil
|
return ctrl.Result{}, nil
|
||||||
}
|
}
|
||||||
if !reflect.DeepEqual(existingJob.Spec.Template.Spec, desiredInitJob.Spec.Template.Spec) {
|
if !reflect.DeepEqual(existingJob.Spec.Template.Spec, desiredInitJob.Spec.Template.Spec) {
|
||||||
err := r.Delete(ctx, &existingJob)
|
gracePeriod := int64(0)
|
||||||
|
err := r.Delete(ctx, &existingJob,
|
||||||
|
&client.DeleteOptions{
|
||||||
|
GracePeriodSeconds: &gracePeriod,
|
||||||
|
},
|
||||||
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ctrl.Result{}, err
|
return ctrl.Result{}, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user