Skip to content

Commit bb6de4e

Browse files
authored
Add support for secret annotation (#106) (#107)
Signed-off-by: Jakub Malek <jakub.stan.malek@gmail.com>
1 parent 9bc2ecf commit bb6de4e

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

templates/secrets.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ metadata:
5151
name: {{ include "pgdog.fullname" . }}
5252
labels:
5353
{{- include "pgdog.labels" . | nindent 4 }}
54+
{{- with .Values.secret.annotations }}
55+
annotations:
56+
{{- toYaml . | nindent 4 }}
57+
{{- end }}
5458
data:
5559
users.toml: {{ include "pgdog.users" . | b64enc }}
5660
{{- end }}

templates/tls-secret.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ metadata:
77
name: {{ $fullname }}-tls
88
labels:
99
{{- include "pgdog.labels" . | nindent 4 }}
10+
{{- with .Values.secret.annotations }}
11+
annotations:
12+
{{- toYaml . | nindent 4 }}
13+
{{- end }}
1014
type: kubernetes.io/tls
1115
stringData:
1216
tls.crt: |

values.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,4 +652,8 @@ prometheusCollector:
652652
affinity: {}
653653

654654
securityContext: {}
655-
podSecurityContext: {}
655+
podSecurityContext: {}
656+
657+
secret:
658+
# annotations allows adding custom annotations to the generated Secret
659+
annotations: {}

0 commit comments

Comments
 (0)