You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hypershift:status: check for duplicated configmap status
on hypershift platform,
when PerformanceProfile gets replaced with a new one,
there will be a short window when two different PerformanceProfile are exist for the same nodePool
until Hypershift operator catches up and deletes the old one.
in this case, we want to avoid creating duplicated ConfigMap for the status because it will
break Hypershift reconciliation loop:
https://github.com/openshift/hypershift/blob/53dc14cbdd1e46d8b648ed49c6419d34209ef406/hypershift-operator/controllers/nodepool/nto.go\#L330
if a different ConfigMap for the status already exists, requeue the object for later.
Signed-off-by: Talor Itzhak <titzhak@redhat.com>
returnfalse, fmt.Errorf("annotation %q not found in ConfigMap %q annotations", hypershiftconsts.NodePoolNameLabel, client.ObjectKeyFromObject(instance).String())
klog.InfoS("Different PerformanceProfile-ConfigMap status found, wait for its deletion", "Existing", cm.GetName(), "NewToBeCreated", ConfigMapStatusName)
0 commit comments