Fix selector workaround for helm install (#5237)
Change-Id: I826337b59814674c3feb4cd6a4904d9d53e01652
This commit is contained in:
parent
8bc0710073
commit
89f1223f64
1 changed files with 2 additions and 2 deletions
|
@ -51,10 +51,10 @@
|
||||||
{% if tiller_max_history is defined %} --history-max={{ tiller_max_history }}{% endif %}
|
{% if tiller_max_history is defined %} --history-max={{ tiller_max_history }}{% endif %}
|
||||||
{% if tiller_enable_tls %} --tiller-tls --tiller-tls-verify --tiller-tls-cert={{ tiller_tls_cert }} --tiller-tls-key={{ tiller_tls_key }} --tls-ca-cert={{ tiller_tls_ca_cert }} {% endif %}
|
{% if tiller_enable_tls %} --tiller-tls --tiller-tls-verify --tiller-tls-cert={{ tiller_tls_cert }} --tiller-tls-key={{ tiller_tls_key }} --tls-ca-cert={{ tiller_tls_ca_cert }} {% endif %}
|
||||||
{% if tiller_secure_release_info %} --override 'spec.template.spec.containers[0].command'='{/tiller,--storage=secret}' {% endif %}
|
{% if tiller_secure_release_info %} --override 'spec.template.spec.containers[0].command'='{/tiller,--storage=secret}' {% endif %}
|
||||||
|
--override spec.selector.matchLabels.'name'='tiller',spec.selector.matchLabels.'app'='helm'
|
||||||
{% if tiller_wait %} --wait{% endif %}
|
{% if tiller_wait %} --wait{% endif %}
|
||||||
--output yaml
|
--output yaml
|
||||||
| sed 's@apiVersion: extensions/v1beta1@apiVersion: apps/v1@'
|
| sed 's@apiVersion: extensions/v1beta1@apiVersion: apps/v1@'
|
||||||
| {{ bin_dir }}/kubectl patch --local -oyaml -f - -p '{"spec":{"selector": {"app":"helm","name":"tiller"} } }'
|
|
||||||
| {{ bin_dir }}/kubectl apply -f -
|
| {{ bin_dir }}/kubectl apply -f -
|
||||||
{% else %}
|
{% else %}
|
||||||
--client-only
|
--client-only
|
||||||
|
@ -76,10 +76,10 @@
|
||||||
{% if tiller_max_history is defined %} --history-max={{ tiller_max_history }}{% endif %}
|
{% if tiller_max_history is defined %} --history-max={{ tiller_max_history }}{% endif %}
|
||||||
{% if tiller_enable_tls %} --tiller-tls --tiller-tls-verify --tiller-tls-cert={{ tiller_tls_cert }} --tiller-tls-key={{ tiller_tls_key }} --tls-ca-cert={{ tiller_tls_ca_cert }} {% endif %}
|
{% if tiller_enable_tls %} --tiller-tls --tiller-tls-verify --tiller-tls-cert={{ tiller_tls_cert }} --tiller-tls-key={{ tiller_tls_key }} --tls-ca-cert={{ tiller_tls_ca_cert }} {% endif %}
|
||||||
{% if tiller_secure_release_info %} --override 'spec.template.spec.containers[0].command'='{/tiller,--storage=secret}' {% endif %}
|
{% if tiller_secure_release_info %} --override 'spec.template.spec.containers[0].command'='{/tiller,--storage=secret}' {% endif %}
|
||||||
|
--override spec.selector.matchLabels.'name'='tiller',spec.selector.matchLabels.'app'='helm'
|
||||||
{% if tiller_wait %} --wait{% endif %}
|
{% if tiller_wait %} --wait{% endif %}
|
||||||
--output yaml
|
--output yaml
|
||||||
| sed 's@apiVersion: extensions/v1beta1@apiVersion: apps/v1@'
|
| sed 's@apiVersion: extensions/v1beta1@apiVersion: apps/v1@'
|
||||||
| {{ bin_dir }}/kubectl patch --local -oyaml -f - -p '{"spec":{"selector": {"app":"helm","name":"tiller"} } }'
|
|
||||||
| {{ bin_dir }}/kubectl apply -f -
|
| {{ bin_dir }}/kubectl apply -f -
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in a new issue