Skip to content

Commit

Permalink
add strategy value helm (#78)
Browse files Browse the repository at this point in the history
feat: add strategy value helm

Signed-off-by: Felix Kammerer <felix.kammerer@mail.schwarz>
  • Loading branch information
Kaktor authored Mar 7, 2022
1 parent b8d24e8 commit a4aa32f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 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.7.0
appVersion: 2.2.2
version: 0.9.0
appVersion: 2.3.0

keywords:
- node-red
Expand All @@ -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
Expand Down
12 changes: 7 additions & 5 deletions charts/node-red/README.md
Original file line number Diff line number Diff line change
@@ -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)


<img src="https://nodered.org/about/resources/media/node-red-icon-2.png" width="80" height="80">

## Description
Expand All @@ -26,15 +27,15 @@ 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.

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
```

Expand All @@ -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 |
Expand Down
4 changes: 4 additions & 0 deletions charts/node-red/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 2 additions & 1 deletion charts/node-red/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4aa32f

Please sign in to comment.