From 946fe3d2b607bfffe99ce8248da25acd2b446523 Mon Sep 17 00:00:00 2001 From: Johannes Frey Date: Tue, 12 Nov 2024 13:07:39 +0100 Subject: [PATCH] Populate AGENT_IMAGE env var during development --- cmd/vclusterctl/cmd/platform/add/cluster.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/vclusterctl/cmd/platform/add/cluster.go b/cmd/vclusterctl/cmd/platform/add/cluster.go index bbac2f9ba..ec2a716f9 100644 --- a/cmd/vclusterctl/cmd/platform/add/cluster.go +++ b/cmd/vclusterctl/cmd/platform/add/cluster.go @@ -174,6 +174,7 @@ func (cmd *ClusterCmd) Run(ctx context.Context, args []string) error { "--namespace", namespace, "--set", "agentOnly=true", "--set", "image=" + cmp.Or(os.Getenv("DEVELOPMENT_IMAGE"), "ghcr.io/loft-sh/enterprise:release-test"), + "--set", "env.AGENT_IMAGE=" + cmp.Or(os.Getenv("AGENT_IMAGE"), os.Getenv("DEVELOPMENT_IMAGE"), "ghcr.io/loft-sh/enterprise:release-test"), } } else { if cmd.HelmChartPath != "" {