Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
[logstash] apply labels to all pods
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlrt committed Dec 18, 2019
1 parent c6fbba5 commit 68e43ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions logstash/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
chart: "{{ .Chart.Name }}"
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
{{- range $key, $value := .Values.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
annotations:
{{- range $key, $value := .Values.podAnnotations }}
{{ $key }}: {{ $value | quote }}
Expand Down
1 change: 1 addition & 0 deletions logstash/tests/logstash_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ def test_adding_pod_labels():
'''
r = helm_template(config)
assert r['statefulset'][name]['metadata']['labels']['app.kubernetes.io/name'] == 'logstash'
assert r['statefulset'][name]['spec']['template']['metadata']['labels']['app.kubernetes.io/name'] == 'logstash'


def test_pod_security_policy():
Expand Down

0 comments on commit 68e43ef

Please sign in to comment.