Skip to content

Add tolerations and nodeSelector to Server ACL init jobs and nodeSelector to Webhook cert manager#1581

Merged
t-eckert merged 10 commits intomainfrom
add-nodeSelector
Oct 18, 2022
Merged

Add tolerations and nodeSelector to Server ACL init jobs and nodeSelector to Webhook cert manager#1581
t-eckert merged 10 commits intomainfrom
add-nodeSelector

Conversation

@t-eckert
Copy link
Copy Markdown
Contributor

@t-eckert t-eckert commented Oct 3, 2022

This solution is in response to an ask from a customer who wants to set nodeSelector for all Pods in their cluster. This adds that capability to server-acl-init jobs and webhook-cert-manager.

Changes proposed in this PR:

  • Add a Helm stanza, global.acls.job for configuring server-acl-init and server-acl-init-cleanup jobs.
  • Add the Helm value global.acls.job.tolerations for setting tolerations on server-acl-init and server-acl-init-cleanup jobs.
  • Add the Helm value global.acls.job.nodeSelector for setting the nodeSelector on server-acl-init and server-acl-init-cleanup jobs.
  • Add the Helm value webhookCertManager.nodeSelector for setting the nodeSelector on webhook-cert-manager-deployment.
  • Add BATS tests for all of the above changes.

How I've tested this PR:

  • I deployed the following Helm values into an AKS account to ensure that Consul runs normally when server-acl-init and webhook-cert-manager are deployed on a particular node. There is no anticipated reason why they shouldn't.

How I expect reviewers to test this PR:

  • 👀
  • Run a Helm chart that sets nodeSelector.

Checklist:

  • Tests added
  • CHANGELOG entry added

    HashiCorp engineers only, community PRs should not add a changelog entry.
    Entries should use present tense (e.g. Add support for...)

@t-eckert t-eckert requested review from ishustava and jmurret October 3, 2022 21:31
Copy link
Copy Markdown
Contributor

@ishustava ishustava left a comment

Choose a reason for hiding this comment

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

Looks good, just one comment about helm values.

@t-eckert t-eckert requested a review from ishustava October 14, 2022 19:14
Copy link
Copy Markdown
Contributor

@ishustava ishustava left a comment

Choose a reason for hiding this comment

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

Sorry! A few more comments. I didn't notice these in my first review

Thomas Eckert and others added 2 commits October 14, 2022 18:32
Co-authored-by: Iryna Shustava <ishustava@users.noreply.github.com>
@t-eckert t-eckert requested a review from ishustava October 14, 2022 22:37
Copy link
Copy Markdown
Member

@jmurret jmurret left a comment

Choose a reason for hiding this comment

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

🎉 :shipit:

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.

4 participants