mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-22 16:00:05 -05:00
operator: requeue scaling group on conflict
This commit is contained in:
parent
11c02980be
commit
7fbdba5b4d
@ -10,6 +10,7 @@ import (
|
||||
"context"
|
||||
"strings"
|
||||
|
||||
k8sErrors "k8s.io/apimachinery/pkg/api/errors"
|
||||
"k8s.io/apimachinery/pkg/api/meta"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/fields"
|
||||
@ -92,8 +93,10 @@ func (r *ScalingGroupReconciler) Reconcile(ctx context.Context, req ctrl.Request
|
||||
}
|
||||
meta.SetStatusCondition(&desiredScalingGroup.Status.Conditions, outdatedCondition)
|
||||
if err := r.Status().Update(ctx, &desiredScalingGroup); err != nil {
|
||||
logr.Error(err, "Unable to update AutoscalingStrategy status")
|
||||
return ctrl.Result{}, err
|
||||
if !k8sErrors.IsConflict(err) {
|
||||
logr.Error(err, "Unable to update Scaling Group status")
|
||||
}
|
||||
return ctrl.Result{Requeue: true}, err
|
||||
}
|
||||
|
||||
if !imagesMatch {
|
||||
|
Loading…
x
Reference in New Issue
Block a user