From 52ec1da081ccd94f23f444b7be0d29c343dc2cdc Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Thu, 8 May 2025 14:43:24 +0200 Subject: [PATCH] Add comment describing the feature gate with a link to KEP Signed-off-by: Maciej Szulik Kubernetes-commit: 9e3a1b0a9081ab49bbc44c415525dce862eb6a12 --- pkg/cmd/util/helpers.go | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/util/helpers.go b/pkg/cmd/util/helpers.go index e978841cd..2857d5a14 100644 --- a/pkg/cmd/util/helpers.go +++ b/pkg/cmd/util/helpers.go @@ -425,12 +425,36 @@ func GetPodRunningTimeoutFlag(cmd *cobra.Command) (time.Duration, error) { type FeatureGate string const ( - ApplySet FeatureGate = "KUBECTL_APPLYSET" - OpenAPIV3Patch FeatureGate = "KUBECTL_OPENAPIV3_PATCH" + // owner: @soltysh + // kep: https://kep.k8s.io/859 + // + // HTTP headers with command name and flags used. CmdHeaders FeatureGate = "KUBECTL_COMMAND_HEADERS" + + // owner: @ardaguclu + // kep: https://kep.k8s.io/3104 + // + // Separate kubectl user preferences. + KubeRC FeatureGate = "KUBECTL_KUBERC" + + // owner: @soltysh + // kep: https://kep.k8s.io/3515 + // + // Improved kubectl apply --prune behavior. + OpenAPIV3Patch FeatureGate = "KUBECTL_OPENAPIV3_PATCH" + + // owner: @justinb + // kep: https://kep.k8s.io/3659 + // + // Improved kubectl apply --prune behavior. + ApplySet FeatureGate = "KUBECTL_APPLYSET" + + // owner: @seans + // kep: https://kep.k8s.io/4006 + // + // Transition to WebSockets. RemoteCommandWebsockets FeatureGate = "KUBECTL_REMOTE_COMMAND_WEBSOCKETS" PortForwardWebsockets FeatureGate = "KUBECTL_PORT_FORWARD_WEBSOCKETS" - KubeRC FeatureGate = "KUBECTL_KUBERC" ) // IsEnabled returns true iff environment variable is set to true.