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

Commit

Permalink
[kibana] 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 058a284 commit c6fbba5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kibana/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
labels:
app: kibana
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 kibana/tests/kibana_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ def test_adding_pod_labels():
'''
r = helm_template(config)
assert r['deployment'][name]['metadata']['labels']['app.kubernetes.io/name'] == 'kibana'
assert r['deployment'][name]['spec']['template']['metadata']['labels']['app.kubernetes.io/name'] == 'kibana'

def test_adding_a_secret_mount_with_subpath():
config = '''
Expand Down

0 comments on commit c6fbba5

Please sign in to comment.