Add DisableCompression option to KubeConfig

Kubernetes-commit: 641fd5b482c6117d459a22d99f76aae086c3524f
This commit is contained in:
Shyam Jeedigunta
2022-09-07 18:04:17 -07:00
committed by Kubernetes Publisher
parent ab826d2728
commit b8a8d94944
11 changed files with 75 additions and 22 deletions

View File

@@ -55,6 +55,7 @@ func ConfigToExecCluster(config *Config) (*clientauthenticationapi.Cluster, erro
InsecureSkipTLSVerify: config.Insecure,
CertificateAuthorityData: caData,
ProxyURL: proxyURL,
DisableCompression: config.DisableCompression,
Config: config.ExecProvider.Config,
}, nil
}
@@ -79,6 +80,7 @@ func ExecClusterToConfig(cluster *clientauthenticationapi.Cluster) (*Config, err
ServerName: cluster.TLSServerName,
CAData: cluster.CertificateAuthorityData,
},
Proxy: proxy,
Proxy: proxy,
DisableCompression: cluster.DisableCompression,
}, nil
}