File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
pkg/kubelet/apis/config/validation Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -635,6 +635,27 @@ func TestValidateKubeletConfiguration(t *testing.T) {
635
635
return config
636
636
},
637
637
errMsg : `invalid configuration: pod logs path "/🧪" mut contains ASCII characters only` ,
638
+ }, {
639
+ name : "invalid ContainerRuntimeEndpoint" ,
640
+ configure : func (conf * kubeletconfig.KubeletConfiguration ) * kubeletconfig.KubeletConfiguration {
641
+ conf .ContainerRuntimeEndpoint = ""
642
+ return conf
643
+ },
644
+ errMsg : "invalid configuration: the containerRuntimeEndpoint was not specified or empty" ,
645
+ }, {
646
+ name : "invalid Logging configuration" ,
647
+ configure : func (conf * kubeletconfig.KubeletConfiguration ) * kubeletconfig.KubeletConfiguration {
648
+ conf .Logging .Format = "invalid"
649
+ return conf
650
+ },
651
+ errMsg : "logging.format: Invalid value: \" invalid\" : Unsupported log format" ,
652
+ }, {
653
+ name : "invalid FeatureGate" ,
654
+ configure : func (conf * kubeletconfig.KubeletConfiguration ) * kubeletconfig.KubeletConfiguration {
655
+ conf .FeatureGates ["invalid" ] = true
656
+ return conf
657
+ },
658
+ errMsg : "unrecognized feature gate: invalid" ,
638
659
},
639
660
}
640
661
You can’t perform that action at this time.
0 commit comments