Skip to content

Commit b49d9ba

Browse files
weltekialexellis
authored andcommitted
Add oem as a deployment option in the chart
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
1 parent a1c137c commit b49d9ba

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

chart/openfaas/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ yaml) |
456456
| `nodeSelector` | Global [NodeSelector](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/) | `{}` |
457457
| `openfaasImagePullPolicy` | Image pull policy for openfaas components, can change to `IfNotPresent` in offline env | `Always` |
458458
| `openfaasPro` | Deploy OpenFaaS Pro | `false` |
459+
| `oem` | Deploy OpenFaaS oem | `false` |
459460
| `psp` | Enable [Pod Security Policy](https://kubernetes.io/docs/concepts/policy/pod-security-policy/) for OpenFaaS accounts | `false` |
460461
| `rbac` | Enable RBAC | `true` |
461462
| `securityContext` | Deploy with a `securityContext` set, this can be disabled for use with Istio sidecar injection | `true` |
@@ -490,6 +491,7 @@ yaml) |
490491
| `faasnetes.resources` | Resource limits and requests for faas-netes container | See [values.yaml](./values.yaml) |
491492
| `faasnetes.writeTimeout` | Write timeout for the faas-netes API | `""` (defaults to gateway.writeTimeout) |
492493
| `faasnetesPro.image` | Container image used for faas-netes when `openfaasPro=true` | See [values.yaml](./values.yaml) |
494+
| `faasnetesOem.image` | Container image used for faas-netes when `oem=true` | See [values.yaml](./values.yaml) |
493495
| `faasnetesPro.logs.format` | Set the log format, supports `console` or `json` | `console` |
494496
| `faasnetesPro.logs.debug` | Print debug logs | `false` |
495497
| `operator.create` | Use the OpenFaaS operator CRD controller, default uses faas-netes as the Kubernetes controller | `false` |

chart/openfaas/templates/gateway-dep.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ spec:
5555
secret:
5656
secretName: basic-auth
5757
{{- end }}
58-
{{- if .Values.openfaasPro }}
58+
{{- if or .Values.openfaasPro .Values.oem }}
5959
- name: license
6060
secret:
6161
secretName: openfaas-license
@@ -353,6 +353,8 @@ spec:
353353
{{- .Values.faasnetes.resources | toYaml | nindent 12 }}
354354
{{- if .Values.openfaasPro }}
355355
image: {{ .Values.faasnetesPro.image }}
356+
{{- else if .Values.oem }}
357+
image: {{ .Values.faasnetesOem.image}}
356358
{{- else }}
357359
image: {{ .Values.faasnetes.image }}
358360
{{- end }}
@@ -364,7 +366,7 @@ spec:
364366
{{- end }}
365367
command:
366368
- ./faas-netes
367-
{{- if .Values.openfaasPro }}
369+
{{- if or .Values.openfaasPro .Values.oem }}
368370
- "-license-file=/var/secrets/license/license"
369371
{{- end }}
370372
env:
@@ -445,7 +447,7 @@ spec:
445447
readOnly: true
446448
mountPath: "/var/secrets/issuer-key"
447449
{{- end }}
448-
{{- if .Values.openfaasPro }}
450+
{{- if or .Values.openfaasPro .Values.oem }}
449451
- name: license
450452
readOnly: true
451453
mountPath: "/var/secrets/license"

chart/openfaas/values.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ functionNamespace: openfaas-fn # Default namespace for functions
33
# Contact us via https://www.openfaas.com/support to purchase a license
44
openfaasPro: false
55

6+
# Contact us via https://www.openfaas.com/support to purchase a license
7+
oem: false
8+
69
httpProbe: true # Setting to true will use HTTP for readiness and liveness probe on the OpenFaaS core components
710

811
# set clusterRole: true for:
@@ -176,6 +179,9 @@ faasnetesPro:
176179
debug: false
177180
format: "console"
178181

182+
faasnetesOem:
183+
image: ghcr.io/openfaasltd/faas-netes-oem:0.1.0-rc1
184+
179185
# For the Community Edition
180186
faasnetes:
181187
image: ghcr.io/openfaas/faas-netes:0.18.0

0 commit comments

Comments
 (0)