Skip to content

Commit

Permalink
Add oem as a deployment option in the chart
Browse files Browse the repository at this point in the history
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
welteki authored and alexellis committed Feb 22, 2024
1 parent a1c137c commit b49d9ba
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions chart/openfaas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ yaml) |
| `nodeSelector` | Global [NodeSelector](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/) | `{}` |
| `openfaasImagePullPolicy` | Image pull policy for openfaas components, can change to `IfNotPresent` in offline env | `Always` |
| `openfaasPro` | Deploy OpenFaaS Pro | `false` |
| `oem` | Deploy OpenFaaS oem | `false` |
| `psp` | Enable [Pod Security Policy](https://kubernetes.io/docs/concepts/policy/pod-security-policy/) for OpenFaaS accounts | `false` |
| `rbac` | Enable RBAC | `true` |
| `securityContext` | Deploy with a `securityContext` set, this can be disabled for use with Istio sidecar injection | `true` |
Expand Down Expand Up @@ -490,6 +491,7 @@ yaml) |
| `faasnetes.resources` | Resource limits and requests for faas-netes container | See [values.yaml](./values.yaml) |
| `faasnetes.writeTimeout` | Write timeout for the faas-netes API | `""` (defaults to gateway.writeTimeout) |
| `faasnetesPro.image` | Container image used for faas-netes when `openfaasPro=true` | See [values.yaml](./values.yaml) |
| `faasnetesOem.image` | Container image used for faas-netes when `oem=true` | See [values.yaml](./values.yaml) |
| `faasnetesPro.logs.format` | Set the log format, supports `console` or `json` | `console` |
| `faasnetesPro.logs.debug` | Print debug logs | `false` |
| `operator.create` | Use the OpenFaaS operator CRD controller, default uses faas-netes as the Kubernetes controller | `false` |
Expand Down
8 changes: 5 additions & 3 deletions chart/openfaas/templates/gateway-dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
secret:
secretName: basic-auth
{{- end }}
{{- if .Values.openfaasPro }}
{{- if or .Values.openfaasPro .Values.oem }}
- name: license
secret:
secretName: openfaas-license
Expand Down Expand Up @@ -353,6 +353,8 @@ spec:
{{- .Values.faasnetes.resources | toYaml | nindent 12 }}
{{- if .Values.openfaasPro }}
image: {{ .Values.faasnetesPro.image }}
{{- else if .Values.oem }}
image: {{ .Values.faasnetesOem.image}}
{{- else }}
image: {{ .Values.faasnetes.image }}
{{- end }}
Expand All @@ -364,7 +366,7 @@ spec:
{{- end }}
command:
- ./faas-netes
{{- if .Values.openfaasPro }}
{{- if or .Values.openfaasPro .Values.oem }}
- "-license-file=/var/secrets/license/license"
{{- end }}
env:
Expand Down Expand Up @@ -445,7 +447,7 @@ spec:
readOnly: true
mountPath: "/var/secrets/issuer-key"
{{- end }}
{{- if .Values.openfaasPro }}
{{- if or .Values.openfaasPro .Values.oem }}
- name: license
readOnly: true
mountPath: "/var/secrets/license"
Expand Down
6 changes: 6 additions & 0 deletions chart/openfaas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ functionNamespace: openfaas-fn # Default namespace for functions
# Contact us via https://www.openfaas.com/support to purchase a license
openfaasPro: false

# Contact us via https://www.openfaas.com/support to purchase a license
oem: false

httpProbe: true # Setting to true will use HTTP for readiness and liveness probe on the OpenFaaS core components

# set clusterRole: true for:
Expand Down Expand Up @@ -176,6 +179,9 @@ faasnetesPro:
debug: false
format: "console"

faasnetesOem:
image: ghcr.io/openfaasltd/faas-netes-oem:0.1.0-rc1

# For the Community Edition
faasnetes:
image: ghcr.io/openfaas/faas-netes:0.18.0
Expand Down

0 comments on commit b49d9ba

Please sign in to comment.