From 9f344f23fbe1c994e26cb0298cb51bb4804f8f71 Mon Sep 17 00:00:00 2001 From: Itamar Holder Date: Mon, 28 Aug 2023 15:17:41 +0300 Subject: [PATCH] Add NodeSwap as a node feature in nodefeature.go Also, Remove wrong documentation about tempSetCurrentKubeletConfig() returning bool Signed-off-by: Itamar Holder --- test/e2e/nodefeature/nodefeature.go | 4 ++++ test/e2e_node/util.go | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/e2e/nodefeature/nodefeature.go b/test/e2e/nodefeature/nodefeature.go index 1a1f425a91a..d69e1a8b84d 100644 --- a/test/e2e/nodefeature/nodefeature.go +++ b/test/e2e/nodefeature/nodefeature.go @@ -97,6 +97,10 @@ var ( // TODO: document the feature (owning SIG, when to use this feature for a test) RuntimeHandler = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("RuntimeHandler")) + // Added to test Swap Feature + // This label should be used when testing KEP-2400 (Node Swap Support) + Swap = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("NodeSwap")) + // TODO: document the feature (owning SIG, when to use this feature for a test) SidecarContainers = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("SidecarContainers")) diff --git a/test/e2e_node/util.go b/test/e2e_node/util.go index 716795f1db4..3d6fe0cf1e3 100644 --- a/test/e2e_node/util.go +++ b/test/e2e_node/util.go @@ -188,7 +188,6 @@ func cleanupPods(f *framework.Framework) { // Must be called within a Context. Allows the function to modify the KubeletConfiguration during the BeforeEach of the context. // The change is reverted in the AfterEach of the context. -// Returns true on success. func tempSetCurrentKubeletConfig(f *framework.Framework, updateFunction func(ctx context.Context, initialConfig *kubeletconfig.KubeletConfiguration)) { var oldCfg *kubeletconfig.KubeletConfiguration