Skip to content

Commit

Permalink
Merge pull request #5 from acryldata/ak--deployment-labels
Browse files Browse the repository at this point in the history
Add labels support
  • Loading branch information
noggi authored May 28, 2024
2 parents a1cfcf7 + 2b6ab46 commit 3d8be8f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/datahub-executor-worker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: {{ include "datahub-executor-worker.fullname" . }}
labels:
{{- include "datahub-executor-worker.labels" . | nindent 4 }}
{{- range $key, $val := .Values.extraLabels }}
{{ $key }}: {{ $val | quote }}
{{- end }}
spec:
replicas: {{if .Values.global.readonly}} 0 {{else}} {{ .Values.replicaCount }} {{end}}
selector:
Expand All @@ -17,6 +20,9 @@ spec:
{{- end }}
labels:
{{- include "datahub-executor-worker.selectorLabels" . | nindent 8 }}
{{- range $key, $value := .Values.extraPodLabels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
{{- with .Values.imagePullSecrets }}
Expand Down
4 changes: 4 additions & 0 deletions charts/datahub-executor-worker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ extraVolumeMounts: []

extraInitContainers: []

extraLabels: {}

extraPodLabels: {}

resources: {}

nodeSelector: {}
Expand Down

0 comments on commit 3d8be8f

Please sign in to comment.