File tree Expand file tree Collapse file tree 18 files changed +66
-0
lines changed Expand file tree Collapse file tree 18 files changed +66
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ The command removes all the Kubernetes components associated with the chart and
78
78
| ` namespace ` | Namespace where to deploy the Sealed Secrets controller | ` "" ` |
79
79
| ` extraDeploy ` | Array of extra objects to deploy with the release | ` [] ` |
80
80
| ` commonAnnotations ` | Annotations to add to all deployed resources | ` {} ` |
81
+ | ` commonLabels ` | Labels to add to all deployed resources | ` {} ` |
81
82
82
83
### Sealed Secrets Parameters
83
84
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ metadata:
7
7
{{- if .Values.rbac.labels }}
8
8
{{- include "sealed-secrets.render" ( dict "value" .Values.rbac.labels "context" $) | nindent 4 }}
9
9
{{- end }}
10
+ {{- if .Values.commonLabels }}
11
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
12
+ {{- end }}
10
13
roleRef :
11
14
apiGroup : rbac.authorization.k8s.io
12
15
kind : ClusterRole
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ metadata:
7
7
{{- if .Values.rbac.labels }}
8
8
{{- include "sealed-secrets.render" ( dict "value" .Values.rbac.labels "context" $) | nindent 4 }}
9
9
{{- end }}
10
+ {{- if .Values.commonLabels }}
11
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
12
+ {{- end }}
10
13
rules :
11
14
- apiGroups :
12
15
- bitnami.com
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ metadata:
11
11
{{- if $.Values.metrics.dashboards.labels }}
12
12
{{- include "sealed-secrets.render" ( dict "value" $.Values.metrics.dashboards.labels "context" $) | nindent 4 }}
13
13
{{- end }}
14
+ {{- if .Values.commonLabels }}
15
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
16
+ {{- end }}
14
17
annotations :
15
18
{{- if $.Values.metrics.dashboards.annotations }}
16
19
{{- include "sealed-secrets.render" ( dict "value" $.Values.metrics.dashboards.annotations "context" $) | nindent 4 }}
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ metadata:
5
5
name : {{ include "sealed-secrets.fullname" . }}
6
6
namespace : {{ include "sealed-secrets.namespace" . }}
7
7
labels : {{- include "sealed-secrets.labels" . | nindent 4 }}
8
+ {{- if .Values.commonLabels }}
9
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
10
+ {{- end }}
8
11
{{- if .Values.commonAnnotations }}
9
12
annotations : {{- toYaml .Values.commonAnnotations | nindent 4 }}
10
13
{{- end }}
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ metadata:
5
5
name : {{ include "sealed-secrets.fullname" . }}
6
6
namespace : {{ include "sealed-secrets.namespace" . }}
7
7
labels : {{- include "sealed-secrets.labels" . | nindent 4 }}
8
+ {{- if .Values.commonLabels }}
9
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
10
+ {{- end }}
8
11
{{- if .Values.ingress.annotations }}
9
12
annotations :
10
13
{{- if .Values.ingress.annotations }}
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ metadata:
5
5
name : {{ include "sealed-secrets.fullname" . }}
6
6
namespace : {{ include "sealed-secrets.namespace" . }}
7
7
labels : {{- include "sealed-secrets.labels" . | nindent 4 }}
8
+ {{- if .Values.commonLabels }}
9
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
10
+ {{- end }}
8
11
spec :
9
12
podSelector :
10
13
matchLabels : {{- include "sealed-secrets.matchLabels" . | nindent 6 }}
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ metadata:
5
5
name : {{ include "sealed-secrets.fullname" . }}
6
6
namespace : {{ include "sealed-secrets.namespace" . }}
7
7
labels : {{- include "sealed-secrets.labels" . | nindent 4 }}
8
+ {{- if .Values.commonLabels }}
9
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
10
+ {{- end }}
8
11
{{- if .Values.commonAnnotations }}
9
12
annotations : {{- toYaml .Values.commonAnnotations | nindent 4 }}
10
13
{{- end }}
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ metadata:
7
7
{{- if .Values.rbac.labels }}
8
8
{{- include "sealed-secrets.render" ( dict "value" .Values.rbac.labels "context" $) | nindent 4 }}
9
9
{{- end }}
10
+ {{- if .Values.commonLabels }}
11
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
12
+ {{- end }}
10
13
rules :
11
14
- apiGroups : ['extensions']
12
15
resources : ['podsecuritypolicies']
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ metadata:
7
7
{{- if .Values.rbac.labels }}
8
8
{{- include "sealed-secrets.render" ( dict "value" .Values.rbac.labels "context" $) | nindent 4 }}
9
9
{{- end }}
10
+ {{- if .Values.commonLabels }}
11
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
12
+ {{- end }}
10
13
roleRef :
11
14
apiGroup : rbac.authorization.k8s.io
12
15
kind : ClusterRole
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ kind: PodSecurityPolicy
4
4
metadata :
5
5
name : {{ include "sealed-secrets.fullname" . }}
6
6
labels : {{- include "sealed-secrets.labels" . | nindent 4 }}
7
+ {{- if .Values.commonLabels }}
8
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
9
+ {{- end }}
7
10
spec :
8
11
privileged : false
9
12
allowPrivilegeEscalation : false
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ metadata:
8
8
{{- if .Values.rbac.labels }}
9
9
{{- include "sealed-secrets.render" ( dict "value" .Values.rbac.labels "context" $) | nindent 4 }}
10
10
{{- end }}
11
+ {{- if .Values.commonLabels }}
12
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
13
+ {{- end }}
11
14
roleRef :
12
15
apiGroup : rbac.authorization.k8s.io
13
16
kind : Role
@@ -27,6 +30,9 @@ metadata:
27
30
{{- if .Values.rbac.labels }}
28
31
{{- include "sealed-secrets.render" ( dict "value" .Values.rbac.labels "context" $) | nindent 4 }}
29
32
{{- end }}
33
+ {{- if .Values.commonLabels }}
34
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
35
+ {{- end }}
30
36
roleRef :
31
37
apiGroup : rbac.authorization.k8s.io
32
38
kind : Role
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ metadata:
8
8
{{- if .Values.rbac.labels }}
9
9
{{- include "sealed-secrets.render" ( dict "value" .Values.rbac.labels "context" $) | nindent 4 }}
10
10
{{- end }}
11
+ {{- if .Values.commonLabels }}
12
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
13
+ {{- end }}
11
14
rules :
12
15
- apiGroups :
13
16
- " "
@@ -34,6 +37,9 @@ metadata:
34
37
{{- if .Values.rbac.labels }}
35
38
{{- include "sealed-secrets.render" ( dict "value" .Values.rbac.labels "context" $) | nindent 4 }}
36
39
{{- end }}
40
+ {{- if .Values.commonLabels }}
41
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
42
+ {{- end }}
37
43
rules :
38
44
- apiGroups :
39
45
- " "
Original file line number Diff line number Diff line change @@ -17,4 +17,7 @@ metadata:
17
17
{{- if .Values.serviceAccount.labels }}
18
18
{{- include "sealed-secrets.render" ( dict "value" .Values.serviceAccount.labels "context" $) | nindent 4 }}
19
19
{{- end }}
20
+ {{- if .Values.commonLabels }}
21
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
22
+ {{- end }}
20
23
{{ end }}
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ metadata:
17
17
{{- if .Values.service.labels }}
18
18
{{- include "sealed-secrets.render" ( dict "value" .Values.service.labels "context" $) | nindent 4 }}
19
19
{{- end }}
20
+ {{- if .Values.commonLabels }}
21
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
22
+ {{- end }}
20
23
spec :
21
24
type : {{ .Values.service.type }}
22
25
ports :
@@ -48,6 +51,9 @@ metadata:
48
51
{{- if .Values.metrics.service.labels }}
49
52
{{- include "sealed-secrets.render" ( dict "value" .Values.metrics.service.labels "context" $) | nindent 4 }}
50
53
{{- end }}
54
+ {{- if .Values.commonLabels }}
55
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
56
+ {{- end }}
51
57
spec :
52
58
type : {{ .Values.metrics.service.type }}
53
59
ports :
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ metadata:
12
12
{{- if .Values.metrics.serviceMonitor.labels }}
13
13
{{- include "sealed-secrets.render" ( dict "value" .Values.metrics.serviceMonitor.labels "context" $) | nindent 4 }}
14
14
{{- end }}
15
+ {{- if .Values.commonLabels }}
16
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
17
+ {{- end }}
15
18
{{- if .Values.metrics.serviceMonitor.annotations }}
16
19
annotations : {{- include "sealed-secrets.render" (dict "value" .Values.metrics.serviceMonitor.annotations "context" $) | nindent 4 }}
17
20
{{- end }}
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ metadata:
7
7
name : {{ .name }}
8
8
namespace : {{ include "sealed-secrets.namespace" $ | quote }}
9
9
labels : {{- include "sealed-secrets.labels" $ | nindent 4 }}
10
+ {{- if .Values.commonLabels }}
11
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
12
+ {{- end }}
10
13
type : kubernetes.io/tls
11
14
data :
12
15
tls.crt : {{ .certificate | b64enc }}
@@ -23,6 +26,9 @@ metadata:
23
26
name : {{ printf "%s-tls" .Values.ingress.hostname }}
24
27
namespace : {{ include "sealed-secrets.namespace" . }}
25
28
labels : {{- include "sealed-secrets.labels" . | nindent 4 }}
29
+ {{- if .Values.commonLabels }}
30
+ {{- include "sealed-secrets.render" (dict "value" .Values.commonLabels "context" $) | nindent 4 }}
31
+ {{- end }}
26
32
type : kubernetes.io/tls
27
33
data :
28
34
tls.crt : {{ $cert.Cert | b64enc | quote }}
Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ extraDeploy: []
21
21
# #
22
22
commonAnnotations : {}
23
23
24
+ # # @param commonLabels [ojbect] Labels to add to all deployed resources
25
+ # # ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
26
+ # #
27
+ commonLabels : {}
28
+
24
29
# # @section Sealed Secrets Parameters
25
30
26
31
# # Sealed Secrets image
You can’t perform that action at this time.
0 commit comments