Skip to content

Commit 1e3bfee

Browse files
committed
Added support for specifying extra controller env vars
1 parent ee419a7 commit 1e3bfee

4 files changed

Lines changed: 17 additions & 4 deletions

File tree

charts/mirrors/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# mirrors chart
22

3+
## 0.1.9
4+
* Added support for specifying extra controller env vars
5+
36
## 0.1.7
47
* Use caBundle when certmanager.enabled is false
58

@@ -13,4 +16,4 @@
1316
* Fixed incorrect webhook serving cert name
1417

1518
## 0.1.3
16-
* Up mirrors version to 0.2.4
19+
* Up mirrors version to 0.2.4

charts/mirrors/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ apiVersion: v2
22
name: mirrors
33
description: mirrors controller
44
type: application
5-
version: 0.1.8
5+
version: 0.1.9
66
appVersion: "0.2.7"
77
home: https://github.com/ktsstudio/mirrors

charts/mirrors/templates/manager.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ spec:
8080
env:
8181
- name: ENABLE_WEBHOOKS
8282
value: {{ .Values.webhooks.enabled | quote }}
83+
{{- range .Values.env }}
84+
- name: {{ .name }}
85+
value: {{ .value | quote }}
86+
{{- end }}
8387
serviceAccountName: {{ include "mirrors.serviceAccountName" . }}
8488
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
8589
{{- with .Values.nodeSelector }}
@@ -100,4 +104,4 @@ spec:
100104
secret:
101105
defaultMode: 420
102106
secretName: {{ include "mirrors.fullname" . }}-webhook-server-cert
103-
{{- end }}
107+
{{- end }}

charts/mirrors/values.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ installCRDs: true
77
# Replica count of mirrors controller pod
88
replicaCount: 1
99

10+
# controller env variables, for example:
11+
# env:
12+
# - name: VAULT_SKIP_VERIFY
13+
# value: 'true'
14+
env: []
15+
1016
# Docker image of a mirrors controller
1117
image:
1218
repository: ktshub/mirrors
@@ -105,4 +111,4 @@ webhooks:
105111

106112
# Controls creation of a ServiceMonitor
107113
serviceMonitor:
108-
enabled: false
114+
enabled: false

0 commit comments

Comments
 (0)