Skip to content

Commit 03f1869

Browse files
author
Naadir Jeewa
committed
clusterresourceset: Allow strategy to be changed from "" to ApplyOnce.
Signed-off-by: Naadir Jeewa <[email protected]>
1 parent 22c19a4 commit 03f1869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exp/addons/api/v1alpha3/clusterresourceset_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (m *ClusterResourceSet) validate(old *ClusterResourceSet) error {
8787
)
8888
}
8989

90-
if old != nil && old.Spec.Strategy != m.Spec.Strategy {
90+
if old != nil && old.Spec.Strategy != "" && old.Spec.Strategy != m.Spec.Strategy {
9191
allErrs = append(
9292
allErrs,
9393
field.Invalid(field.NewPath("spec", "strategy"), m.Spec.Strategy, "field is immutable"),

0 commit comments

Comments
 (0)