mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-24 16:57:27 +00:00
The new DRAAdminAccess feature gate has the following effects: - If disabled in the apiserver, the spec.devices.requests[*].adminAccess field gets cleared. Same in the status. In both cases the scenario that it was already set and a claim or claim template get updated is special: in those cases, the field is not cleared. Also, allocating a claim with admin access is allowed regardless of the feature gate and the field is not cleared. In practice, the scheduler will not do that. - If disabled in the resource claim controller, creating ResourceClaims with the field set gets rejected. This prevents running workloads which depend on admin access. - If disabled in the scheduler, claims with admin access don't get allocated. The effect is the same. The alternative would have been to ignore the fields in claim controller and scheduler. This is bad because a monitoring workload then runs, blocking resources that probably were meant for production workloads.
32 lines
1.2 KiB
Go
32 lines
1.2 KiB
Go
/*
|
|
Copyright 2021 The Kubernetes Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
package feature
|
|
|
|
// Features carries feature gate values used by various plugins.
|
|
// This struct allows us to break the dependency of the plugins on
|
|
// the internal k8s features pkg.
|
|
type Features struct {
|
|
EnableDRAAdminAccess bool
|
|
EnableDynamicResourceAllocation bool
|
|
EnableVolumeCapacityPriority bool
|
|
EnableNodeInclusionPolicyInPodTopologySpread bool
|
|
EnableMatchLabelKeysInPodTopologySpread bool
|
|
EnableInPlacePodVerticalScaling bool
|
|
EnableSidecarContainers bool
|
|
EnableSchedulingQueueHint bool
|
|
}
|