Skip to content

Commit

Permalink
fix: argocd fails to connect clusters with IAM authentication configu…
Browse files Browse the repository at this point in the history
…ration (#3325)
  • Loading branch information
Alexander Matyushentsev authored and Alexander Matyushentsev committed Apr 1, 2020
1 parent 9b21c25 commit a12b7bd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/apis/application/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2183,8 +2183,7 @@ func SetK8SConfigDefaults(config *rest.Config) error {
if err != nil {
return err
}
// set default tls config since we use it in a custom transport
config.TLSClientConfig = rest.TLSClientConfig{}

dial := (&net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
Expand All @@ -2203,6 +2202,12 @@ func SetK8SConfigDefaults(config *rest.Config) error {
if err != nil {
return err
}

// set default tls config and remove auth/exec provides since we use it in a custom transport
config.TLSClientConfig = rest.TLSClientConfig{}
config.AuthProvider = nil
config.ExecProvider = nil

config.Transport = tr
return nil
}
Expand Down

0 comments on commit a12b7bd

Please sign in to comment.