Skip to content

Commit

Permalink
pass WrapTransport parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
a244591052 authored Aug 25, 2024
1 parent 95e0025 commit cb1c758
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/utils/kube/resource_ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ func kubeCmdFactory(kubeconfig, ns string, config *rest.Config) cmdutil.Factory
kubeConfigFlags.KubeConfig = &kubeconfig
kubeConfigFlags.WithDiscoveryBurst(config.Burst)
kubeConfigFlags.WithDiscoveryQPS(config.QPS)
kubeConfigFlags.WrapConfigFn = func(c *rest.Config) *rest.Config {
c.WrapTransport = config.WrapTransport
return c
}
matchVersionKubeConfigFlags := cmdutil.NewMatchVersionFlags(kubeConfigFlags)
return cmdutil.NewFactory(matchVersionKubeConfigFlags)
}
Expand Down

0 comments on commit cb1c758

Please sign in to comment.