File tree 14 files changed +69
-11
lines changed
helm/sealed-secrets/templates
14 files changed +69
-11
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ metadata:
10
10
{{- if .Values.commonLabels }}
11
11
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
12
12
{{- end }}
13
+ annotations :
14
+ {{- if .Values.commonAnnotations }}
15
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
16
+ {{- end }}
13
17
roleRef :
14
18
apiGroup : rbac.authorization.k8s.io
15
19
kind : ClusterRole
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ metadata:
10
10
{{- if .Values.commonLabels }}
11
11
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
12
12
{{- end }}
13
+ annotations :
14
+ {{- if .Values.commonAnnotations }}
15
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
16
+ {{- end }}
13
17
rules :
14
18
- apiGroups :
15
19
- bitnami.com
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ metadata:
18
18
{{- if $.Values.metrics.dashboards.annotations }}
19
19
{{- include "sealed-secrets.render" ( dict "value" $.Values.metrics.dashboards.annotations "context" $) | nindent 4 }}
20
20
{{- end }}
21
+ {{- if $.Values.commonAnnotations }}
22
+ {{- include "sealed-secrets.render" ( dict "value" $.Values.commonAnnotations "context" $ ) | nindent 4 }}
23
+ {{- end }}
21
24
data :
22
25
{{ base $path }} : |-
23
26
{{ $.Files.Get $path | indent 4 }}
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ metadata:
8
8
{{- if .Values.commonLabels }}
9
9
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
10
10
{{- end }}
11
- {{- if .Values.commonAnnotations }}
12
- annotations : {{- toYaml .Values.commonAnnotations | nindent 4 }}
13
- {{- end }}
11
+ annotations :
12
+ {{- if .Values.commonAnnotations }}
13
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
14
+ {{- end }}
14
15
spec :
15
16
replicas : 1
16
17
{{- if .Values.revisionHistoryLimit }}
Original file line number Diff line number Diff line change @@ -8,12 +8,13 @@ metadata:
8
8
{{- if .Values.commonLabels }}
9
9
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
10
10
{{- end }}
11
- {{- if .Values.ingress.annotations }}
12
11
annotations :
13
12
{{- if .Values.ingress.annotations }}
14
13
{{- include "sealed-secrets.render" ( dict "value" .Values.ingress.annotations "context" $) | nindent 4 }}
15
14
{{- end }}
16
- {{- end }}
15
+ {{- if .Values.commonAnnotations }}
16
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
17
+ {{- end }}
17
18
spec :
18
19
{{- if and .Values.ingress.ingressClassName (eq "true" (include "sealed-secrets.supportsIngressClassname" .)) }}
19
20
ingressClassName : {{ .Values.ingress.ingressClassName | quote }}
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ metadata:
8
8
{{- if .Values.commonLabels }}
9
9
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
10
10
{{- end }}
11
+ annotations :
12
+ {{- if .Values.commonAnnotations }}
13
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
14
+ {{- end }}
11
15
spec :
12
16
podSelector :
13
17
matchLabels : {{- include "sealed-secrets.matchLabels" . | nindent 6 }}
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ metadata:
8
8
{{- if .Values.commonLabels }}
9
9
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
10
10
{{- end }}
11
- {{- if .Values.commonAnnotations }}
12
- annotations : {{- toYaml .Values.commonAnnotations | nindent 4 }}
13
- {{- end }}
11
+ annotations :
12
+ {{- if .Values.commonAnnotations }}
13
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
14
+ {{- end }}
14
15
spec :
15
16
{{- if regexMatch "64$" (typeOf .Values.pdb.minAvailable) }}
16
17
minAvailable : {{ .Values.pdb.minAvailable }}
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ metadata:
10
10
{{- if .Values.commonLabels }}
11
11
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
12
12
{{- end }}
13
+ annotations :
14
+ {{- if .Values.commonAnnotations }}
15
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
16
+ {{- end }}
13
17
rules :
14
18
- apiGroups : ['extensions']
15
19
resources : ['podsecuritypolicies']
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ metadata:
10
10
{{- if .Values.commonLabels }}
11
11
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
12
12
{{- end }}
13
+ annotations :
14
+ {{- if .Values.commonAnnotations }}
15
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
16
+ {{- end }}
13
17
roleRef :
14
18
apiGroup : rbac.authorization.k8s.io
15
19
kind : ClusterRole
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ metadata:
7
7
{{- if .Values.commonLabels }}
8
8
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
9
9
{{- end }}
10
+ annotations :
11
+ {{- if .Values.commonAnnotations }}
12
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
13
+ {{- end }}
10
14
spec :
11
15
privileged : false
12
16
allowPrivilegeEscalation : false
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ metadata:
11
11
{{- if .Values.commonLabels }}
12
12
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
13
13
{{- end }}
14
+ annotations :
15
+ {{- if .Values.commonAnnotations }}
16
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
17
+ {{- end }}
14
18
roleRef :
15
19
apiGroup : rbac.authorization.k8s.io
16
20
kind : Role
@@ -35,6 +39,10 @@ metadata:
35
39
{{- if .Values.commonLabels }}
36
40
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
37
41
{{- end }}
42
+ annotations :
43
+ {{- if .Values.commonAnnotations }}
44
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
45
+ {{- end }}
38
46
roleRef :
39
47
apiGroup : rbac.authorization.k8s.io
40
48
kind : Role
@@ -54,6 +62,10 @@ metadata:
54
62
{{- if $.Values.rbac.labels }}
55
63
{{- include "sealed-secrets.render" ( dict "value" $.Values.rbac.labels "context" $) | nindent 4 }}
56
64
{{- end }}
65
+ annotations :
66
+ {{- if .Values.commonAnnotations }}
67
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
68
+ {{- end }}
57
69
roleRef :
58
70
apiGroup : rbac.authorization.k8s.io
59
71
kind : Role
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ metadata:
11
11
{{- if .Values.commonLabels }}
12
12
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
13
13
{{- end }}
14
+ annotations :
15
+ {{- if .Values.commonAnnotations }}
16
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
17
+ {{- end }}
14
18
rules :
15
19
- apiGroups :
16
20
- " "
Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ metadata:
15
15
{{- if .Values.commonLabels }}
16
16
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
17
17
{{- end }}
18
- {{- if .Values.metrics.serviceMonitor.annotations }}
19
- annotations : {{- include "sealed-secrets.render" (dict "value" .Values.metrics.serviceMonitor.annotations "context" $) | nindent 4 }}
20
- {{- end }}
18
+ annotations :
19
+ {{- if .Values.metrics.serviceMonitor.annotations }}
20
+ {{- include "sealed-secrets.render" (dict "value" .Values.metrics.serviceMonitor.annotations "context" $) | nindent 4 }}
21
+ {{- end }}
22
+ {{- if .Values.commonAnnotations }}
23
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
24
+ {{- end }}
21
25
spec :
22
26
endpoints :
23
27
- port : metrics
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ metadata:
10
10
{{- if .Values.commonLabels }}
11
11
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
12
12
{{- end }}
13
+ annotations :
14
+ {{- if .Values.commonAnnotations }}
15
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
16
+ {{- end }}
13
17
type : kubernetes.io/tls
14
18
data :
15
19
tls.crt : {{ .certificate | b64enc }}
@@ -29,6 +33,10 @@ metadata:
29
33
{{- if .Values.commonLabels }}
30
34
{{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
31
35
{{- end }}
36
+ annotations :
37
+ {{- if .Values.commonAnnotations }}
38
+ {{- include "sealed-secrets.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
39
+ {{- end }}
32
40
type : kubernetes.io/tls
33
41
data :
34
42
tls.crt : {{ $cert.Cert | b64enc | quote }}
You can’t perform that action at this time.
0 commit comments