mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-19 01:53:40 +02:00
Support the latest Helm (>=v3.3.2) and bump the Helm version in Docker image. (#1488)
Changes: * Bump Helm to v2.16.12 and v3.3.3. * Add --force-update only when using Helm 3.
This commit is contained in:
@@ -557,15 +557,15 @@ func Test_GetVersion(t *testing.T) {
|
||||
func Test_IsVersionAtLeast(t *testing.T) {
|
||||
helm2Runner := mockRunner{output: []byte("Client: v2.16.1+ge13bc94\n")}
|
||||
helm := New("helm", NewLogger(os.Stdout, "info"), "dev", &helm2Runner)
|
||||
if !helm.IsVersionAtLeast(2, 1) {
|
||||
if !helm.IsVersionAtLeast(2, 1, 0) {
|
||||
t.Error("helmexec.IsVersionAtLeast - 2.16.1 not atleast 2.1")
|
||||
}
|
||||
|
||||
if helm.IsVersionAtLeast(2, 19) {
|
||||
if helm.IsVersionAtLeast(2, 19, 0) {
|
||||
t.Error("helmexec.IsVersionAtLeast - 2.16.1 is atleast 2.19")
|
||||
}
|
||||
|
||||
if helm.IsVersionAtLeast(3, 2) {
|
||||
if helm.IsVersionAtLeast(3, 2, 0) {
|
||||
t.Error("helmexec.IsVersionAtLeast - 2.16.1 is atleast 3.2")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user