-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support URL encoded bootstrap token replacement #743
Conversation
@Gerrit91 Thank you for your contribution. |
@Gerrit91 You need rebase this pull request with latest master branch. Please check. |
Thank you @Gerrit91 for your contribution. Before I can start building your PR, a member of the organization must set the required label(s) {'reviewed/ok-to-test'}. Once started, you can check the build status in the PR checks section below. |
3b0d661
to
84592bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/invite @unmarshall |
@unmarshall You have pull request review open invite, please check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, a more generic name would help
@Gerrit91 we are planning to make a release by EoD |
84592bf
to
8786751
Compare
Hey @himanshu-kun. Thanks for review. I integrated your change request into the PR and rebased onto master. |
8786751
to
45b113f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
What this PR does / why we need it:
In metal-stack we do not use the wide-spread software cloud-init for preparing cloud instances but Ignition. The Ignition userdata format encodes data with URL scheme, such that special characters are not contained in user-given contents of the userdata.
The current code patches a placeholder
<<BOOTSTRAP_TOKEN>>
in order to enrich the userdata with a node's bootstrap token. As the placeholder contains special characters, the string replacement does not work for Ignition-formatted userdata, which looks like:This PR allows detecting the URL-encoded placeholder as well and properly replaces the bootstrap token into the userdata.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: