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

feat: support configuring nodeSelectors and tolerations for tunnel resources #98

Merged
merged 4 commits into from
Jun 13, 2024

Conversation

shebpamm
Copy link
Contributor

This PR introduces two changes to the tunnel.spec:
nodeSelectors & tolerations.

These get passed to the cloudflared deployment.

Things of imporance:

  • The tolerations field is directly of type []corev1.Toleration which shows as []Object in the tunnel.spec. This could be improved.
  • By default these values are omitted
  • Tested on a testing cluster

Notes on the PR:

  • No docs changed yet, will add once the code is reviewed
  • autogenerated kubebuilder files in a separate commit for easier review

@adyanth

Copy link
Owner

@adyanth adyanth left a comment

Choose a reason for hiding this comment

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

Thank you for contributing!

This looks good (other than minor comments). The tunnel should ideally take in a PodSpec override, but I have not had the use case for it yet. NodeSpec and Tolerations are the most common ones, so thanks for exposing it.

controllers/reconciler.go Outdated Show resolved Hide resolved
@shebpamm shebpamm requested a review from adyanth June 13, 2024 08:21
@adyanth adyanth merged commit 8a21cb2 into adyanth:main Jun 13, 2024
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.

2 participants