Commit b07d1679 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'add_helm_params_rollback_related' into 'master'

Add atomic and cleanup-on-fail parameters

See merge request gitlab-org/gitlab!27721
parents 76a4ced0 966d0fe8
---
title: Add atomic and cleanup-on-fail parameters for Helm
merge_request: 27721
author:
type: changed
...@@ -44,6 +44,7 @@ module Gitlab ...@@ -44,6 +44,7 @@ module Gitlab
def install_command def install_command
command = ['helm', 'upgrade', name, chart] + command = ['helm', 'upgrade', name, chart] +
install_flag + install_flag +
rollback_support_flag +
reset_values_flag + reset_values_flag +
tls_flags_if_remote_tiller + tls_flags_if_remote_tiller +
optional_version_flag + optional_version_flag +
...@@ -83,6 +84,10 @@ module Gitlab ...@@ -83,6 +84,10 @@ module Gitlab
['--version', version] ['--version', version]
end end
def rollback_support_flag
['--atomic', '--cleanup-on-fail']
end
end end
end end
end end
......
...@@ -41,6 +41,8 @@ describe Gitlab::Kubernetes::Helm::InstallCommand do ...@@ -41,6 +41,8 @@ describe Gitlab::Kubernetes::Helm::InstallCommand do
<<~EOS.squish <<~EOS.squish
helm upgrade app-name chart-name helm upgrade app-name chart-name
--install --install
--atomic
--cleanup-on-fail
--reset-values --reset-values
--version 1.2.3 --version 1.2.3
--set rbac.create\\=false,rbac.enabled\\=false --set rbac.create\\=false,rbac.enabled\\=false
...@@ -79,6 +81,8 @@ describe Gitlab::Kubernetes::Helm::InstallCommand do ...@@ -79,6 +81,8 @@ describe Gitlab::Kubernetes::Helm::InstallCommand do
<<~EOS.squish <<~EOS.squish
helm upgrade app-name chart-name helm upgrade app-name chart-name
--install --install
--atomic
--cleanup-on-fail
--reset-values --reset-values
#{tls_flags} #{tls_flags}
--version 1.2.3 --version 1.2.3
...@@ -109,6 +113,8 @@ describe Gitlab::Kubernetes::Helm::InstallCommand do ...@@ -109,6 +113,8 @@ describe Gitlab::Kubernetes::Helm::InstallCommand do
<<~EOS.squish <<~EOS.squish
helm upgrade app-name chart-name helm upgrade app-name chart-name
--install --install
--atomic
--cleanup-on-fail
--reset-values --reset-values
--version 1.2.3 --version 1.2.3
--set rbac.create\\=true,rbac.enabled\\=true --set rbac.create\\=true,rbac.enabled\\=true
...@@ -140,6 +146,8 @@ describe Gitlab::Kubernetes::Helm::InstallCommand do ...@@ -140,6 +146,8 @@ describe Gitlab::Kubernetes::Helm::InstallCommand do
<<~EOS.squish <<~EOS.squish
helm upgrade app-name chart-name helm upgrade app-name chart-name
--install --install
--atomic
--cleanup-on-fail
--reset-values --reset-values
--version 1.2.3 --version 1.2.3
--set rbac.create\\=false,rbac.enabled\\=false --set rbac.create\\=false,rbac.enabled\\=false
...@@ -171,6 +179,8 @@ describe Gitlab::Kubernetes::Helm::InstallCommand do ...@@ -171,6 +179,8 @@ describe Gitlab::Kubernetes::Helm::InstallCommand do
<<~EOS.squish <<~EOS.squish
helm upgrade app-name chart-name helm upgrade app-name chart-name
--install --install
--atomic
--cleanup-on-fail
--reset-values --reset-values
--version 1.2.3 --version 1.2.3
--set rbac.create\\=false,rbac.enabled\\=false --set rbac.create\\=false,rbac.enabled\\=false
...@@ -200,6 +210,8 @@ describe Gitlab::Kubernetes::Helm::InstallCommand do ...@@ -200,6 +210,8 @@ describe Gitlab::Kubernetes::Helm::InstallCommand do
<<~EOS.squish <<~EOS.squish
helm upgrade app-name chart-name helm upgrade app-name chart-name
--install --install
--atomic
--cleanup-on-fail
--reset-values --reset-values
--version 1.2.3 --version 1.2.3
--set rbac.create\\=false,rbac.enabled\\=false --set rbac.create\\=false,rbac.enabled\\=false
...@@ -229,6 +241,8 @@ describe Gitlab::Kubernetes::Helm::InstallCommand do ...@@ -229,6 +241,8 @@ describe Gitlab::Kubernetes::Helm::InstallCommand do
<<~EOS.squish <<~EOS.squish
helm upgrade app-name chart-name helm upgrade app-name chart-name
--install --install
--atomic
--cleanup-on-fail
--reset-values --reset-values
--set rbac.create\\=false,rbac.enabled\\=false --set rbac.create\\=false,rbac.enabled\\=false
--namespace gitlab-managed-apps --namespace gitlab-managed-apps
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment