Skip to content

Commit 00bc3b8

Browse files
enable cmd and args override in the statefulset (#366)
* enable cmd and args override in the statefulset * update README
1 parent b3d7dcf commit 00bc3b8

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

charts/common/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: common
33
description: A generic helm chart for Kubernetes
44
type: application
5-
version: 0.9.0
5+
version: 0.10.0
66
maintainers:
77
- name: Parity
88
url: https://github.com/paritytech/helm-charts

charts/common/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This is intended behaviour. Make sure to run `git add -A` once again to stage ch
5757
| nameOverride | string | `""` | Provide a name in place of node for `app:` labels |
5858
| namespaceOverride | string | `""` | Provide a name to substitute for the full names of resources |
5959
| nodeSelector | object | `{}` | Define which Nodes the Pods are scheduled on. |
60-
| persistence | object | `{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":false,"size":"50Gi"}` | If enabled, creates a PVC and deploy the pod as statefulset |
60+
| persistence | object | `{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":false,"size":"50Gi"}` | If enabled, creates a PVC and mounts it on /data and deploys the pod as statefulset |
6161
| persistence.accessModes | list | `["ReadWriteOnce"]` | PVC access mode |
6262
| persistence.annotations | object | `{}` | Annotations to add to the PVC |
6363
| persistence.enabled | bool | `false` | Enable PVC creation |

charts/common/templates/statefulset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ spec:
4949
{{- toYaml .Values.containerSecurityContext | nindent 12 }}
5050
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
5151
imagePullPolicy: {{ .Values.image.pullPolicy }}
52+
{{- with .Values.command }}
53+
command: {{- toYaml . | nindent 12 }}
54+
{{- end }}
55+
{{- with .Values.args }}
56+
args: {{- toYaml . | nindent 12 }}
57+
{{- end }}
5258
ports:
5359
{{- range $keys := .Values.service.ports }}
5460
- name: {{ .name }}

charts/common/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ startupProbe: {}
214214
stateful:
215215
annotations: {}
216216

217-
# -- If enabled, creates a PVC and deploy the pod as statefulset
217+
# -- If enabled, creates a PVC and mounts it on /data and deploys the pod as statefulset
218218
persistence:
219219
# -- Enable PVC creation
220220
enabled: false

0 commit comments

Comments
 (0)