Skip to content

Commit

Permalink
Only add cinder-csi-nodeplugin tolerations if they are non-empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajarmar committed Nov 10, 2021
1 parent d562c8d commit 0d606bc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,7 @@ spec:
path: {{ kube_config_dir }}/cinder-cacert.pem
type: FileOrCreate
{% endif %}
{% if cinder_tolerations %}
tolerations:
{{ cinder_tolerations | to_nice_yaml(indent=2) | indent(width=8) }}
{% endif %}

0 comments on commit 0d606bc

Please sign in to comment.