mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 20:00:07 +00:00
KEP-4540: StrictCPUReservationOption moved to GA, modified unit tests to reflect this
This commit is contained in:
@@ -43,12 +43,12 @@ var (
|
||||
DistributeCPUsAcrossCoresOption,
|
||||
)
|
||||
betaOptions = sets.New[string](
|
||||
StrictCPUReservationOption,
|
||||
DistributeCPUsAcrossNUMAOption,
|
||||
PreferAlignByUnCoreCacheOption,
|
||||
)
|
||||
stableOptions = sets.New[string](
|
||||
FullPCPUsOnlyOption,
|
||||
StrictCPUReservationOption,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -106,18 +106,6 @@ func TestPolicyOptionsAvailable(t *testing.T) {
|
||||
featureGateEnable: true,
|
||||
expectedAvailable: false,
|
||||
},
|
||||
{
|
||||
option: StrictCPUReservationOption,
|
||||
featureGate: pkgfeatures.CPUManagerPolicyBetaOptions,
|
||||
featureGateEnable: false,
|
||||
expectedAvailable: false,
|
||||
},
|
||||
{
|
||||
option: StrictCPUReservationOption,
|
||||
featureGate: pkgfeatures.CPUManagerPolicyBetaOptions,
|
||||
featureGateEnable: true,
|
||||
expectedAvailable: true,
|
||||
},
|
||||
{
|
||||
option: PreferAlignByUnCoreCacheOption,
|
||||
featureGate: pkgfeatures.CPUManagerPolicyBetaOptions,
|
||||
@@ -146,6 +134,7 @@ func TestPolicyOptionsAvailable(t *testing.T) {
|
||||
func TestPolicyOptionsAlwaysAvailableOnceGA(t *testing.T) {
|
||||
options := []string{
|
||||
FullPCPUsOnlyOption,
|
||||
StrictCPUReservationOption,
|
||||
}
|
||||
for _, option := range options {
|
||||
t.Run(option, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user