Skip to content

Commit 4ff74a9

Browse files
Disable Swap mode
1 parent b1595f2 commit 4ff74a9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pkg/controller/kubelet-config/kubelet_config_controller_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,20 @@ func TestKubeletConfigDenylistedOptions(t *testing.T) {
926926
},
927927
},
928928
},
929+
{
930+
name: "test banned failSwapOn",
931+
config: &kubeletconfigv1beta1.KubeletConfiguration{
932+
FailSwapOn: pointer.BoolPtr(true),
933+
},
934+
},
935+
{
936+
name: "test banned swapBehavior",
937+
config: &kubeletconfigv1beta1.KubeletConfiguration{
938+
MemorySwap: kubeletconfigv1beta1.MemorySwapConfiguration{
939+
SwapBehavior: "NoSwap",
940+
},
941+
},
942+
},
929943
}
930944

931945
successTests := []struct {

0 commit comments

Comments
 (0)