Skip to content

Commit

Permalink
chore(deps): update quay.io/kiwigrid/k8s-sidecar docker tag to v1.25.0 (
Browse files Browse the repository at this point in the history
#254)

* chore(deps): update quay.io/kiwigrid/k8s-sidecar docker tag to v1.25.0

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: update

Signed-off-by: Engin Diri <engin.diri@ediri.de>

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Engin Diri <engin.diri@ediri.de>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Engin Diri <engin.diri@ediri.de>
  • Loading branch information
renovate[bot] and dirien authored Jul 16, 2023
1 parent 074a1cd commit 1cffa2f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 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,7 +9,7 @@ icon: https://nodered.org/about/resources/media/node-red-icon-2.png

type: application

version: 0.24.2
version: 0.24.3
appVersion: 3.0.2

keywords:
Expand All @@ -29,12 +29,12 @@ maintainers:
annotations:
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/changes: |
- update quay.io/kiwigrid/k8s-sidecar to 1.24.4
- update quay.io/kiwigrid/k8s-sidecar to 1.25.0
artifacthub.io/images: |
- name: node-red
image: docker.io/nodered/node-red:3.0.2
- name: node-red-sidecar
image: quay.io/kiwigrid/k8s-sidecar:1.24.4
image: quay.io/kiwigrid/k8s-sidecar:1.25.0
artifacthub.io/license: Apache-2.0
artifacthub.io/links: |
- name: website
Expand Down
23 changes: 18 additions & 5 deletions charts/node-red/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# node-red ⚙

![Version: 0.23.2](https://img.shields.io/badge/Version-0.23.2-informational?style=for-the-badge) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=for-the-badge) ![AppVersion: 3.0.2](https://img.shields.io/badge/AppVersion-3.0.2-informational?style=for-the-badge)
![Version: 0.24.3](https://img.shields.io/badge/Version-0.24.3-informational?style=for-the-badge) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=for-the-badge) ![AppVersion: 3.0.2](https://img.shields.io/badge/AppVersion-3.0.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 @@ -16,7 +16,7 @@ A Helm chart for Node-Red, a low-code programming for event-driven applications
To install the chart using the OCI artifact, run:

```bash
helm install node-red oci://ghcr.io/schwarzit/charts/node-red --version 0.23.2
helm install node-red oci://ghcr.io/schwarzit/charts/node-red --version 0.24.3
```

## Usage
Expand All @@ -32,7 +32,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.23.2
helm install node-red node-red/node-red --version 0.24.3
```

After a few seconds, node-red should be running.
Expand Down Expand Up @@ -119,14 +119,15 @@ The command removes all the Kubernetes components associated with the chart and
| sidecar.env.method | string | `"watch"` | If METHOD is set to LIST, the sidecar will just list config-maps/secrets and exit. With SLEEP it will list all config-maps/secrets, then sleep for SLEEP_TIME seconds. Anything else will continuously watch for changes (see https://kubernetes.io/docs/reference/using-api/api-concepts/#efficient-detection-of-changes). |
| sidecar.env.password | string | `""` | Password as key value pair |
| sidecar.env.passwordFromExistingSecret | object | `{}` | Password from existing secret |
| sidecar.env.script | string | `"flow_refresh.sh"` | Absolute path to shell script to execute after a configmap got reloaded. |
| sidecar.env.script | string | `"flow_refresh.py"` | Absolute path to shell script to execute after a configmap got reloaded. |
| sidecar.env.sleep_time_sidecar | string | `"5s"` | Set the sleep time for refresh script |
| sidecar.env.username | string | `""` | |
| sidecar.extraEnv | list | `[]` | Extra Environments for the sidecar |
| sidecar.extraNodeModules | list | `[]` | Extra Node-Modules that will be installed from the sidecar script |
| sidecar.image.pullPolicy | string | `"IfNotPresent"` | The image pull policy, default: `IfNotPresent` |
| sidecar.image.registry | string | `"quay.io"` | The image registry to pull the sidecar from |
| sidecar.image.repository | string | `"kiwigrid/k8s-sidecar"` | The image repository to pull from |
| sidecar.image.tag | string | `"1.24.0"` | The image tag to pull, default: `1.24.0` |
| sidecar.image.tag | string | `"1.25.0"` | The image tag to pull, default: `1.25.0` |
| sidecar.resources | object | `{}` | Resources for the sidecar |
| sidecar.securityContext | object | `{}` | Security context for the sidecar |
| sidecar.volumeMounts | list | `[]` | The extra volume mounts for the sidecar |
Expand Down Expand Up @@ -169,6 +170,18 @@ Default values are: `node-red-settings:1`.
The `k8s-sidecar` will then call the `node-red` api to reload the flows. This will be done via a script. To run this script successfully you need to provide the `username` and `password`
of your admin user. The admin user needs to have the right to use the `node-red` API.

The `k8s-sidecar` can also call the `node-red` api to install additional node modules (npm packages) before refreshing or importing the flow.json.
You need to list your flows requiert 'NODE_MODULES' in the `sidecar.extraNodeModules`: e.g.

```yaml
sidecar:
extraNodeModules:
- node-red-contrib-xkeys_setunitid
- node-red-contrib-microsoft-teams-tasks
- node-red-contrib-json
```
To install the node modules successfully, the node red pod needs access to the `npmrc.registry` to download the declaired modules/packages.

## Contributing 🤝

### Contributing via GitHub
Expand Down
4 changes: 2 additions & 2 deletions charts/node-red/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ sidecar:
registry: quay.io
# -- The image repository to pull from
repository: kiwigrid/k8s-sidecar
# -- The image tag to pull, default: `1.24.4`
tag: 1.24.4
# -- The image tag to pull, default: `1.25.0`
tag: 1.25.0
# -- The image pull policy, default: `IfNotPresent`
pullPolicy: IfNotPresent
# -- The extra volume mounts for the sidecar
Expand Down

0 comments on commit 1cffa2f

Please sign in to comment.