From 147a378e673cf541a65bdc2267b8fc4e20398f4d Mon Sep 17 00:00:00 2001 From: Vaughn Dice Date: Wed, 5 Jul 2017 16:59:02 -0600 Subject: [PATCH] feat(stable/etcd-operator): add support for supplying additional command args (#1418) * feat(stable/etcd-operator): add support for supplying additional command args * Update Chart.yaml --- stable/etcd-operator/Chart.yaml | 2 +- stable/etcd-operator/templates/deployment.yaml | 6 +++++- stable/etcd-operator/values.yaml | 6 ++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/stable/etcd-operator/Chart.yaml b/stable/etcd-operator/Chart.yaml index 91f3f17601..44a7f6a5d5 100755 --- a/stable/etcd-operator/Chart.yaml +++ b/stable/etcd-operator/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: CoreOS etcd-operator Helm chart for Kubernetes name: etcd-operator -version: 0.4.0 +version: 0.4.1 appVersion: 0.3.2 home: https://github.com/coreos/etcd-operator icon: https://raw.githubusercontent.com/coreos/etcd/master/logos/etcd-horizontal-color.png diff --git a/stable/etcd-operator/templates/deployment.yaml b/stable/etcd-operator/templates/deployment.yaml index 598229f00c..bea9257682 100644 --- a/stable/etcd-operator/templates/deployment.yaml +++ b/stable/etcd-operator/templates/deployment.yaml @@ -27,7 +27,11 @@ spec: command: - "/bin/sh" - "-c" - - "/usr/local/bin/etcd-operator --pv-provisioner={{ .Values.cluster.backup.provisioner }}" + - "/usr/local/bin/etcd-operator" + - "--pv-provisioner={{ .Values.cluster.backup.provisioner }}" +{{- range $key, $value := .Values.commandArgs }} + - "--{{ $key }}={{ $value }}" +{{- end }} env: - name: MY_POD_NAMESPACE valueFrom: diff --git a/stable/etcd-operator/values.yaml b/stable/etcd-operator/values.yaml index c8fbdb0853..3c8f0fba3f 100644 --- a/stable/etcd-operator/values.yaml +++ b/stable/etcd-operator/values.yaml @@ -13,6 +13,12 @@ resources: requests: cpu: 100m memory: 128Mi + +## etcd-operator specific values +## additional command arguments go here; will be translated to `--key=value` form +commandArgs: + # analytics: true + ## etcd-cluster specific values cluster: enabled: false