Skip to content

Commit 8ae2916

Browse files
authored
Added labels to chart (#48)
1 parent 3df43fd commit 8ae2916

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ repos:
2121

2222
# YAML
2323
- id: check-yaml # checks yaml files for parseable syntax.
24+
exclude: '.*/templates/.*\.yaml$' # Exclude Helm templates (contain Go templating)
2425

2526
- repo: https://github.com/antonbabenko/pre-commit-terraform
2627
rev: v1.81.0

src/charts/echo-server/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ spec:
1616
name: {{ include "echo-server.fullname" . }}
1717
labels:
1818
{{- include "echo-server.selectorLabels" . | nindent 8 }}
19+
{{- with .Values.labels }}
20+
{{- toYaml . | nindent 8 }}
21+
{{- end }}
1922
spec:
2023
containers:
2124
- name: {{ .Chart.Name }}

0 commit comments

Comments
 (0)