mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
Convert() should accept the new conversion Context value
Allows Convert() to reuse the same conversions as ConvertToVersion without being overly coupled to the version.
This commit is contained in:
@@ -50,7 +50,7 @@ type ProxyServerConfig struct {
|
||||
|
||||
func NewProxyConfig() *ProxyServerConfig {
|
||||
config := componentconfig.KubeProxyConfiguration{}
|
||||
api.Scheme.Convert(&v1alpha1.KubeProxyConfiguration{}, &config)
|
||||
api.Scheme.Convert(&v1alpha1.KubeProxyConfiguration{}, &config, nil)
|
||||
return &ProxyServerConfig{
|
||||
KubeProxyConfiguration: config,
|
||||
ContentType: "application/vnd.kubernetes.protobuf",
|
||||
|
||||
Reference in New Issue
Block a user