mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-01-27 10:19:35 +00:00
Merge pull request #129460 from sohankunkerkar/add-test
kubelet: add coverage for identical kubelet config and drop-in config content
This commit is contained in:
@@ -273,6 +273,24 @@ port: 123
|
||||
name: "empty drop-in apiVersion/kind",
|
||||
expectMergeError: `'Kind' is missing`,
|
||||
},
|
||||
{
|
||||
name: "identical kubelet config and drop-in file",
|
||||
kubeletConfig: &kubeletconfiginternal.KubeletConfiguration{
|
||||
TypeMeta: metav1.TypeMeta{
|
||||
Kind: "KubeletConfiguration",
|
||||
APIVersion: "kubelet.config.k8s.io/v1beta1",
|
||||
},
|
||||
Port: int32(9090),
|
||||
ReadOnlyPort: int32(10255),
|
||||
},
|
||||
dropin1: `
|
||||
apiVersion: kubelet.config.k8s.io/v1beta1
|
||||
kind: KubeletConfiguration
|
||||
port: 9090
|
||||
readOnlyPort: 10255
|
||||
`,
|
||||
expectMergeError: "",
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range testCases {
|
||||
|
||||
Reference in New Issue
Block a user