[node-red] Added serviceAccountName to pod spec (#54)

* Added option to specify ServiceAccount (needed to associate a PodSecurityPolicy)

* Bumped chart version, added variable to README

* Bumped version to 3.1.0, as per request
This commit is contained in:
Feliksas The Lion 2020-09-21 16:55:26 +03:00 committed by GitHub
parent 9e284da7a6
commit fb1c653533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 1.0.6-12
description: Node-RED is low-code programming for event-driven applications
name: node-red
version: 3.0.0
version: 3.1.0
keywords:
- nodered
- node-red

View File

@ -42,6 +42,7 @@ The following tables lists the configurable parameters of the Node-RED chart and
| `image.tag` | node-red image tag | `1.0.6-12-minimal` |
| `image.pullPolicy` | node-red image pull policy | `IfNotPresent` |
| `strategyType` | Specifies the strategy used to replace old Pods by new ones | `Recreate` |
| `serviceAccountName` | Service account to run the pod as | `` |
| `livenessProbePath` | Default livenessProbe path | `/` |
| `readinessProbePath` | Default readinessProbe path | `/` |
| `flows` | Default flows configuration | `flows.json` |

View File

@ -33,6 +33,9 @@ spec:
{{- end }}
{{- end }}
spec:
{{- if .Values.serviceAccountName }}
serviceAccountName: {{ .Values.serviceAccountName }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"

View File

@ -13,6 +13,8 @@ image:
nameOverride: ""
fullnameOverride: ""
serviceAccountName: ""
livenessProbePath: /
readinessProbePath: /