mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
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:
parent
a70089ab99
commit
9f344f23fb
@ -97,6 +97,10 @@ var (
|
|||||||
// TODO: document the feature (owning SIG, when to use this feature for a test)
|
// TODO: document the feature (owning SIG, when to use this feature for a test)
|
||||||
RuntimeHandler = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("RuntimeHandler"))
|
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)
|
// TODO: document the feature (owning SIG, when to use this feature for a test)
|
||||||
SidecarContainers = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("SidecarContainers"))
|
SidecarContainers = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("SidecarContainers"))
|
||||||
|
|
||||||
|
@ -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.
|
// 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.
|
// 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)) {
|
func tempSetCurrentKubeletConfig(f *framework.Framework, updateFunction func(ctx context.Context, initialConfig *kubeletconfig.KubeletConfiguration)) {
|
||||||
var oldCfg *kubeletconfig.KubeletConfiguration
|
var oldCfg *kubeletconfig.KubeletConfiguration
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user