Skip to content

Commit

Permalink
feat(charts): make nucleusEnv an optional label for all charts (#2719)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabien Debatisse <fabien.debatisse@agregio-solutions.com>
  • Loading branch information
WhiteDiamondz and WhiteDiamondz authored Sep 19, 2024
1 parent 763d6b3 commit 7ac9a56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/charts/api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ metadata:
labels:
{{- include "neosync-api.labels" . | nindent 4 }}
{{- if eq .Values.datadog.enabled true }}
{{- if .Values.nucleusEnv }}
tags.datadoghq.com/env: {{ .Values.nucleusEnv }}
{{- end }}
tags.datadoghq.com/service: {{ template "neosync-api.fullname" . }}
tags.datadoghq.com/version: {{ .Values.image.tag | default .Chart.AppVersion }}
{{- end }}
Expand Down Expand Up @@ -44,11 +46,15 @@ spec:
{{- end }}
{{- if eq .Values.datadog.enabled true }}
admission.datadoghq.com/enabled: "true"
{{- if .Values.nucleusEnv }}
tags.datadoghq.com/env: {{ .Values.nucleusEnv }}
{{- end }}
tags.datadoghq.com/service: {{ template "neosync-api.fullname" . }}
tags.datadoghq.com/version: {{ .Values.image.tag | default .Chart.AppVersion }}
{{- end }}
{{- if .Values.nucleusEnv }}
tags.neosync.dev/env: {{ .Values.nucleusEnv }}
{{- end }}
tags.neosync.dev/service: {{ template "neosync-api.fullname" . }}
tags.neosync.dev/version: {{ .Values.image.tag | default .Chart.AppVersion }}
spec:
Expand Down
4 changes: 4 additions & 0 deletions frontend/apps/web/charts/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- if eq .Values.datadog.enabled true }}
{{- if .Values.nucleusEnv }}
tags.datadoghq.com/env: {{ .Values.nucleusEnv }}
{{- end }}
tags.datadoghq.com/service: {{ template "neosync-app.fullname" . }}
tags.datadoghq.com/version: {{ .Values.image.tag | default .Chart.AppVersion }}
{{- end }}
Expand Down Expand Up @@ -43,7 +45,9 @@ spec:
{{- end }}
{{- if eq .Values.datadog.enabled true }}
admission.datadoghq.com/enabled: "true"
{{- if .Values.nucleusEnv }}
tags.datadoghq.com/env: {{ .Values.nucleusEnv }}
{{- end }}
tags.datadoghq.com/service: {{ template "neosync-app.fullname" . }}
tags.datadoghq.com/version: {{ .Values.image.tag | default .Chart.AppVersion }}
{{- end }}
Expand Down

0 comments on commit 7ac9a56

Please sign in to comment.