@@ -124,6 +124,20 @@ func ToScaleUpFleetControllerInstruction(_, _, k8sVersion string) (*applyinator.
124
124
}, nil
125
125
}
126
126
127
+ func ToDeleteRancherWebhookValidationConfiguration (k8sVersion string ) (* applyinator.Instruction , error ) {
128
+ cmd , err := self .Self ()
129
+ if err != nil {
130
+ return nil , fmt .Errorf ("resolving location of %s: %w" , os .Args [0 ], err )
131
+ }
132
+ return & applyinator.Instruction {
133
+ Name : "delete-rancher-webhook-validation-configuration" ,
134
+ SaveOutput : true ,
135
+ Args : []string {"retry" , kubectl .Command (k8sVersion ), "delete" , "validatingwebhookconfiguration" , "rancher.cattle.io" },
136
+ Env : kubectl .Env (k8sVersion ),
137
+ Command : cmd ,
138
+ }, nil
139
+ }
140
+
127
141
// Needs to patch status subresource
128
142
// k patch cluster.provisioning local -n fleet-local --subresource=status --type=merge --patch '{"status":{"fleetWorkspaceName": "fleet-local"}}'
129
143
func PatchLocalProvisioningClusterStatus (_ , _ , k8sVersion string ) (* applyinator.Instruction , error ) {
@@ -132,7 +146,7 @@ func PatchLocalProvisioningClusterStatus(_, _, k8sVersion string) (*applyinator.
132
146
return nil , fmt .Errorf ("resolving location of %s: %w" , os .Args [0 ], err )
133
147
}
134
148
return & applyinator.Instruction {
135
- Name : "wait-suc-plan-resolved " ,
149
+ Name : "patch-provisioning-cluster-status " ,
136
150
SaveOutput : true ,
137
151
Args : []string {"retry" , kubectl .Command (k8sVersion ), "-n" , "fleet-local" , "patch" , "cluster.provisioning" , "local" , "--subresource=status" , "--type=merge" , "--patch" , "{\" status\" :{\" fleetWorkspaceName\" : \" fleet-local\" }}" },
138
152
Env : kubectl .Env (k8sVersion ),
0 commit comments