From d47a9d590ee0ccb267acc38fa436187bfa4266de Mon Sep 17 00:00:00 2001 From: Marcelo Rydel Date: Fri, 18 Feb 2022 00:36:20 -0300 Subject: [PATCH] fix(kube): namespace parameter is not used in kube redeploy (#6569) --- api/http/handler/stacks/stack_update_git_redeploy.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/http/handler/stacks/stack_update_git_redeploy.go b/api/http/handler/stacks/stack_update_git_redeploy.go index d18551a9c..984855a1d 100644 --- a/api/http/handler/stacks/stack_update_git_redeploy.go +++ b/api/http/handler/stacks/stack_update_git_redeploy.go @@ -211,9 +211,6 @@ func (handler *Handler) deployStack(r *http.Request, stack *portainer.Stack, end } case portainer.KubernetesStack: - if stack.Namespace == "" { - return &httperror.HandlerError{StatusCode: http.StatusInternalServerError, Message: "Invalid namespace", Err: errors.New("Namespace must not be empty when redeploying kubernetes stacks")} - } tokenData, err := security.RetrieveTokenData(r) if err != nil { return &httperror.HandlerError{StatusCode: http.StatusBadRequest, Message: "Failed to retrieve user token data", Err: err}