diff --git a/pkg/operator/sync_openshiftcontrollermanager_v311_00.go b/pkg/operator/sync_openshiftcontrollermanager_v311_00.go index 0d3ff48c7..7bafc548f 100644 --- a/pkg/operator/sync_openshiftcontrollermanager_v311_00.go +++ b/pkg/operator/sync_openshiftcontrollermanager_v311_00.go @@ -5,6 +5,7 @@ import ( "encoding/json" "fmt" "os" + "sort" "strconv" "strings" @@ -308,6 +309,9 @@ func disableControllers(clusterVersion *configv1.ClusterVersion) []string { controllers = append(controllers, fmt.Sprintf("-%s", cont)) } } + // we need to sort this slice to have always same list + // otherwise, change in the order would modify configmap and causes roll out + sort.Strings(controllers) return controllers }