Skip to content
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

fix: properly quote Bottlerocket config #1406

Merged
merged 1 commit into from
Feb 24, 2022

Conversation

DWSR
Copy link
Contributor

@DWSR DWSR commented Feb 23, 2022

1. Issue, if available:

#1404

2. Description of changes:

In TOML, bare keys have limitations in the keys that they can contain
([A-Za-z0-9_-]) and strings must be quoted. This change quotes all
keys to properly handle e.g. node labels with slashes in them and also
adds missing quotes for node taint values.

3. How was this change tested?

Manually, see #1406 (comment)

4. Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: link to issue
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

In TOML, bare keys have limitations in the keys that they can contain
([A-Za-z0-9_-]) and strings _must_ be quoted. This change quotes all
keys to properly handle e.g. node labels with slashes in them and also
adds missing quotes for node taint values.
@netlify
Copy link

netlify bot commented Feb 23, 2022

✔️ Deploy Preview for karpenter-docs-prod canceled.

🔨 Explore the source changes: aabe61c

🔍 Inspect the deploy log: https://app.netlify.com/sites/karpenter-docs-prod/deploys/621642ecab667900084ea473

@ellistarn
Copy link
Contributor

Approach looks good. Definitely needs to be tested.

@bwagner5
Copy link
Contributor

I was able to reproduce a provisioner with a taint defined and a bottlerocket node not coming online in the current main branch. I installed your patches on the cluster and did another scale-up with the same provisioner and observed the nodes going to "Ready".

@DWSR
Copy link
Contributor Author

DWSR commented Feb 24, 2022

@bwagner5 LGTM then?

@DWSR DWSR marked this pull request as ready for review February 24, 2022 04:04
Copy link
Contributor

@ellistarn ellistarn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Contributor

@bwagner5 bwagner5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@bwagner5 bwagner5 merged commit f4320b4 into aws:main Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants