Closed joonas closed 4 years ago
/priority important-soon
https://cloudinit.readthedocs.io/en/latest/topics/examples.html#run-commands-on-first-boot
Indicates anything that yaml would consume/get confused by requires quoting.
It's too much to expect people to quote things correctly IMO. This shouldn't be on the user. I think not single-quoting it and then formatting it with %q
should be fine.
/assign @noamran is going to work on this but she's not in the org yet /lifecycle active
/kind bug
What steps did you take and what happened:
I applied the following
KubeadmConfig
configuration:Which resulted in the following
runcmd
being rendered and stored in the.Status.BootstrapData
:When this BootstrapData was executed by CAPD (that's the only provider I've tried with this so far), it resulted in the following error:
This in turn made the CAPD unable to provision the node.
What did you expect to happen:
I expected the
runcmd:
section to be appropriately escaped, so that the quotes used in theKubeadmConfig
spec didn't matter.Anything else you would like to add:
Switching from:
to:
Worked just fine though.
Environment:
kubectl version
):1.15.3
/etc/os-release
):Ubuntu 19.04