MCPcopy
hub / github.com/kubernetes/kops / WithProxyEnv

Method WithProxyEnv

pkg/model/resources/nodeup.go:528–532  ·  view source on GitHub ↗
(cluster *kops.Cluster)

Source from the content-addressed store, hash-verified

526}
527
528func (b *NodeUpScript) WithProxyEnv(cluster *kops.Cluster) {
529 b.ProxyEnv = func() (string, error) {
530 return createProxyEnv(cluster.Spec.Networking.EgressProxy)
531 }
532}
533
534// By setting some sysctls early, we avoid broken configurations that prevent nodeup download.
535// See https://github.com/kubernetes/kops/issues/10206 for details.

Callers 4

GetBootstrapDataMethod · 0.95
kubeEnvMethod · 0.95
RunMethod · 0.95
Test_ProxyFuncFunction · 0.95

Calls 1

createProxyEnvFunction · 0.85

Tested by 1

Test_ProxyFuncFunction · 0.76