From 840d65f578481d97a06b93bea1fd267c3f15144d Mon Sep 17 00:00:00 2001 From: Hui Date: Thu, 26 Aug 2021 14:59:20 +1200 Subject: [PATCH] fix(stack): failed to pull and redeploy compose format k8s stack --- api/http/handler/stacks/stack_update_git_redeploy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/http/handler/stacks/stack_update_git_redeploy.go b/api/http/handler/stacks/stack_update_git_redeploy.go index 3dfb5e8af..445ba9604 100644 --- a/api/http/handler/stacks/stack_update_git_redeploy.go +++ b/api/http/handler/stacks/stack_update_git_redeploy.go @@ -220,7 +220,7 @@ func (handler *Handler) deployStack(r *http.Request, stack *portainer.Stack, end if err != nil { return &httperror.HandlerError{StatusCode: http.StatusInternalServerError, Message: "Unable to read deployment.yml manifest file", Err: errors.Wrap(err, "failed to read manifest file")} } - _, err = handler.deployKubernetesStack(r, endpoint, string(content), false, stack.Namespace, k.KubeAppLabels{ + _, err = handler.deployKubernetesStack(r, endpoint, string(content), stack.IsComposeFormat, stack.Namespace, k.KubeAppLabels{ StackID: int(stack.ID), Name: stack.Name, Owner: stack.CreatedBy,