mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
fix: helm version check failed
Signed-off-by: William Wang <williamw0825@gmail.com>
This commit is contained in:
parent
0c39ac1d17
commit
dc76123495
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: Binary | Verify if Helm is already installed
|
||||
ignore_errors: true
|
||||
command: helm version --template "{{ .Version }}"
|
||||
command: helm version --template "{{ "{{" }} .Version {{ "}}" }}"
|
||||
register: helm_install_version
|
||||
|
||||
- name: Binary | Install Helm if not present or version mismatch
|
||||
|
|
|
|||
|
|
@ -294,6 +294,14 @@ func TestParseValue(t *testing.T) {
|
|||
},
|
||||
excepted: []byte("bar"),
|
||||
},
|
||||
{
|
||||
name: "{{ & }} character translation",
|
||||
input: "helm version --template \"{{ \"{{\" }} .Version {{ \"}}\" }}\"",
|
||||
variable: map[string]any{
|
||||
"foo": "bar",
|
||||
},
|
||||
excepted: []byte("helm version --template \"{{ .Version }}\""),
|
||||
},
|
||||
}
|
||||
|
||||
for _, tc := range testcases {
|
||||
|
|
|
|||
Loading…
Reference in New Issue