1 /* 2 Copyright 2024 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 features 18 19 const ( 20 // Every feature gate should add method here following this template: 21 // 22 // // owner: @username 23 // // alpha: v1.4 24 // MyFeature featuregate.Feature = "MyFeature" 25 // 26 // Feature gates should be listed in alphabetical, case-sensitive 27 // (upper before any lower case character) order. This reduces the risk 28 // of code conflicts because changes are more likely to be scattered 29 // across the file. 30 31 // owner: @p0lyn0mial 32 // beta: v1.30 33 // 34 // Allow the client to get a stream of individual items instead of chunking from the server. 35 // 36 // NOTE: 37 // The feature is disabled in Beta by default because 38 // it will only be turned on for selected control plane component(s). 39 WatchListClient Feature = "WatchListClient" 40 41 // owner: @nilekhc 42 // alpha: v1.30 43 InformerResourceVersion Feature = "InformerResourceVersion" 44 ) 45 46 // defaultKubernetesFeatureGates consists of all known Kubernetes-specific feature keys. 47 // 48 // To add a new feature, define a key for it above and add it here. 49 // After registering with the binary, the features are, by default, controllable using environment variables. 50 // For more details, please see envVarFeatureGates implementation. 51 var defaultKubernetesFeatureGates = map[Feature]FeatureSpec{ 52 WatchListClient: {Default: false, PreRelease: Beta}, 53 InformerResourceVersion: {Default: false, PreRelease: Alpha}, 54 } 55