Skip to content

Commit

Permalink
feat: adding optional value initContainers (#80)
Browse files Browse the repository at this point in the history
* feat: adding optional value initContainers

Signed-off-by: Felix Kammerer <[email protected]>
  • Loading branch information
Kaktor authored Mar 8, 2022
1 parent 29cfbc9 commit d132a3b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
6 changes: 3 additions & 3 deletions charts/node-red/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ icon: https://nodered.org/about/resources/media/node-red-icon-2.png

type: application

version: 0.9.0
appVersion: 2.3.0
version: 0.10.0
appVersion: 2.2.2

keywords:
- node-red
Expand All @@ -30,7 +30,7 @@ maintainers:
annotations:
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/changes: |
- adding optional value DeploymentStrategy
- adding optional value initContainers
artifacthub.io/images: |
- name: node-red
image: docker.io/nodered/node-red:2.2.2
Expand Down
7 changes: 4 additions & 3 deletions charts/node-red/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# node-red ⚙

![Version: 0.9.0](https://img.shields.io/badge/Version-0.9.0-informational?style=for-the-badge)
![Version: 0.10.0](https://img.shields.io/badge/Version-0.10.0-informational?style=for-the-badge)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=for-the-badge)
![AppVersion: 2.3.0](https://img.shields.io/badge/AppVersion-2.3.0-informational?style=for-the-badge)
![AppVersion: 2.2.2](https://img.shields.io/badge/AppVersion-2.2.2-informational?style=for-the-badge)

[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/node-red&style=for-the-badge)](https://artifacthub.io/packages/search?repo=node-red)
[![SIT](https://img.shields.io/badge/SIT-awesome-blueviolet.svg?style=for-the-badge)](https://jobs.schwarz)
Expand All @@ -27,7 +27,7 @@ helm repo update
To install the chart with the release name node-red run:

```bash
helm install node-red node-red/node-red --version 0.9.0
helm install node-red node-red/node-red --version 0.10.0
```

After a few seconds, node-red should be running.
Expand Down Expand Up @@ -73,6 +73,7 @@ The command removes all the Kubernetes components associated with the chart and
| ingress.hosts[0].paths[0] | object | `{"path":"/","pathType":"ImplementationSpecific"}` | The base path |
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | Ingress type of path |
| ingress.tls | list | `[]` | Ingress TLS configuration |
| initContainers | list | `[]` | containers which are run before the app containers are started |
| nameOverride | string | `""` | Provide a name in place of node-red |
| nodeSelector | object | `{}` | Node selector |
| npmrc.enabled | bool | `false` | Enable custom npmrc config |
Expand Down
5 changes: 5 additions & 0 deletions charts/node-red/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if .Values.persistence.enabled }}
initContainers:
{{- with .Values.initContainers }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- if .Values.persistence.enabled }}
- name: permission-fix
image: busybox
command: ['sh', '-c']
Expand All @@ -40,6 +44,7 @@ spec:
mountPath: /data
subPath: {{ .Values.persistence.subPath }}
{{- end }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down
3 changes: 3 additions & 0 deletions charts/node-red/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ persistence:
# -- Size of persistent volume claim
size: 5Gi

# -- containers which are run before the app containers are started
initContainers: []

ingress:
# -- Enable an ingress resource for the server
enabled: false
Expand Down

0 comments on commit d132a3b

Please sign in to comment.