fix(kube): namespace parameter is not used in kube redeploy (#6569)

pull/6574/head
Marcelo Rydel 3 years ago committed by GitHub
parent bd679ae806
commit d47a9d590e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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}

Loading…
Cancel
Save