Skip to content

Commit 5612a6a

Browse files
committed
Remove support for legacy pro queue-worker
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
1 parent 70989eb commit 5612a6a

File tree

3 files changed

+1
-42
lines changed

3 files changed

+1
-42
lines changed

chart/openfaas/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,6 @@ See [values.yaml](./values.yaml) for detailed configuration.
597597
| `queueWorker.queueGroup` | The name of the queue group used to process asynchronous function invocations | `faas` |
598598
| `queueWorkerPro.backoff` | The backoff algorithm used for retries. Must be one off `exponential`, `full` or `equal`| `exponential` |
599599
| `queueWorkerPro.httpRetryCodes` | Comma-separated list of HTTP status codes the queue-worker should retry | `408,429,500,502,503,504` |
600-
| `queueWorkerPro.image` | Container image used for the Pro version of the queue-worker | See [values.yaml](./values.yaml) |
601600
| `queueWorkerPro.initialRetryWait` | Time to wait for the first retry | `10s` |
602601
| `queueWorkerPro.insecureTLS` | Enable insecure TLS for callback invocations | `false` |
603602
| `queueWorkerPro.maxRetryAttempts` | Amount of times to try sending a message to a function before discarding it | `10` |

chart/openfaas/templates/queueworker-dep.yaml

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -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"

chart/openfaas/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ jetstreamQueueWorker:
253253
#
254254
# Enabled automatically when openfaasPro is set to true
255255
queueWorkerPro:
256-
image: ghcr.io/openfaasltd/queue-worker:0.4.0
257256
maxRetryAttempts: "10"
258257
maxRetryWait: "120s"
259258
initialRetryWait: "10s"

0 commit comments

Comments
 (0)