File tree Expand file tree Collapse file tree 9 files changed +20
-8
lines changed Expand file tree Collapse file tree 9 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ You can customize the values of the helm deployment by using the following Value
3535| Parameter | Description | Default |
3636| ---------------------------------------- | ------------------------------------------------ | ------------------------------------------------------- |
3737| ` nameOverride ` | Overrides release name | ` "" ` |
38+ | ` namespaceOverride ` | Overrides namespace | ` "" ` |
3839| ` fullnameOverride ` | Overrides release fullname | ` "" ` |
3940| ` image.repository ` | Container image repository | ` emberstack/kubernetes-reflector ` |
4041| ` image.tag ` | Container image tag | ` Same as chart version ` |
@@ -165,6 +166,8 @@ spec:
165166 reflector.v1.k8s.emberstack.com/reflection-allowed-namespaces: ""
166167 ...
167168 ` ` `
169+
170+ =======
168171> Since version 1.15 of cert-manager you can annotate `Ingress` to create secrets created from certificates for mirroring using `cert-manager.io/secret-template` annotation (see https://github.com/cert-manager/cert-manager/pull/6839).
169172` ` ` yaml
170173apiVersion: networking.k8s.io/v1
Original file line number Diff line number Diff line change @@ -30,6 +30,14 @@ Create chart name and version as used by the chart label.
3030{ {- printf " %s-%s" .Chart.Name .Chart.Version | replace " +" " _" | trunc 63 | trimSuffix " -" } }
3131{ {- end } }
3232
33+ { {/*
34+ Expand the namespace of the release.
35+ Allows overriding it for multi-namespace deployments in combined charts.
36+ */} }
37+ { {- define " reflector.namespace" -} }
38+ { {- default .Release.Namespace .Values.namespaceOverride | trunc 63 | trimSuffix " -" -} }
39+ { {- end -} }
40+
3341{ {/*
3442Common labels
3543*/} }
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
33kind : ClusterRole
44metadata :
55 name : {{ include "reflector.fullname" . }}
6- namespace : {{ .Release.Namespace }}
6+ namespace : {{ include "reflector.namespace" . }}
77 labels :
88 {{- include "reflector.labels" . | nindent 4 }}
99rules :
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
33kind : ClusterRoleBinding
44metadata :
55 name : {{ include "reflector.fullname" . }}
6- namespace : {{ .Release.Namespace }}
6+ namespace : {{ include "reflector.namespace" . }}
77 labels :
88 {{- include "reflector.labels" . | nindent 4 }}
99roleRef :
@@ -13,5 +13,5 @@ roleRef:
1313subjects :
1414 - kind : ServiceAccount
1515 name : {{ include "reflector.serviceAccountName" . }}
16- namespace : {{ .Release.Namespace }}
17- {{- end }}
16+ namespace : {{ include "reflector.namespace" . }}
17+ {{- end }}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ apiVersion: {{ .Values.cron.apiVersion | default "batch/v1" }}
44kind : CronJob
55metadata :
66 name : {{ include "reflector.fullname" . }}
7- namespace : {{ .Release.Namespace }}
7+ namespace : {{ include "reflector.namespace" . }}
88 labels :
99 {{- include "reflector.labels" . | nindent 4 }}
1010
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ apiVersion: apps/v1
44kind : Deployment
55metadata :
66 name : {{ include "reflector.fullname" . }}
7- namespace : {{ .Release.Namespace }}
7+ namespace : {{ include "reflector.namespace" . }}
88 labels :
99 {{- include "reflector.labels" . | nindent 4 }}
1010
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apiVersion: autoscaling/v2
33kind : HorizontalPodAutoscaler
44metadata :
55 name : {{ include "reflector.fullname" . }}
6- namespace : {{ .Release.Namespace }}
6+ namespace : {{ include "reflector.namespace" . }}
77 labels :
88 {{- include "reflector.labels" . | nindent 4 }}
99spec :
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apiVersion: v1
33kind : ServiceAccount
44metadata :
55 name : {{ include "reflector.serviceAccountName" . }}
6- namespace : {{ .Release.Namespace }}
6+ namespace : {{ include "reflector.namespace" . }}
77 labels :
88 {{- include "reflector.labels" . | nindent 4 }}
99 {{- with .Values.serviceAccount.annotations }}
Original file line number Diff line number Diff line change 1212
1313imagePullSecrets : []
1414nameOverride : " "
15+ namespaceOverride : " "
1516fullnameOverride : " "
1617
1718cron :
You can’t perform that action at this time.
0 commit comments