From 73091629a3eecfb0f8202abf9a1be035e46ddc56 Mon Sep 17 00:00:00 2001 From: Kinland <16787581+kinland@users.noreply.github.com> Date: Mon, 4 Mar 2024 17:12:10 -0800 Subject: [PATCH] dockercompose: fix profiles failing to start (#6322) Signed-off-by: Kinland <16787581+kinland@users.noreply.github.com> --- internal/dockercompose/client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/dockercompose/client.go b/internal/dockercompose/client.go index c32da48118..f9a98e790c 100644 --- a/internal/dockercompose/client.go +++ b/internal/dockercompose/client.go @@ -94,6 +94,10 @@ func (c *cmdDCClient) projectArgs(p v1alpha1.DockerComposeProject) []string { result = append(result, "-f", cp) } + for _, p := range p.Profiles { + result = append(result, "--profile", p) + } + return result }