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
changes=append(changes, fmt.Sprintf(" - %s:\n from: %s\n to: %s",
1074
1087
k, currentStr, desiredStr))
1075
1088
}
1076
1089
}
1077
1090
}
1078
-
1079
1091
iflen(changes) >0 {
1080
-
// Sort the changes to ensure consistent order
1081
1092
sort.Strings(changes)
1082
-
message:=fmt.Sprintf("one or more objects failed to apply, reason: attempting to change immutable fields:\n%s\n\nForbidden: updates to statefulset spec for fields other than 'replicas', 'ordinals', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden",
1093
+
returncommon.ResultCodeSyncFailed,fmt.Sprintf("attempting to change immutable fields:\n%s\n\nForbidden: updates to statefulset spec for fields other than 'replicas', 'ordinals', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden",
@@ -2123,8 +2121,8 @@ Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordina
2123
2121
},
2124
2122
expectedMessage: `attempting to change immutable fields:
2125
2123
- selector:
2126
-
from: map[matchLabels:map[app:old-app]]
2127
-
to: map[matchLabels:map[app:new-app]]
2124
+
from: {app:old-app}
2125
+
to: {app:new-app}
2128
2126
2129
2127
Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordinals', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden`,
0 commit comments