@@ -32,27 +32,12 @@ spec:
3232 secret :
3333 secretName : basic-auth
3434 {{- end }}
35-
36- {{- if .Values.openfaasPro }}
37- - name : license
38- secret :
39- secretName : openfaas-license
40- {{- end }}
4135 containers :
4236 - name : queue-worker
4337 resources :
4438 {{- .Values.queueWorker.resources | toYaml | nindent 12 }}
45- {{- if .Values.openfaasPro }}
46- image : {{ include "openfaas.image" (dict "image" .Values.queueWorkerPro.image "registryPrefix" .Values.registryPrefix) }}
47- {{- else }}
4839 image : {{ include "openfaas.image" (dict "image" .Values.queueWorker.image "registryPrefix" .Values.registryPrefix) }}
49- {{- end }}
5040 imagePullPolicy : {{ .Values.openfaasImagePullPolicy }}
51- {{- if .Values.openfaasPro }}
52- command :
53- - " /worker"
54- - " -license-file=/var/secrets/license/license"
55- {{- end }}
5641 env :
5742 {{- if .Values.nats.external.enabled }}
5843 - name : faas_nats_address
@@ -78,38 +63,14 @@ spec:
7863 - name : ack_wait
7964 value : " {{ .Values.queueWorker.ackWait }}"
8065 - name : max_inflight
81- value : " {{ or (.Values.queueWorkerPro.maxInflight) (.Values.queueWorker.maxInflight ) (" 1") }}"
82-
83- # OpenFaaS PRO license required
84- - name : " max_retry_attempts"
85- value : " {{ .Values.queueWorkerPro.maxRetryAttempts }}"
86- - name : " max_retry_wait"
87- value : " {{ .Values.queueWorkerPro.maxRetryWait }}"
88- - name : " initial_retry_wait"
89- value : " {{ .Values.queueWorkerPro.initialRetryWait }}"
90- - name : " retry_http_codes"
91- value : " {{ .Values.queueWorkerPro.httpRetryCodes }}"
92- - name : print_request_body
93- value : " {{ .Values.queueWorkerPro.printRequestBody }}"
94- - name : print_response_body
95- value : " {{ .Values.queueWorkerPro.printResponseBody }}"
96- {{- if .Values.openfaasPro }}
97- - name : tls_insecure
98- value : " {{ .Values.queueWorkerPro.insecureTLS }}"
99- {{- end }}
66+ value : " {{ (.Values.queueWorker.maxInflight ) (" 1") }}"
10067
10168 {{- if .Values.basic_auth }}
10269 - name : secret_mount_path
10370 value : " /var/secrets/gateway"
10471 - name : basic_auth
10572 value : " {{ .Values.basic_auth }}"
106-
10773 volumeMounts :
108- {{- if .Values.openfaasPro }}
109- - name : license
110- readOnly : true
111- mountPath : " /var/secrets/license"
112- {{- end }}
11374 - name : auth
11475 readOnly : true
11576 mountPath : " /var/secrets/gateway"
0 commit comments