Add NodeSwap as a node feature in nodefeature.go

Also, Remove wrong documentation about
tempSetCurrentKubeletConfig() returning bool

Signed-off-by: Itamar Holder <iholder@redhat.com>
This commit is contained in:
Itamar Holder 2023-08-28 15:17:41 +03:00
parent a70089ab99
commit 9f344f23fb
2 changed files with 4 additions and 1 deletions

View File

@ -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"))

View File

@ -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