e2e labels: ensure that the lists remain sorted

Adding new entries at the bottom is tempting, but increases the risk of merge
conflicts between unrelated PRs. Let's use alphabetic order instead.
This commit is contained in:
Patrick Ohly 2024-02-13 11:51:45 +01:00
parent 5909bd2ddf
commit 445443bd8a
3 changed files with 13 additions and 1 deletions

View File

@ -23,8 +23,12 @@ import (
)
var (
// Please keep the list in alphabetical order.
// The test does not work in UserNS (for example, `open /proc/sys/kernel/shm_rmid_forced: permission denied`).
NotInUserNS = framework.WithEnvironment(framework.ValidEnvironments.Add("NotInUserNS"))
// Please keep the list in alphabetical order.
)
func init() {

View File

@ -23,6 +23,8 @@ import (
)
var (
// Please keep the list in alphabetical order.
APIServerIdentity = framework.WithFeature(framework.ValidFeatures.Add("APIServerIdentity"))
AppArmor = framework.WithFeature(framework.ValidFeatures.Add("AppArmor"))
BootstrapTokens = framework.WithFeature(framework.ValidFeatures.Add("BootstrapTokens"))
@ -35,6 +37,7 @@ var (
ClusterAutoscalerScalability5 = framework.WithFeature(framework.ValidFeatures.Add("ClusterAutoscalerScalability5"))
ClusterAutoscalerScalability6 = framework.WithFeature(framework.ValidFeatures.Add("ClusterAutoscalerScalability6"))
ClusterDowngrade = framework.WithFeature(framework.ValidFeatures.Add("ClusterDowngrade"))
ClusterScaleUpBypassScheduler = framework.WithFeature(framework.ValidFeatures.Add("ClusterScaleUpBypassScheduler"))
ClusterSizeAutoscalingGpu = framework.WithFeature(framework.ValidFeatures.Add("ClusterSizeAutoscalingGpu"))
ClusterSizeAutoscalingScaleDown = framework.WithFeature(framework.ValidFeatures.Add("ClusterSizeAutoscalingScaleDown"))
ClusterSizeAutoscalingScaleUp = framework.WithFeature(framework.ValidFeatures.Add("ClusterSizeAutoscalingScaleUp"))
@ -132,7 +135,8 @@ var (
Windows = framework.WithFeature(framework.ValidFeatures.Add("Windows"))
WindowsHostProcessContainers = framework.WithFeature(framework.ValidFeatures.Add("WindowsHostProcessContainers"))
WindowsHyperVContainers = framework.WithFeature(framework.ValidFeatures.Add("WindowsHyperVContainers"))
ClusterScaleUpBypassScheduler = framework.WithFeature(framework.ValidFeatures.Add("ClusterScaleUpBypassScheduler"))
// Please keep the list in alphabetical order.
)
func init() {

View File

@ -23,6 +23,8 @@ import (
)
var (
// Please keep the list in alphabetical order.
AppArmor = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("AppArmor"))
CheckpointContainer = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("CheckpointContainer"))
CriticalPod = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("CriticalPod"))
@ -49,6 +51,8 @@ var (
RuntimeHandler = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("RuntimeHandler"))
SidecarContainers = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("SidecarContainers"))
SystemNodeCriticalPod = framework.WithNodeFeature(framework.ValidNodeFeatures.Add("SystemNodeCriticalPod"))
// Please keep the list in alphabetical order.
)
func init() {