mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
apiextensions: promote CustomResourceWebhookConversion to beta
This commit is contained in:
parent
472b9011d5
commit
993eaeccdf
2
api/openapi-spec/swagger.json
generated
2
api/openapi-spec/swagger.json
generated
@ -16340,7 +16340,7 @@
|
|||||||
"type": "array"
|
"type": "array"
|
||||||
},
|
},
|
||||||
"strategy": {
|
"strategy": {
|
||||||
"description": "`strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.",
|
"description": "`strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"webhookClientConfig": {
|
"webhookClientConfig": {
|
||||||
|
@ -531,7 +531,7 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
|
|||||||
// unintentionally on either side:
|
// unintentionally on either side:
|
||||||
apiextensionsfeatures.CustomResourceValidation: {Default: true, PreRelease: featuregate.Beta},
|
apiextensionsfeatures.CustomResourceValidation: {Default: true, PreRelease: featuregate.Beta},
|
||||||
apiextensionsfeatures.CustomResourceSubresources: {Default: true, PreRelease: featuregate.Beta},
|
apiextensionsfeatures.CustomResourceSubresources: {Default: true, PreRelease: featuregate.Beta},
|
||||||
apiextensionsfeatures.CustomResourceWebhookConversion: {Default: false, PreRelease: featuregate.Alpha},
|
apiextensionsfeatures.CustomResourceWebhookConversion: {Default: true, PreRelease: featuregate.Beta},
|
||||||
apiextensionsfeatures.CustomResourcePublishOpenAPI: {Default: true, PreRelease: featuregate.Beta},
|
apiextensionsfeatures.CustomResourcePublishOpenAPI: {Default: true, PreRelease: featuregate.Beta},
|
||||||
apiextensionsfeatures.CustomResourceDefaulting: {Default: false, PreRelease: featuregate.Alpha},
|
apiextensionsfeatures.CustomResourceDefaulting: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
|
|
||||||
|
@ -107,7 +107,8 @@ message CustomResourceColumnDefinition {
|
|||||||
message CustomResourceConversion {
|
message CustomResourceConversion {
|
||||||
// `strategy` specifies the conversion strategy. Allowed values are:
|
// `strategy` specifies the conversion strategy. Allowed values are:
|
||||||
// - `None`: The converter only change the apiVersion and would not touch any other field in the CR.
|
// - `None`: The converter only change the apiVersion and would not touch any other field in the CR.
|
||||||
// - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.
|
// - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
|
||||||
|
// is needed for this option. This requires spec.preserveUnknownFields to be false.
|
||||||
optional string strategy = 1;
|
optional string strategy = 1;
|
||||||
|
|
||||||
// `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
|
// `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is
|
||||||
|
@ -71,7 +71,7 @@ func init() {
|
|||||||
var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{
|
var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{
|
||||||
CustomResourceValidation: {Default: true, PreRelease: featuregate.Beta},
|
CustomResourceValidation: {Default: true, PreRelease: featuregate.Beta},
|
||||||
CustomResourceSubresources: {Default: true, PreRelease: featuregate.Beta},
|
CustomResourceSubresources: {Default: true, PreRelease: featuregate.Beta},
|
||||||
CustomResourceWebhookConversion: {Default: false, PreRelease: featuregate.Alpha},
|
CustomResourceWebhookConversion: {Default: true, PreRelease: featuregate.Beta},
|
||||||
CustomResourcePublishOpenAPI: {Default: true, PreRelease: featuregate.Beta},
|
CustomResourcePublishOpenAPI: {Default: true, PreRelease: featuregate.Beta},
|
||||||
CustomResourceDefaulting: {Default: false, PreRelease: featuregate.Alpha},
|
CustomResourceDefaulting: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user