Skip to content

v1.10 MinLength validation breaks managed MPs #12161

@mboersma

Description

@mboersma

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

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.needs-priorityIndicates an issue lacks a `priority/foo` label and requires one.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions