Skip to content

Commit 6b33a77

Browse files
committed
Adopt kubeadm and kubeproxy unit test after new config field added.
Fix proxy unit test
1 parent 4eb61e3 commit 6b33a77

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

cmd/kubeadm/app/componentconfigs/kubeproxy_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ var kubeProxyMarshalCases = []struct {
8383
nodePortAddresses: null
8484
oomScoreAdj: null
8585
portRange: ""
86+
showHiddenMetricsForVersion: ""
8687
udpIdleTimeout: 0s
8788
winkernel:
8889
enableDSR: false
@@ -134,6 +135,7 @@ var kubeProxyMarshalCases = []struct {
134135
nodePortAddresses: null
135136
oomScoreAdj: null
136137
portRange: ""
138+
showHiddenMetricsForVersion: ""
137139
udpIdleTimeout: 0s
138140
winkernel:
139141
enableDSR: false

pkg/proxy/apis/config/scheme/testdata/KubeProxyConfiguration/after/__internal.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Mode: ""
3232
NodePortAddresses: null
3333
OOMScoreAdj: null
3434
PortRange: ""
35+
ShowHiddenMetricsForVersion: ""
3536
UDPIdleTimeout: 0s
3637
Winkernel:
3738
EnableDSR: false

pkg/proxy/apis/config/scheme/testdata/KubeProxyConfiguration/after/v1alpha1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ mode: ""
3333
nodePortAddresses: null
3434
oomScoreAdj: -999
3535
portRange: ""
36+
showHiddenMetricsForVersion: ""
3637
udpIdleTimeout: 250ms
3738
winkernel:
3839
enableDSR: false

pkg/proxy/apis/config/scheme/testdata/KubeProxyConfiguration/v1alpha1To__internal/empty.yaml.after_roundtrip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Mode: ""
3232
NodePortAddresses: null
3333
OOMScoreAdj: -999
3434
PortRange: ""
35+
ShowHiddenMetricsForVersion: ""
3536
UDPIdleTimeout: 250ms
3637
Winkernel:
3738
EnableDSR: false

pkg/proxy/apis/config/scheme/testdata/KubeProxyConfiguration/v1alpha1Tov1alpha1/empty.yaml.after_roundtrip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ mode: ""
3333
nodePortAddresses: null
3434
oomScoreAdj: -999
3535
portRange: ""
36+
showHiddenMetricsForVersion: ""
3637
udpIdleTimeout: 250ms
3738
winkernel:
3839
enableDSR: false

0 commit comments

Comments
 (0)