Skip to content

Commit

Permalink
etcdctl can use env vars instead of options
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezl committed Feb 25, 2020
1 parent 1866aee commit da393b0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bindata/etcd/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,7 @@ ${COMPUTED_ENV_VARS}
#!/bin/sh
set -euo pipefail
ETCDCTL="etcdctl --cacert=/etc/kubernetes/static-pod-resources/configmaps/etcd-serving-ca/ca-bundle.crt \
--cert=/etc/kubernetes/static-pod-resources/secrets/etcd-all-peer/etcd-peer-NODE_NAME.crt \
--key=/etc/kubernetes/static-pod-resources/secrets/etcd-all-peer/etcd-peer-NODE_NAME.key \
--endpoints=${ALL_ETCD_ENDPOINTS}"
${ETCDCTL} member list
etcdctl member list
# this has a non-zero return code if the command is non-zero. If you use an export first, it doesn't and you
# will succeed when you should fail.
Expand Down

0 comments on commit da393b0

Please sign in to comment.