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
ifcondition.IsConditionStatusTrueIgnoreGeneration(clusterUpdateSucceededCond) { // Ignoring generation here as once cluster succeeded in a previous Run state, generation may be different from current generation due state changing.
169
+
// Ignoring generation here as once cluster succeeded in a previous Run state, generation may be different from current generation due state changing.
ifcondition.IsConditionStatusFalseIgnoreGeneration(clusterUpdateSucceededCond) { // Ignoring generation here as once cluster failed, it won't change as the update run is aborted on failure.
176
+
// Ignoring generation here as once cluster failed, it won't change as the update run is aborted on failure.
// The cluster is marked as failed to update, this cluster is counted as updating cluster since it's not finished to avoid processing more clusters than maxConcurrency in this round.
177
179
failedErr:=fmt.Errorf("the cluster `%s` in the stage %s has failed", clusterStatus.ClusterName, updatingStageStatus.StageName)
178
180
klog.ErrorS(failedErr, "The cluster has failed to be updated", "updateRun", updateRunRef)
if!condition.IsConditionStatusTrueIgnoreGeneration(clusterStartedCond) { // Ignoring generation here as once cluster started in a previous Run state, generation may be different from current generation due state changing
187
+
// Ignoring generation here as once cluster started in a previous Run state, generation may be different from current generation due state changing.
klog.V(2).InfoS("Found the first cluster that needs to be updated", "cluster", clusterStatus.ClusterName, "stage", updatingStageStatus.StageName, "updateRun", updateRunRef)
// Mark the stage as started if not already marked or previously false (resumed after update run has stopped). Ignoring generation here as stage progressing generation, generation may be different from current generation due state changing.
350
+
// Mark the stage as started if not already marked or previously false (resumed after update run has stopped).
351
+
// Ignoring generation here as stage progressing generation, generation may be different from current generation due state changing.
0 commit comments