Skip to content

Commit

Permalink
Merge pull request #118 from codecademy-engineering/datadog_env_position
Browse files Browse the repository at this point in the history
Move Datadog environment variable position
  • Loading branch information
mbacchi authored May 24, 2024
2 parents 251cd8b + 6d4b4d7 commit 6a33da7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
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.8.15
version: 1.8.16
maintainers:
- email: [email protected]
name: devops
14 changes: 7 additions & 7 deletions charts/service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,6 @@ spec:
name: {{ .Values.envFromSecret }}
{{- end }}
env:
{{- range $key, $value := .Values.envKeyValue }}
- name: {{ $key }}
value: "{{ $value }}"
{{- end }}
{{- with .Values.env }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.datadog }}
- name: DD_AGENT_HOST
valueFrom:
Expand All @@ -145,6 +138,13 @@ spec:
fieldRef:
fieldPath: metadata.labels['tags.datadoghq.com/version']
{{- end }}
{{- range $key, $value := .Values.envKeyValue }}
- name: {{ $key }}
value: "{{ $value }}"
{{- end }}
{{- with .Values.env }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.containerPort }}
ports:
- name: http
Expand Down

0 comments on commit 6a33da7

Please sign in to comment.