diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cb6cb17..a064738 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,6 +21,7 @@ repos: # YAML - id: check-yaml # checks yaml files for parseable syntax. + exclude: '.*/templates/.*\.yaml$' # Exclude Helm templates (contain Go templating) - repo: https://github.com/antonbabenko/pre-commit-terraform rev: v1.81.0 diff --git a/src/charts/echo-server/templates/deployment.yaml b/src/charts/echo-server/templates/deployment.yaml index 1eade38..f575568 100644 --- a/src/charts/echo-server/templates/deployment.yaml +++ b/src/charts/echo-server/templates/deployment.yaml @@ -16,6 +16,9 @@ spec: name: {{ include "echo-server.fullname" . }} labels: {{- include "echo-server.selectorLabels" . | nindent 8 }} + {{- with .Values.labels }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: containers: - name: {{ .Chart.Name }}