Clean up logic for deprecated flag --container-runtime in kubelet

Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
This commit is contained in:
Ciprian Hacman
2022-01-06 09:06:22 +02:00
parent 3b4a9cdfff
commit 0819451ea6
23 changed files with 53 additions and 131 deletions

View File

@@ -2355,13 +2355,6 @@ func TestSyncTerminatingPodKillPod(t *testing.T) {
checkPodStatus(t, kl, pod, v1.PodFailed)
}
func TestPreInitRuntimeService(t *testing.T) {
err := PreInitRuntimeService(nil, nil, nil, "", "", "", "")
if err == nil {
t.Fatal("PreInitRuntimeService should fail when not configured with a container runtime")
}
}
func TestSyncLabels(t *testing.T) {
tests := []struct {
name string