mirror of
https://github.com/siderolabs/talos.git
synced 2026-05-05 20:36:18 +02:00
fix(talosctl): always use default GRPC dial options
When run in "normal" mode, `talosctl` takes into account proxy configuration, such as the `https_proxy` and `no_proxy` environment variables; but when invoked with `--insecure`, those would be ignored, which results in `talosctl` being unable to interact with nodes in maintenance mode if they're only reachable through a proxy. This commit adds the `WithDefaultGRPCDialOptions()` option to the client created by `WithClientMaintenance()`, same as `WithClient()`. Signed-off-by: Benoît Knecht <benoit.knecht@proton.ch> (cherry picked from commit 21f459aab5d8ac2841aa69a9237ca3faa06da7df)
This commit is contained in:
parent
db2c007ee7
commit
6dc97e8aa7
@ -152,7 +152,7 @@ func (c *Args) WithClientMaintenance(enforceFingerprints []string, action func(c
|
||||
tlsConfig.VerifyConnection = x509.MatchSPKIFingerprints(fingerprints...)
|
||||
}
|
||||
|
||||
c, err := client.New(ctx, client.WithTLSConfig(tlsConfig), client.WithEndpoints(c.Nodes...))
|
||||
c, err := client.New(ctx, client.WithDefaultGRPCDialOptions(), client.WithTLSConfig(tlsConfig), client.WithEndpoints(c.Nodes...))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user