...

Source file src/k8s.io/kubernetes/test/e2e/nodefeature/nodefeature.go

Documentation: k8s.io/kubernetes/test/e2e/nodefeature

     1  /*
     2  Copyright 2023 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // Package feature contains pre-defined node features used by test/e2e and/or
    18  // test/e2e_node.
    19  package nodefeature
    20  
    21  import (
    22  	"k8s.io/kubernetes/test/e2e/framework"
    23  )
    24  
    25  var (
    26  	// Please keep the list in alphabetical order.
    27  
    28  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    29  	AppArmor = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("AppArmor"))
    30  
    31  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    32  	CheckpointContainer = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("CheckpointContainer"))
    33  
    34  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    35  	CriticalPod = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("CriticalPod"))
    36  
    37  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    38  	DeviceManager = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("DeviceManager"))
    39  
    40  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    41  	DevicePluginProbe = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("DevicePluginProbe"))
    42  
    43  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    44  	DownwardAPIHugePages = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("DownwardAPIHugePages"))
    45  
    46  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    47  	DynamicResourceAllocation = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("DynamicResourceAllocation"))
    48  
    49  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    50  	Eviction = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("Eviction"))
    51  
    52  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    53  	FSGroup = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("FSGroup"))
    54  
    55  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    56  	GarbageCollect = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("GarbageCollect"))
    57  
    58  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    59  	GracefulNodeShutdown = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("GracefulNodeShutdown"))
    60  
    61  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    62  	GracefulNodeShutdownBasedOnPodPriority = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("GracefulNodeShutdownBasedOnPodPriority"))
    63  
    64  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    65  	HostAccess = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("HostAccess"))
    66  
    67  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    68  	ImageID = framework.WithNodeFeature(framework.ValidNodeFeatures.Add(" ImageID"))
    69  
    70  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    71  	KubeletConfigDropInDir = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("KubeletConfigDropInDir"))
    72  
    73  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    74  	LSCIQuotaMonitoring = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("LSCIQuotaMonitoring"))
    75  
    76  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    77  	NodeAllocatable = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("NodeAllocatable"))
    78  
    79  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    80  	NodeProblemDetector = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("NodeProblemDetector"))
    81  
    82  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    83  	OOMScoreAdj = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("OOMScoreAdj"))
    84  
    85  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    86  	PodDisruptionConditions = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("PodDisruptionConditions"))
    87  
    88  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    89  	PodHostIPs = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("PodHostIPs"))
    90  
    91  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    92  	PodResources = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("PodResources"))
    93  
    94  	// RecursiveReadOnlyMounts (SIG-node, used for testing recursive read-only mounts <https://kep.k8s.io/3857>)
    95  	RecursiveReadOnlyMounts = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("RecursiveReadOnlyMounts"))
    96  
    97  	// TODO: document the feature (owning SIG, when to use this feature for a test)
    98  	ResourceMetrics = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("ResourceMetrics"))
    99  
   100  	// TODO: document the feature (owning SIG, when to use this feature for a test)
   101  	RuntimeHandler = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("RuntimeHandler"))
   102  
   103  	// TODO: document the feature (owning SIG, when to use this feature for a test)
   104  	SidecarContainers = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("SidecarContainers"))
   105  
   106  	// TODO: document the feature (owning SIG, when to use this feature for a test)
   107  	SystemNodeCriticalPod = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("SystemNodeCriticalPod"))
   108  
   109  	// Please keep the list in alphabetical order.
   110  )
   111  
   112  func init() {
   113  	// This prevents adding additional ad-hoc features in tests.
   114  	framework.ValidNodeFeatures.Freeze()
   115  }
   116  

View as plain text