From cbea7117a0b53545bb9c31f086291302fc667030 Mon Sep 17 00:00:00 2001 From: Brian Fox <878612+onematchfox@users.noreply.github.com> Date: Wed, 27 Mar 2024 12:16:06 +0100 Subject: [PATCH] fix(provider): ensure `ServerName` and `PortForwardNamespace` are set on `ClientOptions` when port forwarding (#378) --- internal/provider/model_provider.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/provider/model_provider.go b/internal/provider/model_provider.go index 06168f73..a61cf664 100644 --- a/internal/provider/model_provider.go +++ b/internal/provider/model_provider.go @@ -236,6 +236,11 @@ func (p ArgoCDProviderConfig) setPortForwardingOpts(ctx context.Context, opts *a } opts.ServerAddr = "localhost" // will be overwritten by ArgoCD module when we initialize the API client but needs to be set here to ensure we + opts.ServerName = "argocd-server" + + if opts.PortForwardNamespace == "" { + opts.PortForwardNamespace = "argocd" + } if p.Kubernetes == nil { break