Skip to content

Commit a6c0224

Browse files
authored
Add labels to configmap and serviceaccount (#262)
* Add labels to configmap and serviceaccount * Fix Ci
1 parent 4fb75b2 commit a6c0224

File tree

10 files changed

+26
-2
lines changed

10 files changed

+26
-2
lines changed

charts/retool/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: retool
33
description: A Helm chart for Kubernetes
44
type: application
5-
version: 6.9.0
5+
version: 6.9.1
66
maintainers:
77
- name: Retool Engineering
88

charts/retool/charts/retool-temporal-services-helm/templates/server-configmap.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ metadata:
1111
app.kubernetes.io/instance: {{ $.Release.Name }}
1212
app.kubernetes.io/version: {{ $.Chart.AppVersion | replace "+" "_" }}
1313
app.kubernetes.io/part-of: {{ $.Chart.Name }}
14+
{{- range $key, $value := $.Values.server.labels }}
15+
{{ $key }}: {{ $value | quote }}
16+
{{- end }}
1417
data:
1518
config_template.yaml: |-
1619
log:
@@ -103,7 +106,7 @@ data:
103106
104107
pprof:
105108
port: 7936
106-
109+
107110
metrics:
108111
tags:
109112
type: {{ $service }}

charts/retool/charts/retool-temporal-services-helm/templates/server-dynamicconfigmap.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ metadata:
1010
app.kubernetes.io/instance: {{ .Release.Name }}
1111
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" }}
1212
app.kubernetes.io/part-of: {{ .Chart.Name }}
13+
{{- range $key, $value := $.Values.server.labels }}
14+
{{ $key }}: {{ $value | quote }}
15+
{{- end }}
1316
data:
1417
dynamic_config.yaml: |-
1518
{{- if $.Values.server.dynamicConfig }}

charts/retool/charts/retool-temporal-services-helm/templates/server-service.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ metadata:
1111
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" }}
1212
app.kubernetes.io/component: frontend
1313
app.kubernetes.io/part-of: {{ .Chart.Name }}
14+
{{- range $key, $value := $.Values.server.labels }}
15+
{{ $key }}: {{ $value | quote }}
16+
{{- end }}
1417
{{- if .Values.server.frontend.service.annotations }}
1518
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.server.frontend.service.annotations "context" $) | nindent 4 }}
1619
{{- end }}
@@ -60,6 +63,9 @@ metadata:
6063
prometheus.io/scrape: 'true'
6164
prometheus.io/scheme: http
6265
prometheus.io/port: "9090"
66+
{{- range $key, $value := $.Values.server.labels }}
67+
{{ $key }}: {{ $value | quote }}
68+
{{- end }}
6369

6470
annotations:
6571
# Use this annotation in addition to the actual field below because the

charts/retool/charts/retool-temporal-services-helm/templates/serviceaccount.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ metadata:
1010
app.kubernetes.io/instance: {{ .Release.Name }}
1111
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" }}
1212
app.kubernetes.io/part-of: {{ .Chart.Name }}
13+
{{- range $key, $value := .Values.serviceAccount.labels }}
14+
{{ $key }}: {{ $value | quote }}
15+
{{- end }}
1316
annotations:
1417
helm.sh/hook: pre-install
1518
helm.sh/hook-weight: "-10"

charts/retool/charts/retool-temporal-services-helm/templates/web-configmap.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ metadata:
1111
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" }}
1212
app.kubernetes.io/component: web
1313
app.kubernetes.io/part-of: {{ .Chart.Name }}
14+
{{- range $key, $value := $.Values.server.labels }}
15+
{{ $key }}: {{ $value | quote }}
16+
{{- end }}
1417
data:
1518
config.yml: |
1619
{{- toYaml .Values.web.config | nindent 4 }}

charts/retool/charts/retool-temporal-services-helm/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ server:
6767
timerType: histogram
6868
podAnnotations: {}
6969
podLabels: {}
70+
labels: {}
7071
resources: {}
7172
# We usually recommend not to specify default resources and to leave this as a conscious
7273
# choice for the user. This also increases chances charts run on environments with little

charts/retool/templates/serviceaccount.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ automountServiceAccountToken: {{ .Values.serviceAccount.automountToken }}
55
metadata:
66
name: {{ include "retool.serviceAccountName" . }}
77
labels: {{- include "retool.labels" . | nindent 4 }}
8+
{{- range $key, $value := .Values.serviceAccount.labels }}
9+
{{ $key }}: {{ $value | quote }}
10+
{{- end }}
811
{{- if .Values.serviceAccount.annotations }}
912
annotations:
1013
{{ toYaml .Values.serviceAccount.annotations | indent 4 }}

charts/retool/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ serviceAccount:
233233
# If set and create is false, the service account must be existing
234234
name:
235235
annotations: {}
236+
labels: {}
236237
automountToken: false
237238

238239
livenessProbe:

values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ serviceAccount:
233233
# If set and create is false, the service account must be existing
234234
name:
235235
annotations: {}
236+
labels: {}
236237
automountToken: false
237238

238239
livenessProbe:

0 commit comments

Comments
 (0)