Merge pull request #119286 from ardaguclu/remove-openapiv3-alpha-env
Remove KUBECTL_EXPLAIN_OPENAPIV3 environment variable
This commit is contained in:
		@@ -76,8 +76,7 @@ type ExplainOptions struct {
 | 
				
			|||||||
	Mapper meta.RESTMapper
 | 
						Mapper meta.RESTMapper
 | 
				
			||||||
	Schema openapi.Resources
 | 
						Schema openapi.Resources
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Name of the template to use with the openapiv3 template renderer. If
 | 
						// Name of the template to use with the openapiv3 template renderer.
 | 
				
			||||||
	// `EnableOpenAPIV3` is disabled, this does nothing
 | 
					 | 
				
			||||||
	OutputFormat string
 | 
						OutputFormat string
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Client capable of fetching openapi documents from the user's cluster
 | 
						// Client capable of fetching openapi documents from the user's cluster
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -185,9 +185,7 @@ func TestExplainOpenAPIV3(t *testing.T) {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	cases = append(cases, explainV2Cases...)
 | 
						cases = append(cases, explainV2Cases...)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	cmdtesting.WithAlphaEnvs([]cmdutil.FeatureGate{cmdutil.ExplainOpenapiV3}, t, func(t *testing.T) {
 | 
					 | 
				
			||||||
	runExplainTestCases(t, cases)
 | 
						runExplainTestCases(t, cases)
 | 
				
			||||||
	})
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func runExplainTestCases(t *testing.T, cases []explainTestCase) {
 | 
					func runExplainTestCases(t *testing.T, cases []explainTestCase) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -426,7 +426,6 @@ type FeatureGate string
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const (
 | 
					const (
 | 
				
			||||||
	ApplySet              FeatureGate = "KUBECTL_APPLYSET"
 | 
						ApplySet              FeatureGate = "KUBECTL_APPLYSET"
 | 
				
			||||||
	ExplainOpenapiV3      FeatureGate = "KUBECTL_EXPLAIN_OPENAPIV3"
 | 
					 | 
				
			||||||
	CmdPluginAsSubcommand FeatureGate = "KUBECTL_ENABLE_CMD_SHADOW"
 | 
						CmdPluginAsSubcommand FeatureGate = "KUBECTL_ENABLE_CMD_SHADOW"
 | 
				
			||||||
	InteractiveDelete     FeatureGate = "KUBECTL_INTERACTIVE_DELETE"
 | 
						InteractiveDelete     FeatureGate = "KUBECTL_INTERACTIVE_DELETE"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user