Skip to content

Commit 90f8df5

Browse files
committed
Addopt helm charts for remote use case
1 parent 8261698 commit 90f8df5

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

dist/chart/templates/manager/manager.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.controllerManager.enable }}
12
apiVersion: apps/v1
23
kind: Deployment
34
metadata:
@@ -40,7 +41,7 @@ spec:
4041
env:
4142
{{- range $key, $value := .Values.controllerManager.manager.env }}
4243
- name: {{ $key }}
43-
value: {{ $value }}
44+
value: {{ $value | quote}}
4445
{{- end }}
4546
{{- end }}
4647
livenessProbe:
@@ -70,6 +71,13 @@ spec:
7071
mountPath: /tmp/k8s-metrics-server/metrics-certs
7172
readOnly: true
7273
{{- end }}
74+
{{- range $volume := .Values.controllerManager.manager.volumes }}
75+
- name: {{ $volume.name }}
76+
mountPath: {{ $volume.mountPath }}
77+
{{- if $volume.readOnly }}
78+
readOnly: true
79+
{{- end }}
80+
{{- end }}
7381
securityContext:
7482
{{- toYaml .Values.controllerManager.podSecurityContext | nindent 8 }}
7583
serviceAccountName: {{ .Values.controllerManager.serviceAccountName }}
@@ -89,3 +97,8 @@ spec:
8997
secret:
9098
secretName: metrics-server-cert
9199
{{- end }}
100+
{{- range $volume := .Values.controllerManager.manager.volumes }}
101+
- name: {{ $volume.name }}
102+
{{- toYaml $volume.source | nindent 8 }}
103+
{{- end }}
104+
{{- end }}

dist/chart/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# [MANAGER]: Manager Deployment Configurations
22
controllerManager:
3+
enable: true
34
replicas: 1
45
strategy:
56
type: Recreate

0 commit comments

Comments
 (0)