mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-16 05:16:08 +02:00
add --kube-context to uninstall command (#4999)
This commit is contained in:
parent
36f8d35f1c
commit
61b9df54b1
@ -296,6 +296,9 @@ func (h *HelmExecute) RunHelmUninstall() error {
|
||||
if len(h.config.Namespace) <= 0 {
|
||||
return fmt.Errorf("namespace has not been set, please configure namespace parameter")
|
||||
}
|
||||
if len(h.config.KubeContext) > 0 {
|
||||
helmParams = append(helmParams, "--kube-context", h.config.KubeContext)
|
||||
}
|
||||
helmParams = append(helmParams, "--namespace", h.config.Namespace)
|
||||
if h.config.HelmDeployWaitSeconds > 0 {
|
||||
helmParams = append(helmParams, "--wait", "--timeout", fmt.Sprintf("%vs", h.config.HelmDeployWaitSeconds))
|
||||
|
Loading…
Reference in New Issue
Block a user