Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
feat(stable/etcd-operator): add support for supplying additional comm…
Browse files Browse the repository at this point in the history
…and args (#1418)

* feat(stable/etcd-operator): add support for supplying additional command args

* Update Chart.yaml
  • Loading branch information
vdice authored and Vic Iglesias committed Jul 5, 2017
1 parent 286861c commit 147a378
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/etcd-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 5 additions & 1 deletion stable/etcd-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions stable/etcd-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 147a378

Please sign in to comment.