Skip to content

Commit

Permalink
add pod labels
Browse files Browse the repository at this point in the history
Signed-off-by: Lindsay Codecademy <[email protected]>
  • Loading branch information
lindsaylandry committed Sep 12, 2022
1 parent 2d903c7 commit 178544d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: service
description: A generic k8s service chart
type: application
version: 1.0.21
version: 1.0.22
maintainers:
- email: [email protected]
name: devops
3 changes: 3 additions & 0 deletions charts/service/ci/custom-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ readinessProbe:
httpGet:
path: /
port: http

podLabels:
foo: bar
3 changes: 3 additions & 0 deletions charts/service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
{{- end }}
labels:
{{- include "service.selectorLabels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.datadog }}
tags.datadoghq.com/env: {{ .env }}
tags.datadoghq.com/service: {{ .service }}
Expand Down

0 comments on commit 178544d

Please sign in to comment.