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

pg-db chart does not support tolerations as list #333

Open
networkhermit opened this issue Jun 5, 2024 · 0 comments
Open

pg-db chart does not support tolerations as list #333

networkhermit opened this issue Jun 5, 2024 · 0 comments

Comments

@networkhermit
Copy link

chart version: 2.3.18

There are multiple examples that demonstrate the usage of tolerations in the values file:

# tolerations:
# - effect: NoSchedule
# key: role
# operator: Equal
# value: connection-poolers

But the helm template does not support them well, passing a tolerations list when installing a helm release would fail:

{{- if $instance.tolerations }}
tolerations:
- effect: {{ $instance.tolerations.effect }}
key: {{ $instance.tolerations.key }}
operator: {{ $instance.tolerations.operator }}
value: {{ $instance.tolerations.value }}
{{- end }}

Current workaround is passing a single tolerations map:

  tolerations: 
    effect: NoSchedule 
    key: role 
    operator: Equal 
    value: connection-poolers
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

No branches or pull requests

1 participant