Skip to content

Commit

Permalink
chore: add global labels support
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed Jul 9, 2024
1 parent 415b75e commit 1463bdd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions agent-chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ Selector labels
app.kubernetes.io/name: {{ include "incident-commander.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
control-plane: incident-commander
{{- if .Values.global.labels }}
{{.Values.global.labels | toYaml}}
{{- end }}
{{- end }}

{{/*
Expand Down
1 change: 1 addition & 0 deletions agent-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ global:
logLevel: ""
imageRegistry: public.ecr.aws
imagePrefix: k4y9r6y5
labels: {}
logLevel: "{{.Values.global.logLevel}}"
jsonLogs: true
serviceAccount:
Expand Down
3 changes: 3 additions & 0 deletions chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ Selector labels
app.kubernetes.io/name: {{ include "incident-commander.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
control-plane: incident-commander
{{- if .Values.global.labels }}
{{.Values.global.labels | toYaml}}
{{- end }}
{{- end }}

{{/*
Expand Down
1 change: 1 addition & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ global:
logLevel: ""
imageRegistry: public.ecr.aws
imagePrefix: k4y9r6y5
labels: {}
ui:
host: "mission-control-ui.local"
tlsSecretName: "mission-control-ui-tls"
Expand Down

0 comments on commit 1463bdd

Please sign in to comment.