Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add global labels support #186

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
logLevel: ""
imageRegistry: public.ecr.aws
imagePrefix: k4y9r6y5
labels: {}
ui:
host: "mission-control-ui.local"
tlsSecretName: "mission-control-ui-tls"
Expand Down Expand Up @@ -102,24 +103,24 @@
work_mem: 10MB
max_wal_size: 4GB
log_autovacuum_min_duration: 0
log_connections: on

Check warning on line 106 in chart/values.yaml

View workflow job for this annotation

GitHub Actions / lint

106:22 [truthy] truthy value should be one of [false, true]
log_destination: "stderr"
log_directory: "/var/log/postgresql"
log_file_mode: 0644
log_filename: "postgresql.log"
log_line_prefix: "%m [%p] %q[user=%u,db=%d,app=%a] "
log_lock_waits: on

Check warning on line 112 in chart/values.yaml

View workflow job for this annotation

GitHub Actions / lint

112:21 [truthy] truthy value should be one of [false, true]
log_min_duration_statement: "1s"
log_rotation_age: 0
log_rotation_size: 0
log_statement: "all"
log_temp_files: 0
log_timezone: "UTC"
logging_collector: on

Check warning on line 119 in chart/values.yaml

View workflow job for this annotation

GitHub Actions / lint

119:24 [truthy] truthy value should be one of [false, true]
ssl: off

Check warning on line 120 in chart/values.yaml

View workflow job for this annotation

GitHub Actions / lint

120:10 [truthy] truthy value should be one of [false, true]
timezone: "UTC"
password_encryption: scram-sha-256
db_user_namespace: off

Check warning on line 123 in chart/values.yaml

View workflow job for this annotation

GitHub Actions / lint

123:24 [truthy] truthy value should be one of [false, true]
extra_float_digits: 0
secretKeyRef:
name: incident-commander-postgres
Expand Down
Loading