Skip to content

Commit 17c0b08

Browse files
committed
optional controller and custom BUNKERWEB_INSTANCES
1 parent 1655c53 commit 17c0b08

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

charts/bunkerweb/templates/controller-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.controller.enabled -}}
12
apiVersion: apps/v1
23
kind: Deployment
34
metadata:
@@ -52,4 +53,5 @@ spec:
5253
{{- with .Values.nodeSelector }}
5354
nodeSelector:
5455
{{- toYaml . | nindent 8 }}
55-
{{- end }}
56+
{{- end }}
57+
{{- end }}

charts/bunkerweb/templates/scheduler-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ spec:
5252
- name: API_WHITELIST_IP
5353
value: "{{ .Values.settings.misc.apiWhitelistIp }}"
5454
- name: BUNKERWEB_INSTANCES
55-
value: ""
55+
value: {{ .Values.scheduler.extraEnvs.BUNKERWEB_INSTANCES | default "" }}
5656
{{- if .Values.settings.ui.wizard }}
5757
- name: UI_HOST
5858
value: "{{ include "bunkerweb.uiHost" . }}"

charts/bunkerweb/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ scheduler:
104104

105105
# Controller variables
106106
controller:
107+
enabled: true
107108
repository: bunkerity/bunkerweb-autoconf
108109
pullPolicy: Always
109110
tag: 1.6.1

0 commit comments

Comments
 (0)