Skip to content

Commit

Permalink
add custom pod label option to chart (temporalio#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
deltamualpha authored Mar 21, 2022
1 parent 889e8a6 commit fed4555
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/admintools-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ spec:
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" }}
app.kubernetes.io/component: admintools
app.kubernetes.io/part-of: {{ .Chart.Name }}
{{- with $.Values.admintools.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{ include "temporal.serviceAccount" . }}
containers:
Expand Down
3 changes: 3 additions & 0 deletions templates/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ spec:
app.kubernetes.io/version: {{ $.Chart.AppVersion | replace "+" "_" }}
app.kubernetes.io/component: {{ $service }}
app.kubernetes.io/part-of: {{ $.Chart.Name }}
{{- with (default $.Values.server.podLabels $serviceValues.podLabels) }}
{{- toYaml . | nindent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/server-configmap.yaml") $ | sha256sum }}
{{- if (default $.Values.server.metrics.annotations.enabled $serviceValues.metrics.annotations.enabled) }}
Expand Down
3 changes: 3 additions & 0 deletions templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ spec:
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" }}
app.kubernetes.io/component: web
app.kubernetes.io/part-of: {{ .Chart.Name }}
{{- with .Values.web.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.web.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
Expand Down
7 changes: 7 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ server:
prometheus:
timerType: histogram
podAnnotations: {}
podLabels: {}
resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down Expand Up @@ -170,6 +171,7 @@ server:
prometheus: {}
# timerType: histogram
podAnnotations: {}
podLabels: {}
resources: {}
nodeSelector: {}
tolerations: []
Expand All @@ -188,6 +190,7 @@ server:
prometheus: {}
# timerType: histogram
podAnnotations: {}
podLabels: {}
resources: {}
nodeSelector: {}
tolerations: []
Expand All @@ -206,6 +209,7 @@ server:
prometheus: {}
# timerType: histogram
podAnnotations: {}
podLabels: {}
resources: {}
nodeSelector: {}
tolerations: []
Expand All @@ -224,6 +228,7 @@ server:
prometheus: {}
# timerType: histogram
podAnnotations: {}
podLabels: {}
resources: {}
nodeSelector: {}
tolerations: []
Expand All @@ -240,6 +245,7 @@ admintools:
type: ClusterIP
port: 22
annotations: {}
podLabels: {}
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down Expand Up @@ -286,6 +292,7 @@ web:
# - chart-example.local

podAnnotations: {}
podLabels: {}

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down

0 comments on commit fed4555

Please sign in to comment.