File tree 2 files changed +7
-3
lines changed
cmd/metrics-server/app/options
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ func (o KubeletClientOptions) Config(restConfig *rest.Config) *client.KubeletCli
112
112
config .Client .TLSClientConfig = rest.TLSClientConfig {} // empty TLS config --> no TLS
113
113
}
114
114
if o .InsecureKubeletTLS {
115
- config .Client .TLSClientConfig = rest.TLSClientConfig {}
116
115
config .Client .TLSClientConfig .Insecure = true
117
116
config .Client .TLSClientConfig .NextProtos = []string {"http/1.1" , "h2" }
118
117
}
Original file line number Diff line number Diff line change @@ -75,8 +75,13 @@ func TestConfig(t *testing.T) {
75
75
expectFunc : func () client.KubeletClientConfig {
76
76
e := expected
77
77
e .Client .Insecure = true
78
- e .Client .CAFile = ""
79
- e .Client .CAData = nil
78
+ e .Client .KeyFile = "KeyFile"
79
+ e .Client .KeyData = []byte ("KeyData" )
80
+ e .Client .CAFile = "CAFile"
81
+ e .Client .CAData = []byte ("CAData" )
82
+ e .Client .CertFile = "CertFile"
83
+ e .Client .CertData = []byte ("CertData" )
84
+ e .Client .NextProtos = []string {"http/1.1" , "h2" }
80
85
return e
81
86
},
82
87
},
You can’t perform that action at this time.
0 commit comments