2017-01-20 13:05:41 +00:00
|
|
|
/*
|
|
|
|
Copyright 2017 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 features
|
|
|
|
|
|
|
|
import (
|
2017-08-14 16:14:02 +00:00
|
|
|
apiextensionsfeatures "k8s.io/apiextensions-apiserver/pkg/features"
|
2017-01-20 13:05:41 +00:00
|
|
|
genericfeatures "k8s.io/apiserver/pkg/features"
|
|
|
|
utilfeature "k8s.io/apiserver/pkg/util/feature"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Every feature gate should add method here following this template:
|
|
|
|
//
|
|
|
|
// // owner: @username
|
2017-05-05 21:27:31 +00:00
|
|
|
// // alpha: v1.X
|
|
|
|
// MyFeature utilfeature.Feature = "MyFeature"
|
2017-01-20 13:05:41 +00:00
|
|
|
|
2017-07-10 21:05:46 +00:00
|
|
|
// owner: @tallclair
|
2017-01-20 13:05:41 +00:00
|
|
|
// beta: v1.4
|
|
|
|
AppArmor utilfeature.Feature = "AppArmor"
|
|
|
|
|
|
|
|
// owner: @mtaufen
|
|
|
|
// alpha: v1.4
|
2018-05-24 16:49:20 +00:00
|
|
|
// beta: v1.11
|
2017-01-20 13:05:41 +00:00
|
|
|
DynamicKubeletConfig utilfeature.Feature = "DynamicKubeletConfig"
|
|
|
|
|
|
|
|
// owner: @pweil-
|
|
|
|
// alpha: v1.5
|
|
|
|
//
|
|
|
|
// Default userns=host for containers that are using other host namespaces, host mounts, the pod
|
|
|
|
// contains a privileged container, or specific non-namespaced capabilities (MKNOD, SYS_MODULE,
|
|
|
|
// SYS_TIME). This should only be enabled if user namespace remapping is enabled in the docker daemon.
|
|
|
|
ExperimentalHostUserNamespaceDefaultingGate utilfeature.Feature = "ExperimentalHostUserNamespaceDefaulting"
|
2017-01-28 22:48:35 +00:00
|
|
|
|
|
|
|
// owner: @vishh
|
|
|
|
// alpha: v1.5
|
|
|
|
//
|
2018-10-26 18:44:43 +00:00
|
|
|
// DEPRECATED - This feature is deprecated by Pod Priority and Preemption as of Kubernetes 1.13.
|
2017-01-28 22:48:35 +00:00
|
|
|
// Ensures guaranteed scheduling of pods marked with a special pod annotation `scheduler.alpha.kubernetes.io/critical-pod`
|
|
|
|
// and also prevents them from being evicted from a node.
|
2017-02-02 18:27:52 +00:00
|
|
|
// Note: This feature is not supported for `BestEffort` pods.
|
2017-01-28 22:48:35 +00:00
|
|
|
ExperimentalCriticalPodAnnotation utilfeature.Feature = "ExperimentalCriticalPodAnnotation"
|
2017-02-09 14:52:05 +00:00
|
|
|
|
2017-08-22 22:03:47 +00:00
|
|
|
// owner: @jiayingz
|
2018-02-22 00:51:14 +00:00
|
|
|
// beta: v1.10
|
2017-08-18 22:17:43 +00:00
|
|
|
//
|
|
|
|
// Enables support for Device Plugins
|
|
|
|
DevicePlugins utilfeature.Feature = "DevicePlugins"
|
|
|
|
|
2018-10-15 18:20:49 +00:00
|
|
|
// owner: @Huang-Wei
|
|
|
|
// beta: v1.13
|
2017-03-08 07:03:57 +00:00
|
|
|
//
|
|
|
|
// Changes the logic behind evicting Pods from not ready Nodes
|
|
|
|
// to take advantage of NoExecute Taints and Tolerations.
|
|
|
|
TaintBasedEvictions utilfeature.Feature = "TaintBasedEvictions"
|
2017-04-18 05:24:24 +00:00
|
|
|
|
2018-04-12 14:05:51 +00:00
|
|
|
// owner: @mikedanese
|
2017-02-17 19:32:41 +00:00
|
|
|
// alpha: v1.7
|
2018-07-27 20:03:50 +00:00
|
|
|
// beta: v1.12
|
2017-02-17 19:32:41 +00:00
|
|
|
//
|
|
|
|
// Gets a server certificate for the kubelet from the Certificate Signing
|
|
|
|
// Request API instead of generating one self signed and auto rotates the
|
|
|
|
// certificate as expiration approaches.
|
|
|
|
RotateKubeletServerCertificate utilfeature.Feature = "RotateKubeletServerCertificate"
|
|
|
|
|
2018-04-12 14:05:51 +00:00
|
|
|
// owner: @mikedanese
|
|
|
|
// beta: v1.8
|
2017-02-06 17:26:32 +00:00
|
|
|
//
|
|
|
|
// Automatically renews the client certificate used for communicating with
|
|
|
|
// the API server as the certificate approaches expiration.
|
|
|
|
RotateKubeletClientCertificate utilfeature.Feature = "RotateKubeletClientCertificate"
|
|
|
|
|
2017-10-04 17:34:34 +00:00
|
|
|
// owner: @msau42
|
2017-04-18 05:24:24 +00:00
|
|
|
// alpha: v1.7
|
|
|
|
//
|
|
|
|
// A new volume type that supports local disks on a node.
|
|
|
|
PersistentLocalVolumes utilfeature.Feature = "PersistentLocalVolumes"
|
2017-05-25 20:53:40 +00:00
|
|
|
|
|
|
|
// owner: @jinxu
|
2018-02-02 20:04:45 +00:00
|
|
|
// beta: v1.10
|
2017-05-25 20:53:40 +00:00
|
|
|
//
|
|
|
|
// New local storage types to support local storage capacity isolation
|
|
|
|
LocalStorageCapacityIsolation utilfeature.Feature = "LocalStorageCapacityIsolation"
|
2017-05-23 00:50:12 +00:00
|
|
|
|
2017-09-04 07:02:34 +00:00
|
|
|
// owner: @gnufied
|
2018-05-24 19:06:04 +00:00
|
|
|
// beta: v1.11
|
2017-09-04 07:02:34 +00:00
|
|
|
// Ability to Expand persistent volumes
|
|
|
|
ExpandPersistentVolumes utilfeature.Feature = "ExpandPersistentVolumes"
|
|
|
|
|
2018-04-28 06:59:55 +00:00
|
|
|
// owner: @mlmhl
|
|
|
|
// alpha: v1.11
|
|
|
|
// Ability to expand persistent volumes' file system without unmounting volumes.
|
2018-05-31 21:28:12 +00:00
|
|
|
ExpandInUsePersistentVolumes utilfeature.Feature = "ExpandInUsePersistentVolumes"
|
2018-04-28 06:59:55 +00:00
|
|
|
|
2017-05-23 00:50:12 +00:00
|
|
|
// owner: @verb
|
2018-01-10 17:55:50 +00:00
|
|
|
// alpha: v1.10
|
2017-05-23 00:50:12 +00:00
|
|
|
//
|
|
|
|
// Allows running a "debug container" in a pod namespaces to troubleshoot a running pod.
|
|
|
|
DebugContainers utilfeature.Feature = "DebugContainers"
|
2017-05-10 01:25:34 +00:00
|
|
|
|
2018-01-10 17:55:50 +00:00
|
|
|
// owner: @verb
|
2018-07-22 15:23:42 +00:00
|
|
|
// beta: v1.12
|
2018-01-10 17:55:50 +00:00
|
|
|
//
|
|
|
|
// Allows all containers in a pod to share a process namespace.
|
|
|
|
PodShareProcessNamespace utilfeature.Feature = "PodShareProcessNamespace"
|
|
|
|
|
2017-05-10 01:25:34 +00:00
|
|
|
// owner: @bsalamat
|
|
|
|
// alpha: v1.8
|
2018-11-27 06:05:16 +00:00
|
|
|
// beta: v1.11
|
2017-05-10 01:25:34 +00:00
|
|
|
//
|
|
|
|
// Add priority to pods. Priority affects scheduling and preemption of pods.
|
|
|
|
PodPriority utilfeature.Feature = "PodPriority"
|
2017-02-15 09:00:50 +00:00
|
|
|
|
2017-07-27 03:41:23 +00:00
|
|
|
// owner: @k82cn
|
2018-04-22 09:17:44 +00:00
|
|
|
// beta: v1.12
|
2017-07-27 03:41:23 +00:00
|
|
|
//
|
|
|
|
// Taint nodes based on their condition status for 'NetworkUnavailable',
|
2018-12-13 08:31:46 +00:00
|
|
|
// 'MemoryPressure', 'PIDPressure' and 'DiskPressure'.
|
2017-07-27 03:41:23 +00:00
|
|
|
TaintNodesByCondition utilfeature.Feature = "TaintNodesByCondition"
|
2017-07-25 14:54:55 +00:00
|
|
|
|
2017-09-01 19:36:14 +00:00
|
|
|
// owner: @jsafrane
|
2018-08-31 07:55:36 +00:00
|
|
|
// GA: v1.12
|
2017-09-01 19:36:14 +00:00
|
|
|
//
|
2018-10-25 10:26:18 +00:00
|
|
|
// Note: This feature gate is unconditionally enabled in v1.13 and will be removed in v1.14.
|
2017-09-01 19:36:14 +00:00
|
|
|
// Enable mount propagation of volumes.
|
|
|
|
MountPropagation utilfeature.Feature = "MountPropagation"
|
2017-09-01 17:46:39 +00:00
|
|
|
|
2018-04-13 01:51:08 +00:00
|
|
|
// owner: @sjenning
|
|
|
|
// alpha: v1.11
|
|
|
|
//
|
|
|
|
// Allows resource reservations at the QoS level preventing pods at lower QoS levels from
|
|
|
|
// bursting into resources requested at higher QoS levels (memory only for now)
|
|
|
|
QOSReserved utilfeature.Feature = "QOSReserved"
|
|
|
|
|
2017-09-01 17:46:39 +00:00
|
|
|
// owner: @ConnorDoyle
|
|
|
|
// alpha: v1.8
|
2018-11-27 06:05:16 +00:00
|
|
|
// beta: v1.10
|
2017-09-01 17:46:39 +00:00
|
|
|
//
|
|
|
|
// Alternative container-level CPU affinity policies.
|
|
|
|
CPUManager utilfeature.Feature = "CPUManager"
|
2017-08-17 18:16:37 +00:00
|
|
|
|
2018-05-04 15:25:22 +00:00
|
|
|
// owner: @szuecs
|
|
|
|
// alpha: v1.12
|
|
|
|
//
|
|
|
|
// Enable nodes to change CPUCFSQuotaPeriod
|
|
|
|
CPUCFSQuotaPeriod utilfeature.Feature = "CustomCPUCFSQuotaPeriod"
|
|
|
|
|
2017-08-17 18:16:37 +00:00
|
|
|
// owner: @derekwaynecarr
|
2017-12-07 20:33:22 +00:00
|
|
|
// beta: v1.10
|
2017-08-17 18:16:37 +00:00
|
|
|
//
|
|
|
|
// Enable pods to consume pre-allocated huge pages of varying page sizes
|
|
|
|
HugePages utilfeature.Feature = "HugePages"
|
2017-10-26 18:15:23 +00:00
|
|
|
|
2018-03-21 20:45:51 +00:00
|
|
|
// owner: @sjenning
|
2018-05-21 10:37:20 +00:00
|
|
|
// beta: v1.11
|
2018-03-21 20:45:51 +00:00
|
|
|
//
|
|
|
|
// Enable pods to set sysctls on a pod
|
|
|
|
Sysctls utilfeature.Feature = "Sysctls"
|
|
|
|
|
2017-10-26 18:15:23 +00:00
|
|
|
// owner @brendandburns
|
2017-11-17 07:26:28 +00:00
|
|
|
// alpha: v1.9
|
2017-10-26 18:15:23 +00:00
|
|
|
//
|
|
|
|
// Enable nodes to exclude themselves from service load balancers
|
|
|
|
ServiceNodeExclusion utilfeature.Feature = "ServiceNodeExclusion"
|
2017-11-10 12:14:40 +00:00
|
|
|
|
|
|
|
// owner: @jsafrane
|
|
|
|
// alpha: v1.9
|
|
|
|
//
|
|
|
|
// Enable running mount utilities in containers.
|
|
|
|
MountContainers utilfeature.Feature = "MountContainers"
|
2017-10-04 17:34:34 +00:00
|
|
|
|
|
|
|
// owner: @msau42
|
2018-11-05 23:31:18 +00:00
|
|
|
// GA: v1.13
|
2017-10-04 17:34:34 +00:00
|
|
|
//
|
|
|
|
// Extend the default scheduler to be aware of PV topology and handle PV binding
|
|
|
|
VolumeScheduling utilfeature.Feature = "VolumeScheduling"
|
2017-10-25 02:44:48 +00:00
|
|
|
|
|
|
|
// owner: @vladimirvivien
|
2018-11-14 13:01:16 +00:00
|
|
|
// GA: v1.13
|
2017-10-25 02:44:48 +00:00
|
|
|
//
|
|
|
|
// Enable mount/attachment of Container Storage Interface (CSI) backed PVs
|
|
|
|
CSIPersistentVolume utilfeature.Feature = "CSIPersistentVolume"
|
2017-08-09 17:51:46 +00:00
|
|
|
|
2018-08-27 08:31:05 +00:00
|
|
|
// owner: @saad-ali
|
|
|
|
// alpha: v1.12
|
2018-09-06 22:45:50 +00:00
|
|
|
// Enable all logic related to the CSIDriver API object in csi.storage.k8s.io
|
|
|
|
CSIDriverRegistry utilfeature.Feature = "CSIDriverRegistry"
|
|
|
|
|
|
|
|
// owner: @verult
|
|
|
|
// alpha: v1.12
|
|
|
|
// Enable all logic related to the CSINodeInfo API object in csi.storage.k8s.io
|
|
|
|
CSINodeInfo utilfeature.Feature = "CSINodeInfo"
|
2018-08-27 08:31:05 +00:00
|
|
|
|
2017-11-14 20:20:43 +00:00
|
|
|
// owner @MrHohn
|
2018-02-09 22:11:09 +00:00
|
|
|
// beta: v1.10
|
2017-11-14 20:20:43 +00:00
|
|
|
//
|
|
|
|
// Support configurable pod DNS parameters.
|
|
|
|
CustomPodDNS utilfeature.Feature = "CustomPodDNS"
|
|
|
|
|
2017-08-09 17:51:46 +00:00
|
|
|
// owner: @screeley44
|
|
|
|
// alpha: v1.9
|
2018-10-18 19:11:23 +00:00
|
|
|
// beta: v1.13
|
2017-08-09 17:51:46 +00:00
|
|
|
//
|
|
|
|
// Enable Block volume support in containers.
|
|
|
|
BlockVolume utilfeature.Feature = "BlockVolume"
|
2017-11-22 09:06:48 +00:00
|
|
|
|
|
|
|
// owner: @pospispa
|
2018-04-19 15:13:46 +00:00
|
|
|
// GA: v1.11
|
2018-01-24 09:03:37 +00:00
|
|
|
//
|
|
|
|
// Postpone deletion of a PV or a PVC when they are being used
|
2018-02-15 00:57:02 +00:00
|
|
|
StorageObjectInUseProtection utilfeature.Feature = "StorageObjectInUseProtection"
|
2017-11-15 19:42:02 +00:00
|
|
|
|
|
|
|
// owner: @aveshagarwal
|
|
|
|
// alpha: v1.9
|
|
|
|
//
|
|
|
|
// Enable resource limits priority function
|
|
|
|
ResourceLimitsPriorityFunction utilfeature.Feature = "ResourceLimitsPriorityFunction"
|
2017-11-30 09:49:08 +00:00
|
|
|
|
|
|
|
// owner: @m1093782566
|
2018-01-18 08:19:02 +00:00
|
|
|
// GA: v1.11
|
2017-11-30 09:49:08 +00:00
|
|
|
//
|
|
|
|
// Implement IPVS-based in-cluster service load balancing
|
|
|
|
SupportIPVSProxyMode utilfeature.Feature = "SupportIPVSProxyMode"
|
2018-01-08 17:32:34 +00:00
|
|
|
|
2018-12-15 08:21:53 +00:00
|
|
|
// owner: @dims, @derekwaynecarr
|
2018-01-08 17:32:34 +00:00
|
|
|
// alpha: v1.10
|
2018-12-15 08:21:53 +00:00
|
|
|
// beta: v1.14
|
2018-01-08 17:32:34 +00:00
|
|
|
//
|
|
|
|
// Implement support for limiting pids in pods
|
|
|
|
SupportPodPidsLimit utilfeature.Feature = "SupportPodPidsLimit"
|
2018-01-30 04:56:31 +00:00
|
|
|
|
|
|
|
// owner: @feiskyer
|
|
|
|
// alpha: v1.10
|
|
|
|
//
|
|
|
|
// Enable Hyper-V containers on Windows
|
|
|
|
HyperVContainer utilfeature.Feature = "HyperVContainer"
|
2017-12-06 04:50:22 +00:00
|
|
|
|
2018-02-09 06:33:37 +00:00
|
|
|
// owner: @k82cn
|
2018-08-31 17:34:09 +00:00
|
|
|
// beta: v1.12
|
2018-02-09 06:33:37 +00:00
|
|
|
//
|
|
|
|
// Schedule DaemonSet Pods by default scheduler instead of DaemonSet controller
|
2018-03-08 02:09:54 +00:00
|
|
|
ScheduleDaemonSetPods utilfeature.Feature = "ScheduleDaemonSetPods"
|
2018-02-06 04:53:25 +00:00
|
|
|
|
|
|
|
// owner: @mikedanese
|
2018-08-13 19:13:39 +00:00
|
|
|
// beta: v1.12
|
2018-02-06 04:53:25 +00:00
|
|
|
//
|
|
|
|
// Implement TokenRequest endpoint on service account resources.
|
|
|
|
TokenRequest utilfeature.Feature = "TokenRequest"
|
2018-02-15 01:15:00 +00:00
|
|
|
|
2018-05-15 01:56:23 +00:00
|
|
|
// owner: @mikedanese
|
2018-08-13 19:13:39 +00:00
|
|
|
// beta: v1.12
|
2018-05-15 01:56:23 +00:00
|
|
|
//
|
|
|
|
// Enable ServiceAccountTokenVolumeProjection support in ProjectedVolumes.
|
|
|
|
TokenRequestProjection utilfeature.Feature = "TokenRequestProjection"
|
|
|
|
|
2018-11-02 20:22:55 +00:00
|
|
|
// owner: @mikedanese
|
|
|
|
// alpha: v1.13
|
|
|
|
//
|
|
|
|
// Migrate ServiceAccount volumes to use a projected volume consisting of a
|
|
|
|
// ServiceAccountTokenVolumeProjection. This feature adds new required flags
|
|
|
|
// to the API server.
|
|
|
|
BoundServiceAccountTokenVolume utilfeature.Feature = "BoundServiceAccountTokenVolume"
|
|
|
|
|
2018-02-15 01:15:00 +00:00
|
|
|
// owner: @Random-Liu
|
2018-05-18 17:09:09 +00:00
|
|
|
// beta: v1.11
|
2018-02-15 01:15:00 +00:00
|
|
|
//
|
|
|
|
// Enable container log rotation for cri container runtime
|
|
|
|
CRIContainerLogRotation utilfeature.Feature = "CRIContainerLogRotation"
|
2018-02-23 22:19:14 +00:00
|
|
|
|
|
|
|
// owner: @verult
|
2018-11-06 01:15:33 +00:00
|
|
|
// GA: v1.13
|
2018-02-23 22:19:14 +00:00
|
|
|
//
|
|
|
|
// Enables the regional PD feature on GCE.
|
|
|
|
GCERegionalPersistentDisk utilfeature.Feature = "GCERegionalPersistentDisk"
|
2017-05-13 06:29:25 +00:00
|
|
|
|
|
|
|
// owner: @krmayankk
|
|
|
|
// alpha: v1.10
|
|
|
|
//
|
|
|
|
// Enables control over the primary group ID of containers' init processes.
|
|
|
|
RunAsGroup utilfeature.Feature = "RunAsGroup"
|
2018-03-05 08:14:44 +00:00
|
|
|
|
|
|
|
// owner: @saad-ali
|
|
|
|
// ga
|
|
|
|
//
|
|
|
|
// Allow mounting a subpath of a volume in a container
|
|
|
|
// Do not remove this feature gate even though it's GA
|
|
|
|
VolumeSubpath utilfeature.Feature = "VolumeSubpath"
|
2018-03-22 20:05:58 +00:00
|
|
|
|
2018-05-23 16:47:42 +00:00
|
|
|
// owner: @gnufied
|
2018-08-22 21:54:52 +00:00
|
|
|
// beta : v1.12
|
2018-05-23 16:47:42 +00:00
|
|
|
//
|
|
|
|
// Add support for volume plugins to report node specific
|
|
|
|
// volume limits
|
|
|
|
AttachVolumeLimit utilfeature.Feature = "AttachVolumeLimit"
|
|
|
|
|
2018-03-22 20:05:58 +00:00
|
|
|
// owner: @ravig
|
|
|
|
// alpha: v1.11
|
|
|
|
//
|
|
|
|
// Include volume count on node to be considered for balanced resource allocation while scheduling.
|
|
|
|
// A node which has closer cpu,memory utilization and volume count is favoured by scheduler
|
|
|
|
// while making decisions.
|
|
|
|
BalanceAttachedNodeVolumes utilfeature.Feature = "BalanceAttachedNodeVolumes"
|
2018-04-09 06:37:41 +00:00
|
|
|
|
2018-05-18 22:47:08 +00:00
|
|
|
// owner @freehan
|
|
|
|
// beta: v1.11
|
|
|
|
//
|
|
|
|
// Support Pod Ready++
|
|
|
|
PodReadinessGates utilfeature.Feature = "PodReadinessGates"
|
|
|
|
|
2017-07-21 14:42:03 +00:00
|
|
|
// owner: @kevtaylor
|
|
|
|
// alpha: v1.11
|
|
|
|
//
|
|
|
|
// Allow subpath environment variable substitution
|
|
|
|
// Only applicable if the VolumeSubpath feature is also enabled
|
|
|
|
VolumeSubpathEnvExpansion utilfeature.Feature = "VolumeSubpathEnvExpansion"
|
2018-06-01 08:42:30 +00:00
|
|
|
|
|
|
|
// owner: @vikaschoudhary16
|
2018-11-02 23:15:18 +00:00
|
|
|
// GA: v1.13
|
2018-06-01 08:42:30 +00:00
|
|
|
//
|
|
|
|
//
|
|
|
|
// Enable probe based plugin watcher utility for discovering Kubelet plugins
|
|
|
|
KubeletPluginsWatcher utilfeature.Feature = "KubeletPluginsWatcher"
|
2017-12-22 11:06:29 +00:00
|
|
|
|
|
|
|
// owner: @vikaschoudhary16
|
2018-08-07 13:04:39 +00:00
|
|
|
// beta: v1.12
|
2017-12-22 11:06:29 +00:00
|
|
|
//
|
|
|
|
//
|
|
|
|
// Enable resource quota scope selectors
|
|
|
|
ResourceQuotaScopeSelectors utilfeature.Feature = "ResourceQuotaScopeSelectors"
|
2018-05-09 18:28:53 +00:00
|
|
|
|
|
|
|
// owner: @vladimirvivien
|
|
|
|
// alpha: v1.11
|
|
|
|
//
|
|
|
|
// Enables CSI to use raw block storage volumes
|
|
|
|
CSIBlockVolume utilfeature.Feature = "CSIBlockVolume"
|
2018-08-22 20:57:07 +00:00
|
|
|
|
|
|
|
// owner: @tallclair
|
|
|
|
// alpha: v1.12
|
|
|
|
//
|
|
|
|
// Enables RuntimeClass, for selecting between multiple runtimes to run a pod.
|
|
|
|
RuntimeClass utilfeature.Feature = "RuntimeClass"
|
2018-06-21 21:24:59 +00:00
|
|
|
|
|
|
|
// owner: @mtaufen
|
|
|
|
// alpha: v1.12
|
|
|
|
//
|
|
|
|
// Kubelet uses the new Lease API to report node heartbeats,
|
|
|
|
// (Kube) Node Lifecycle Controller uses these heartbeats as a node health signal.
|
|
|
|
NodeLease utilfeature.Feature = "NodeLease"
|
2018-08-27 07:42:27 +00:00
|
|
|
|
2018-08-25 20:26:25 +00:00
|
|
|
// owner: @janosi
|
|
|
|
// alpha: v1.12
|
|
|
|
//
|
|
|
|
// Enables SCTP as new protocol for Service ports, NetworkPolicy, and ContainerPort in Pod/Containers definition
|
|
|
|
SCTPSupport utilfeature.Feature = "SCTPSupport"
|
2018-08-21 01:30:34 +00:00
|
|
|
|
|
|
|
// owner: @xing-yang
|
|
|
|
// alpha: v1.12
|
|
|
|
//
|
|
|
|
// Enable volume snapshot data source support.
|
|
|
|
VolumeSnapshotDataSource utilfeature.Feature = "VolumeSnapshotDataSource"
|
2018-03-20 19:38:42 +00:00
|
|
|
|
|
|
|
// owner: @jessfraz
|
|
|
|
// alpha: v1.12
|
|
|
|
//
|
|
|
|
// Enables control over ProcMountType for containers.
|
|
|
|
ProcMountType utilfeature.Feature = "ProcMountType"
|
2018-07-24 22:04:13 +00:00
|
|
|
|
|
|
|
// owner: @janetkuo
|
|
|
|
// alpha: v1.12
|
|
|
|
//
|
|
|
|
// Allow TTL controller to clean up Pods and Jobs after they finish.
|
|
|
|
TTLAfterFinished utilfeature.Feature = "TTLAfterFinished"
|
2018-11-14 02:01:18 +00:00
|
|
|
|
|
|
|
// owner: @dashpole
|
|
|
|
// alpha: v1.13
|
|
|
|
//
|
|
|
|
// Enables the kubelet's pod resources grpc endpoint
|
|
|
|
KubeletPodResources utilfeature.Feature = "KubeletPodResources"
|
2019-01-17 19:56:58 +00:00
|
|
|
|
|
|
|
// owner: @davidz627
|
|
|
|
// alpha: v1.14
|
|
|
|
//
|
|
|
|
// Enables the in-tree storage to CSI Plugin migration feature.
|
|
|
|
CSIMigration utilfeature.Feature = "CSIMigration"
|
|
|
|
|
|
|
|
// owner: @davidz627
|
|
|
|
// alpha: v1.14
|
|
|
|
//
|
|
|
|
// Enables the GCE PD in-tree driver to GCE CSI Driver migration feature.
|
|
|
|
CSIMigrationGCE utilfeature.Feature = "CSIMigrationGCE"
|
|
|
|
|
|
|
|
// owner: @leakingtapan
|
|
|
|
// alpha: v1.14
|
|
|
|
//
|
|
|
|
// Enables the AWS EBS in-tree driver to AWS EBS CSI Driver migration feature.
|
|
|
|
CSIMigrationAWS utilfeature.Feature = "CSIMigrationAWS"
|
2017-01-20 13:05:41 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2018-11-21 04:59:52 +00:00
|
|
|
utilfeature.DefaultMutableFeatureGate.Add(defaultKubernetesFeatureGates)
|
2017-01-20 13:05:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// defaultKubernetesFeatureGates consists of all known Kubernetes-specific feature keys.
|
|
|
|
// To add a new feature, define a key for it above and add it here. The features will be
|
|
|
|
// available throughout Kubernetes binaries.
|
|
|
|
var defaultKubernetesFeatureGates = map[utilfeature.Feature]utilfeature.FeatureSpec{
|
2018-10-05 19:59:38 +00:00
|
|
|
AppArmor: {Default: true, PreRelease: utilfeature.Beta},
|
|
|
|
DynamicKubeletConfig: {Default: true, PreRelease: utilfeature.Beta},
|
2017-01-20 13:05:41 +00:00
|
|
|
ExperimentalHostUserNamespaceDefaultingGate: {Default: false, PreRelease: utilfeature.Beta},
|
2017-01-28 22:48:35 +00:00
|
|
|
ExperimentalCriticalPodAnnotation: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-02-22 00:51:14 +00:00
|
|
|
DevicePlugins: {Default: true, PreRelease: utilfeature.Beta},
|
2018-10-15 18:20:49 +00:00
|
|
|
TaintBasedEvictions: {Default: true, PreRelease: utilfeature.Beta},
|
2018-07-27 20:03:50 +00:00
|
|
|
RotateKubeletServerCertificate: {Default: true, PreRelease: utilfeature.Beta},
|
2017-08-16 16:34:53 +00:00
|
|
|
RotateKubeletClientCertificate: {Default: true, PreRelease: utilfeature.Beta},
|
2018-01-30 23:41:57 +00:00
|
|
|
PersistentLocalVolumes: {Default: true, PreRelease: utilfeature.Beta},
|
2018-02-02 20:04:45 +00:00
|
|
|
LocalStorageCapacityIsolation: {Default: true, PreRelease: utilfeature.Beta},
|
2017-12-07 20:33:22 +00:00
|
|
|
HugePages: {Default: true, PreRelease: utilfeature.Beta},
|
2018-05-21 10:37:20 +00:00
|
|
|
Sysctls: {Default: true, PreRelease: utilfeature.Beta},
|
2017-05-23 00:50:12 +00:00
|
|
|
DebugContainers: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-07-22 15:23:42 +00:00
|
|
|
PodShareProcessNamespace: {Default: true, PreRelease: utilfeature.Beta},
|
2018-05-14 22:15:18 +00:00
|
|
|
PodPriority: {Default: true, PreRelease: utilfeature.Beta},
|
2018-04-22 09:17:44 +00:00
|
|
|
TaintNodesByCondition: {Default: true, PreRelease: utilfeature.Beta},
|
2018-12-27 22:45:04 +00:00
|
|
|
MountPropagation: {Default: true, PreRelease: utilfeature.GA, LockToDefault: true}, // remove in 1.14
|
2018-04-13 01:51:08 +00:00
|
|
|
QOSReserved: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-05-24 19:06:04 +00:00
|
|
|
ExpandPersistentVolumes: {Default: true, PreRelease: utilfeature.Beta},
|
2018-05-31 21:28:12 +00:00
|
|
|
ExpandInUsePersistentVolumes: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-09-28 15:13:59 +00:00
|
|
|
AttachVolumeLimit: {Default: true, PreRelease: utilfeature.Beta},
|
2018-05-31 21:28:12 +00:00
|
|
|
CPUManager: {Default: true, PreRelease: utilfeature.Beta},
|
2018-05-04 15:25:22 +00:00
|
|
|
CPUCFSQuotaPeriod: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-05-31 21:28:12 +00:00
|
|
|
ServiceNodeExclusion: {Default: false, PreRelease: utilfeature.Alpha},
|
|
|
|
MountContainers: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-12-27 22:45:04 +00:00
|
|
|
VolumeScheduling: {Default: true, PreRelease: utilfeature.GA, LockToDefault: true}, // remove in 1.16
|
2018-11-14 13:01:16 +00:00
|
|
|
CSIPersistentVolume: {Default: true, PreRelease: utilfeature.GA},
|
2018-09-06 22:45:50 +00:00
|
|
|
CSIDriverRegistry: {Default: false, PreRelease: utilfeature.Alpha},
|
|
|
|
CSINodeInfo: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-05-31 21:28:12 +00:00
|
|
|
CustomPodDNS: {Default: true, PreRelease: utilfeature.Beta},
|
2018-10-18 19:11:23 +00:00
|
|
|
BlockVolume: {Default: true, PreRelease: utilfeature.Beta},
|
2018-05-31 21:28:12 +00:00
|
|
|
StorageObjectInUseProtection: {Default: true, PreRelease: utilfeature.GA},
|
2018-11-08 18:44:24 +00:00
|
|
|
ResourceLimitsPriorityFunction: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-05-31 21:28:12 +00:00
|
|
|
SupportIPVSProxyMode: {Default: true, PreRelease: utilfeature.GA},
|
2018-12-15 08:21:53 +00:00
|
|
|
SupportPodPidsLimit: {Default: true, PreRelease: utilfeature.Beta},
|
2018-05-31 21:28:12 +00:00
|
|
|
HyperVContainer: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-08-31 17:34:09 +00:00
|
|
|
ScheduleDaemonSetPods: {Default: true, PreRelease: utilfeature.Beta},
|
2018-08-13 19:13:39 +00:00
|
|
|
TokenRequest: {Default: true, PreRelease: utilfeature.Beta},
|
|
|
|
TokenRequestProjection: {Default: true, PreRelease: utilfeature.Beta},
|
2018-11-02 20:22:55 +00:00
|
|
|
BoundServiceAccountTokenVolume: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-05-31 21:28:12 +00:00
|
|
|
CRIContainerLogRotation: {Default: true, PreRelease: utilfeature.Beta},
|
2018-11-06 01:15:33 +00:00
|
|
|
GCERegionalPersistentDisk: {Default: true, PreRelease: utilfeature.GA},
|
2019-01-17 19:56:58 +00:00
|
|
|
CSIMigration: {Default: false, PreRelease: utilfeature.Alpha},
|
|
|
|
CSIMigrationGCE: {Default: false, PreRelease: utilfeature.Alpha},
|
|
|
|
CSIMigrationAWS: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-05-31 21:28:12 +00:00
|
|
|
RunAsGroup: {Default: false, PreRelease: utilfeature.Alpha},
|
|
|
|
VolumeSubpath: {Default: true, PreRelease: utilfeature.GA},
|
|
|
|
BalanceAttachedNodeVolumes: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-08-14 22:35:57 +00:00
|
|
|
PodReadinessGates: {Default: true, PreRelease: utilfeature.Beta},
|
2018-05-31 21:28:12 +00:00
|
|
|
VolumeSubpathEnvExpansion: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-11-02 23:15:18 +00:00
|
|
|
KubeletPluginsWatcher: {Default: true, PreRelease: utilfeature.GA},
|
2018-08-07 13:04:39 +00:00
|
|
|
ResourceQuotaScopeSelectors: {Default: true, PreRelease: utilfeature.Beta},
|
2018-05-09 18:28:53 +00:00
|
|
|
CSIBlockVolume: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-08-22 20:57:07 +00:00
|
|
|
RuntimeClass: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-12-14 13:53:21 +00:00
|
|
|
NodeLease: {Default: true, PreRelease: utilfeature.Beta},
|
2018-08-25 20:26:25 +00:00
|
|
|
SCTPSupport: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-08-21 01:30:34 +00:00
|
|
|
VolumeSnapshotDataSource: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-03-20 19:38:42 +00:00
|
|
|
ProcMountType: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-07-24 22:04:13 +00:00
|
|
|
TTLAfterFinished: {Default: false, PreRelease: utilfeature.Alpha},
|
2018-11-14 02:01:18 +00:00
|
|
|
KubeletPodResources: {Default: false, PreRelease: utilfeature.Alpha},
|
2017-01-20 13:05:41 +00:00
|
|
|
|
|
|
|
// inherited features from generic apiserver, relisted here to get a conflict if it is changed
|
|
|
|
// unintentionally on either side:
|
2017-08-14 16:14:02 +00:00
|
|
|
genericfeatures.StreamingProxyRedirects: {Default: true, PreRelease: utilfeature.Beta},
|
2019-01-04 00:58:07 +00:00
|
|
|
genericfeatures.ValidateProxyRedirects: {Default: true, PreRelease: utilfeature.Beta},
|
2018-07-05 11:57:17 +00:00
|
|
|
genericfeatures.AdvancedAuditing: {Default: true, PreRelease: utilfeature.GA},
|
2018-10-19 02:34:17 +00:00
|
|
|
genericfeatures.DynamicAuditing: {Default: false, PreRelease: utilfeature.Alpha},
|
2017-08-14 16:14:02 +00:00
|
|
|
genericfeatures.APIResponseCompression: {Default: false, PreRelease: utilfeature.Alpha},
|
2017-09-23 19:21:54 +00:00
|
|
|
genericfeatures.APIListChunking: {Default: true, PreRelease: utilfeature.Beta},
|
2018-10-10 22:44:23 +00:00
|
|
|
genericfeatures.DryRun: {Default: true, PreRelease: utilfeature.Beta},
|
2017-08-14 16:14:02 +00:00
|
|
|
|
|
|
|
// inherited features from apiextensions-apiserver, relisted here to get a conflict if it is changed
|
|
|
|
// unintentionally on either side:
|
2018-10-31 18:14:10 +00:00
|
|
|
apiextensionsfeatures.CustomResourceValidation: {Default: true, PreRelease: utilfeature.Beta},
|
|
|
|
apiextensionsfeatures.CustomResourceSubresources: {Default: true, PreRelease: utilfeature.Beta},
|
|
|
|
apiextensionsfeatures.CustomResourceWebhookConversion: {Default: false, PreRelease: utilfeature.Alpha},
|
2017-12-16 04:52:52 +00:00
|
|
|
|
2018-02-09 06:53:53 +00:00
|
|
|
// features that enable backwards compatibility but are scheduled to be removed
|
2018-08-28 13:30:47 +00:00
|
|
|
// ...
|
2017-01-20 13:05:41 +00:00
|
|
|
}
|