Skip to content

Commit

Permalink
fix(provider): ensure ServerName and PortForwardNamespace are set…
Browse files Browse the repository at this point in the history
… on `ClientOptions` when port forwarding (#378)
  • Loading branch information
onematchfox authored Mar 27, 2024
1 parent b52be23 commit cbea711
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/provider/model_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbea711

Please sign in to comment.