-
Couldn't load subscription status.
- Fork 1.4k
Description
What steps did you take and what happened?
The new validations added in #11949 cause errors for CAPZ deploying managed MachinePool clusters.
The dataSecretName is not used in our managed MP case, so historically we have set it to an empty string in our templates and in documentation. This now triggers an error:
spec.template.spec.bootstrap.dataSecretName in body should be at least 1 chars long
See kubernetes-sigs/cluster-api-provider-azure#5589 for more details
What did you expect to happen?
Expected backward compatibility with previous behavior: i.e., no errors with an empty dataSecretName.
Cluster API version
v1.10.1
Kubernetes version
No response
Anything else you would like to add?
We are trying to work around this by setting dataSecretName to "unused," but even if that works, it's fragile and hacky. Could we consider reverting this validation? I know we had to relax another validation in #12107.
Label(s) to be applied
/kind bug