diff --git a/charts/node-red/Chart.yaml b/charts/node-red/Chart.yaml index 9fc78a66..8588ccc1 100644 --- a/charts/node-red/Chart.yaml +++ b/charts/node-red/Chart.yaml @@ -9,8 +9,8 @@ icon: https://nodered.org/about/resources/media/node-red-icon-2.png type: application -version: 0.7.0 -appVersion: 2.2.2 +version: 0.9.0 +appVersion: 2.3.0 keywords: - node-red @@ -30,7 +30,7 @@ maintainers: annotations: artifacthub.io/containsSecurityUpdates: "false" artifacthub.io/changes: | - - adding extra volumes to the chart + - adding optional value DeploymentStrategy artifacthub.io/images: | - name: node-red image: docker.io/nodered/node-red:2.2.2 diff --git a/charts/node-red/README.md b/charts/node-red/README.md index 2ab8a195..ae47df7d 100644 --- a/charts/node-red/README.md +++ b/charts/node-red/README.md @@ -1,12 +1,13 @@ # node-red ⚙ -![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=for-the-badge) -![Type: application](https://img.shields.io/badge/Type-application-informational?style=for-the-badge) -![AppVersion: 2.2.2](https://img.shields.io/badge/AppVersion-2.2.2-informational?style=for-the-badge) +![Version: 0.9.0](https://img.shields.io/badge/Version-0.9.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) [![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) + ## Description @@ -26,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.7.0 +helm install node-red node-red/node-red --version 0.9.0 ``` After a few seconds, node-red should be running. @@ -34,7 +35,7 @@ After a few seconds, node-red should be running. To install the chart in a specific namespace use following commands: ```bash -kubectl create ns node-red +kubectl create ns node-red helm install node-red node-red/node-red --namespace node-red ``` @@ -55,6 +56,7 @@ The command removes all the Kubernetes components associated with the chart and | Key | Type | Default | Description | |-----|------|---------|-------------| | affinity | object | `{}` | The affinity constraint | +| deploymentStrategy | string | `""` | Specifies the strategy used to replace old Pods by new ones, default: `RollingUpdate` | | env | list | `[]` | node-red env, see more environment variables in the [node-red documentation](https://nodered.org/docs/getting-started/docker) | | extraVolumeMounts | string | `nil` | Extra Volume Mounts for the node-red pod | | extraVolumes | string | `nil` | Extra Volumes for the pod | diff --git a/charts/node-red/templates/deployment.yaml b/charts/node-red/templates/deployment.yaml index 09a3e5a1..89db80b2 100644 --- a/charts/node-red/templates/deployment.yaml +++ b/charts/node-red/templates/deployment.yaml @@ -6,6 +6,10 @@ metadata: {{- include "node-red.labels" . | nindent 4 }} spec: replicas: {{ .Values.replicaCount }} + {{- if .Values.deploymentStrategy }} + strategy: + type: {{ .Values.deploymentStrategy }} + {{- end }} selector: matchLabels: {{- include "node-red.selectorLabels" . | nindent 6 }} diff --git a/charts/node-red/values.yaml b/charts/node-red/values.yaml index 1a371f7b..1e6f29e3 100644 --- a/charts/node-red/values.yaml +++ b/charts/node-red/values.yaml @@ -4,7 +4,8 @@ # -- Number of nodes replicaCount: 1 - +# -- Specifies the strategy used to replace old Pods by new ones, default: `RollingUpdate` +deploymentStrategy: "" image: # -- The image registry to pull from registry: docker.io