Repository navigation
Helm Chart: Add support for affinity and tolerations - #350
Conversation
Adds support for setting the node affinity and tolerations scheduling options
|
Hi @kiall. Thanks for your PR. I'm waiting for a jetstack member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Nice, thank you @kiall |
munnerz
left a comment
There was a problem hiding this comment.
Thanks very much for this - once we've sorted out the one comment and got this merged, I'll copy the changes across to the kubernetes/charts repo 😄
/ok-to-test
| {{ toYaml .Values.ingressShim.resources | indent 12 }} | ||
| {{- end }} | ||
| {{- if .Values.nodeSelector }} | ||
| {{- with .Values.nodeSelector }} |
There was a problem hiding this comment.
Not sure why the change to with from if? Could we keep this (and the new affinity and tolerations stanzas) using if here? Else our generated deployment manifests will end out with blank nodeSelector, affinity and tolerations fields.
There was a problem hiding this comment.
@munnerz the with statement handles this internally - if the value is not present or empty - the contents of with with block are skipped. This is the pattern you'll now see helm create foo generating for you from the standard chart template.
|
/test all |
|
Can you also run |
Done. |
|
/retest |
|
@kiall: you can't request testing unless you are a jetstack member. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/retest |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: munnerz The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
|
/retest |
|
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
* Bump chart and manifests for v0.3.0 release (cert-manager/cert-manager#575) * add pod labels (cert-manager/cert-manager#563) * Add leaderElection.namespace option to helm chart (cert-manager/cert-manager#548) * Add clusterResourceNamespace option to Helm chart (cert-manager/cert-manager#547) * Fix ingress-shim cli flags (cert-manager/cert-manager#526) * Create chart OWNERS (cert-manager/cert-manager#528) * Link ingress-shim into main controller binary (cert-manager/cert-manager#502) * readthedocs documentation rewrite (cert-manager/cert-manager#428) * add selector, as otherwise it fails on GKE k8s v1.9.x (cert-manager/cert-manager#440) * Add podAnnotations (cert-manager/cert-manager#387) * Document common ingressShim.extraArgs use case in chart (cert-manager/cert-manager#382) * Helm Chart: Add support for affinity and tolerations (cert-manager/cert-manager#350) * Set default cluster resource namespace to current pod namespace (cert-manager/cert-manager#329) * Create a Namespace resource as part of the static manifest bundle (cert-manager/cert-manager#340) * Add default shortNames to certificates CRD (cert-manager/cert-manager#312) * fix: Use ConfigMaps for leaderelection (cert-manager/cert-manager#327)
* Bump chart and manifests for v0.3.0 release (cert-manager/cert-manager#575) * add pod labels (cert-manager/cert-manager#563) * Add leaderElection.namespace option to helm chart (cert-manager/cert-manager#548) * Add clusterResourceNamespace option to Helm chart (cert-manager/cert-manager#547) * Fix ingress-shim cli flags (cert-manager/cert-manager#526) * Create chart OWNERS (cert-manager/cert-manager#528) * Link ingress-shim into main controller binary (cert-manager/cert-manager#502) * readthedocs documentation rewrite (cert-manager/cert-manager#428) * add selector, as otherwise it fails on GKE k8s v1.9.x (cert-manager/cert-manager#440) * Add podAnnotations (cert-manager/cert-manager#387) * Document common ingressShim.extraArgs use case in chart (cert-manager/cert-manager#382) * Helm Chart: Add support for affinity and tolerations (cert-manager/cert-manager#350) * Set default cluster resource namespace to current pod namespace (cert-manager/cert-manager#329) * Create a Namespace resource as part of the static manifest bundle (cert-manager/cert-manager#340) * Add default shortNames to certificates CRD (cert-manager/cert-manager#312) * fix: Use ConfigMaps for leaderelection (cert-manager/cert-manager#327)
* Bump chart and manifests for v0.3.0 release (cert-manager/cert-manager#575) * add pod labels (cert-manager/cert-manager#563) * Add leaderElection.namespace option to helm chart (cert-manager/cert-manager#548) * Add clusterResourceNamespace option to Helm chart (cert-manager/cert-manager#547) * Fix ingress-shim cli flags (cert-manager/cert-manager#526) * Create chart OWNERS (cert-manager/cert-manager#528) * Link ingress-shim into main controller binary (cert-manager/cert-manager#502) * readthedocs documentation rewrite (cert-manager/cert-manager#428) * add selector, as otherwise it fails on GKE k8s v1.9.x (cert-manager/cert-manager#440) * Add podAnnotations (cert-manager/cert-manager#387) * Document common ingressShim.extraArgs use case in chart (cert-manager/cert-manager#382) * Helm Chart: Add support for affinity and tolerations (cert-manager/cert-manager#350) * Set default cluster resource namespace to current pod namespace (cert-manager/cert-manager#329) * Create a Namespace resource as part of the static manifest bundle (cert-manager/cert-manager#340) * Add default shortNames to certificates CRD (cert-manager/cert-manager#312) * fix: Use ConfigMaps for leaderelection (cert-manager/cert-manager#327)
* Bump chart and manifests for v0.3.0 release (cert-manager/cert-manager#575) * add pod labels (cert-manager/cert-manager#563) * Add leaderElection.namespace option to helm chart (cert-manager/cert-manager#548) * Add clusterResourceNamespace option to Helm chart (cert-manager/cert-manager#547) * Fix ingress-shim cli flags (cert-manager/cert-manager#526) * Create chart OWNERS (cert-manager/cert-manager#528) * Link ingress-shim into main controller binary (cert-manager/cert-manager#502) * readthedocs documentation rewrite (cert-manager/cert-manager#428) * add selector, as otherwise it fails on GKE k8s v1.9.x (cert-manager/cert-manager#440) * Add podAnnotations (cert-manager/cert-manager#387) * Document common ingressShim.extraArgs use case in chart (cert-manager/cert-manager#382) * Helm Chart: Add support for affinity and tolerations (cert-manager/cert-manager#350) * Set default cluster resource namespace to current pod namespace (cert-manager/cert-manager#329) * Create a Namespace resource as part of the static manifest bundle (cert-manager/cert-manager#340) * Add default shortNames to certificates CRD (cert-manager/cert-manager#312) * fix: Use ConfigMaps for leaderelection (cert-manager/cert-manager#327) Signed-off-by: voron <[email protected]>
Adds support for setting the node affinity and tolerations scheduling options