File tree Expand file tree Collapse file tree 3 files changed +75
-0
lines changed
Expand file tree Collapse file tree 3 files changed +75
-0
lines changed Original file line number Diff line number Diff line change 9494 - name : geoip-db
9595 mountPath : /geoip
9696 {{- end }}
97+ {{- if $.Values.sidecar.blueprints.enabled }}
98+ - name : sidecar-blueprints
99+ mountPath : /blueprints/sidecar
100+ {{- end }}
97101 {{- with $.Values.volumeMounts }}
98102 {{- toYaml . | nindent 12 }}
99103 {{- end }}
@@ -151,6 +155,34 @@ spec:
151155 - name : geoip-db
152156 mountPath : /usr/share/GeoIP
153157 {{- end }}
158+ {{- with $.Values.sidecar.blueprints }}
159+ {{- if .enabled }}
160+ - name : sidecar-blueprints
161+ image : " {{ .image.repository }}:{{ .image.tag }}"
162+ env :
163+ - name : " FOLDER"
164+ value : " /blueprints/sidecar"
165+ - name : " LABEL"
166+ value : " goauthentik_blueprint"
167+ - name : " LABEL_VALUE"
168+ value : " 1"
169+ {{- with .namespace }}
170+ - name : " NAMESPACE"
171+ value : " {{ . }}"
172+ {{- end }}
173+ {{- with .resource }}
174+ - name : " RESOURCE"
175+ value : " {{ . }}"
176+ {{- end }}
177+ {{- with .uniqueFilenames }}
178+ - name : " UNIQUE_FILENAMES"
179+ value : " {{ . }}"
180+ {{- end }}
181+ volumeMounts :
182+ - name : sidecar-blueprints
183+ mountPath : /blueprints/sidecar
184+ {{- end }}
185+ {{- end }}
154186 {{- with $.Values.additionalContainers }}
155187 {{- $additionalContainers := list }}
156188 {{- range $name, $container := . }}
@@ -166,6 +198,10 @@ spec:
166198 - name : geoip-db
167199 emptyDir : {}
168200 {{- end }}
201+ {{- if $.Values.sidecar.blueprints.enabled }}
202+ - name : sidecar-blueprints
203+ emptyDir : {}
204+ {{- end }}
169205 {{- with $.Values.volumes }}
170206 {{- toYaml . | nindent 8 }}
171207 {{- end }}
Original file line number Diff line number Diff line change 1+ {{- if .Values.serviceAccount.create }}
2+
3+ {{ include "common.serviceAccount" . }}
4+
5+ {{- if .Values.sidecar.blueprints.enabled }}
6+ ---
7+ apiVersion : rbac.authorization.k8s.io/v1
8+ kind : ClusterRole
9+ metadata :
10+ name : {{ include "common.names.fullname" . }}
11+ rules :
12+ - apiGroups : [""]
13+ resources : ["configmaps", "secrets"]
14+ verbs : ["get", "watch", "list"]
15+ ---
16+ kind : ClusterRoleBinding
17+ apiVersion : rbac.authorization.k8s.io/v1
18+ metadata :
19+ name : {{ include "common.names.fullname" . }}
20+ roleRef :
21+ kind : ClusterRole
22+ name : {{ include "common.names.fullname" . }}
23+ apiGroup : rbac.authorization.k8s.io
24+ subjects :
25+ - kind : ServiceAccount
26+ name : {{ include "common.names.fullname" . }}
27+ namespace : {{ .Release.Namespace }}
28+ {{- end }}
29+ {{- end }}
Original file line number Diff line number Diff line change @@ -182,6 +182,16 @@ prometheus:
182182 # -- labels additional on PrometheusRule
183183 labels : {}
184184
185+ sidecar :
186+ blueprints :
187+ enabled : false
188+ image :
189+ repository : " ghcr.io/kiwigrid/k8s-sidecar"
190+ tag : " 1.23.0"
191+ namespace : " "
192+ resource : " both"
193+ uniqueFilenames : true
194+
185195geoip :
186196 # -- optional GeoIP, deploys a cronjob to download the maxmind database
187197 enabled : false
You can’t perform that action at this time.
0 commit comments