The Cluster "xxxxxxxxx" is invalid: spec.topology.version: Invalid value: "v1.25.7+vmware.2": version cannot be decreased from "1.25.7+vmware.2-tkg.1" to "1.25.7+vmware.2"
TKG 2.2
Due to a defect within TKG 2.2 the versioning can become malformed with the "-tkg.1
" being appended to the end
This is resolved in TKG 2.3
To recover from this while on 2.2:
kubectl patch cluster -n xxxxxxx xxxxxxxx --type merge \ -p '{"spec":{"paused": true}}'
kubectl get validatingwebhookconfiguration capi-validating-webhook-configuration -oyaml > capi-webhook-backup.yaml
kubectl delete validatingwebhookconfiguration capi-validating-webhook-configuration
kubectl edit cluster -n xxxxxxx xxxxxxxx
kubectl create -f capi-webhook-backup.yaml (file from step 2)
kubectl patch cluster -n xxxxxxx xxxxxxxx --type merge \ -p '{"spec":{"paused": false}}'