Skip to content
Snippets Groups Projects
Commit b982c4cc authored by Arie Peterson's avatar Arie Peterson
Browse files

Allow setting podLabels and statefulSetLabels

parent 1218f109
No related branches found
No related tags found
1 merge request!38Resolve "Allow setting more kubernetes labels"
......@@ -6,6 +6,9 @@ metadata:
labels:
app: {{ include "wordpress.name" . }}
release: {{ .Release.Name }}
{{- if .Values.statefulSetLabels }}
{{- toYaml .Values.statefulSetLabels | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
......@@ -18,6 +21,9 @@ spec:
labels:
app: {{ include "wordpress.name" . }}
release: {{ .Release.Name }}
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 8 }}
{{- end }}
annotations:
# Reload the pod when values-local.yaml changes, so the ansible playbook
# gets re-run.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment