v1.10 MaxLength validation breaks machine creation with large ignition config #12168
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What steps did you take and what happened?
After upgrading to cluster-api v1.10.1, specifying an ignition config in spec.ignition.containerLinuxConfig.additionalConfig in manifests referencing one of the following crds:
kubeadmconfigs.bootstrap.cluster.x-k8s.io
kubeadmconfigtemplates.bootstrap.cluster.x-k8s.io
kubeadmcontrolplanes.controlplane.cluster.x-k8s.io
kubeadmcontrolplanetemplates.controlplane.cluster.x-k8s.io
with a size above 10240 bytes will prevent machines from being created or updated.
What did you expect to happen?
I expect my machines to be created / updated. So the MaxLength validation should be set to sane limit. I guess this depends on a.) the cloud provider and b.) ignition spec itself.
I will try to provide a.) for kolla installed openstack with default values.
As already discussed on cluster-api slack it would be great if we could provide large ignition configs via Secret or ConfigMap. But this should not necessarily be the scope of this issue.
Cluster API version
v1.10.1 for core, kubeadm-bootstrap and kubeadm-control-plane
v0.12.3 for CAPO
Kubernetes version
v1.32.4
Anything else you would like to add?
Logs from capi-controller-manager
Label(s) to be applied
/kind bug
One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.
The text was updated successfully, but these errors were encountered: