Skip to content

Commit c083fea

Browse files
authored
Extend podLabel configurations (#54)
* Add podlabels to db instances' pg exporter * Separate db-operator controller and webhook podlabels * Update chart versions
1 parent c7fc825 commit c083fea

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

charts/db-instances/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: v1
22
appVersion: "1.0"
33
description: Database Instances for db operator
44
name: db-instances
5-
version: 2.3.3
5+
version: 2.3.4

charts/db-instances/templates/postgres_exporter.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ spec:
2929
labels:
3030
{{- include "db-instances.labels" $ | nindent 8 }}
3131
db-instance: {{ $name }}
32+
{{- with $value.podLabels }}
33+
{{- toYaml . | nindent 8 }}
34+
{{- end }}
3235
spec:
3336
containers:
3437
- env:

charts/db-operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
type: application
33
name: db-operator
4-
version: 1.27.0
4+
version: 1.27.1
55
# ---------------------------------------------------------------------------------
66
# -- All supported k8s versions are in the test:
77
# -- https://github.com/db-operator/charts/blob/main/.github/workflows/test.yaml

charts/db-operator/templates/webhook/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ spec:
1717
labels:
1818
{{- include "labels" . | nindent 8 }}
1919
app.kubernetes.io/component: "webhook"
20-
{{- if .Values.podLabels }}
21-
{{ toYaml .Values.podLabels | trim | nindent 8 }}
20+
{{- if .Values.webhook.podLabels }}
21+
{{ toYaml .Values.webhook.podLabels | trim | nindent 8 }}
2222
{{- end }}
2323
{{- if .Values.annotations }}
2424
annotations:

charts/db-operator/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ crds:
3131
annotations: {}
3232
webhook:
3333
enabled: true
34+
podLabels: {}
3435
serviceAccount:
3536
create: true
3637
names:

0 commit comments

Comments
 (0)