Skip to content

Commit

Permalink
enable cmd and args override in the statefulset
Browse files Browse the repository at this point in the history
  • Loading branch information
ArshamTeymouri committed Feb 13, 2025
1 parent b3d7dcf commit 336b82d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: common
description: A generic helm chart for Kubernetes
type: application
version: 0.9.0
version: 0.10.0
maintainers:
- name: Parity
url: https://github.com/paritytech/helm-charts
6 changes: 6 additions & 0 deletions charts/common/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ spec:
{{- toYaml .Values.containerSecurityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.command }}
command: {{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.args }}
args: {{- toYaml . | nindent 12 }}
{{- end }}
ports:
{{- range $keys := .Values.service.ports }}
- name: {{ .name }}
Expand Down
2 changes: 1 addition & 1 deletion charts/common/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ startupProbe: {}
stateful:
annotations: {}

# -- If enabled, creates a PVC and deploy the pod as statefulset
# -- If enabled, creates a PVC and mounts it on /data and deploys the pod as statefulset
persistence:
# -- Enable PVC creation
enabled: false
Expand Down

0 comments on commit 336b82d

Please sign in to comment.