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

Extra labels #13

Merged
merged 10 commits into from
Jul 21, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ spec:
app: {{ template "timescaledb.fullname" . }}
release: {{ .Release.Name }}
timescaleNodeType: access
{{ with .Values.accessNode.extraPodLabels -}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
{{ with .Values.accessNode.extraPodLabels -}}
{{- with .Values.accessNode.extraPodLabels }}

- should be on the left side, not on the right to reduce confusion
that's probably the reason this odd thing is working

Copy link
Owner Author

Choose a reason for hiding this comment

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

moved the - but it's the same correct render

Also tried with but still renders correctly

       {{- if .Values.dataNode.extraPodLabels }}
       {{ toYaml .Values.dataNode.extraPodLabels }}
       {{- end }}

Copy link
Collaborator

Choose a reason for hiding this comment

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

move - to the left

{{ toYaml . }}
{{- end }}
spec:
serviceAccountName: {{ template "timescaledb.serviceAccountName" . }}
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ spec:
app: {{ template "timescaledb.fullname" . }}
release: {{ .Release.Name }}
timescaleNodeType: data
{{ with .Values.dataNode.extraPodLabels -}}
{{ toYaml . }}
{{- end }}
spec:
serviceAccountName: {{ template "timescaledb.serviceAccountName" . }}
securityContext:
Expand Down
2 changes: 2 additions & 0 deletions charts/timescaledb-multinode/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ env:
value: /var/lib/postgresql/pgdata

accessNode:
extraPodLabels: {}
#enable external access using LoadBalancer
service:
type: LoadBalancer
Expand Down Expand Up @@ -76,6 +77,7 @@ accessNode:
affinity: {}

dataNode:
extraPodLabels: {}
replicas: 3
resources: {}
# If you do want to specify resources, uncomment the following
Expand Down