diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2017-01-19 18:36:54 -0600 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2017-01-19 18:38:48 -0600 |
commit | d2a46221d560ae28c890605fdadc206d6499b0e9 (patch) | |
tree | 8e009d7ebd8a0cb0114b455820e3d23a1bfc00a3 /ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml | |
parent | ec2e581d926243b50962490bb503b551cbc7a18b (diff) |
modfied to support k8.
Change-Id: I274e0e381ec3ee7263df622cabfcc3a68516f16f
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml')
-rw-r--r-- | ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml b/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml index eaea9543..ca6de4a3 100644 --- a/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml +++ b/ci/config_tpl/juju2/bundlek8_tpl/etcd.yaml @@ -1,12 +1,12 @@ etcd: charm: "./{{ ubuntu.release }}/etcd" -{% if os.kubernetes.loadbalancer %} +{% if k8.feature.loadbalancer %} num_units: 3 {% else %} num_units: 1 {% endif %} to: -{% if os.kubernetes.loadbalancer %} +{% if k8.feature.loadbalancer %} {% for unit_id in to_select() %} - "nodes/{{ unit_id }}" {% endfor %} |