From aaf65960eb2a1d2b59dc19d2f665ad3f80989456 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 1 May 2020 21:36:25 +0200 Subject: [PATCH] [znapzend] Allow to override image arguments --- znapzend/Chart.yaml | 2 +- znapzend/README.md | 3 ++- znapzend/templates/statefulset.yaml | 4 ++++ znapzend/values.yaml | 7 +++++++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/znapzend/Chart.yaml b/znapzend/Chart.yaml index 4d71e50..222d49d 100644 --- a/znapzend/Chart.yaml +++ b/znapzend/Chart.yaml @@ -14,7 +14,7 @@ description: Znapzend Helm Chart for automated ZFS snapshot & replication # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 0.3.6 +version: 0.4.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/znapzend/README.md b/znapzend/README.md index cf54fb6..0b57c35 100644 --- a/znapzend/README.md +++ b/znapzend/README.md @@ -2,7 +2,7 @@ znapzend ======== Znapzend Helm Chart for automated ZFS snapshot & replication -Current chart version is `0.3.6` +Current chart version is `0.4.0` @@ -54,3 +54,4 @@ Current chart version is `0.3.6` | ssh.knownHosts | string | `nil` | List of {host, pubKey} dicts where the public key of each host is configured | | ssh.path | string | `"/root/.ssh"` | Path where your SSH config and identities get mounted in the container | | tolerations | list | `[]` | | +| znapzend.args | list | `["znapzend","--logto=/dev/stdout","--autoCreation"]` | List of command arguments | diff --git a/znapzend/templates/statefulset.yaml b/znapzend/templates/statefulset.yaml index 2c3ac0c..a4639b5 100644 --- a/znapzend/templates/statefulset.yaml +++ b/znapzend/templates/statefulset.yaml @@ -34,6 +34,10 @@ spec: value: {{ $value }} {{- end }} {{- end }} + {{- with .Values.znapzend.args }} + args: + {{- toYaml . | nindent 12 }} + {{- end }} livenessProbe: exec: command: diff --git a/znapzend/values.yaml b/znapzend/values.yaml index e816d3a..eaa9ef2 100644 --- a/znapzend/values.yaml +++ b/znapzend/values.yaml @@ -43,6 +43,13 @@ serviceAccount: # env -- A dict with KEY: VALUE pairs env: {} +znapzend: + # znapzend.args -- List of command arguments + args: + - znapzend + - --logto=/dev/stdout + - --autoCreation + host: # host.zfsDevice -- The device on the host which is used by the 'zfs' binary within the container zfsDevice: /dev/zfs