mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
Merge pull request #113942 from mengjiao-liu/remove-feature-gate-expansion
Remove volume expansion feature gates
This commit is contained in:
commit
3d3a180713
2
api/openapi-spec/swagger.json
generated
2
api/openapi-spec/swagger.json
generated
@ -4147,7 +4147,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"controllerExpandSecretRef": {
|
"controllerExpandSecretRef": {
|
||||||
"$ref": "#/definitions/io.k8s.api.core.v1.SecretReference",
|
"$ref": "#/definitions/io.k8s.api.core.v1.SecretReference",
|
||||||
"description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an beta field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
|
"description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
|
||||||
},
|
},
|
||||||
"controllerPublishSecretRef": {
|
"controllerPublishSecretRef": {
|
||||||
"$ref": "#/definitions/io.k8s.api.core.v1.SecretReference",
|
"$ref": "#/definitions/io.k8s.api.core.v1.SecretReference",
|
||||||
|
@ -422,7 +422,7 @@
|
|||||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference"
|
"$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an beta field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
|
"description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
|
||||||
},
|
},
|
||||||
"controllerPublishSecretRef": {
|
"controllerPublishSecretRef": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
|
@ -101,7 +101,7 @@
|
|||||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference"
|
"$ref": "#/components/schemas/io.k8s.api.core.v1.SecretReference"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an beta field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
|
"description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed."
|
||||||
},
|
},
|
||||||
"controllerPublishSecretRef": {
|
"controllerPublishSecretRef": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
|
@ -1741,7 +1741,6 @@ type CSIPersistentVolumeSource struct {
|
|||||||
// ControllerExpandSecretRef is a reference to the secret object containing
|
// ControllerExpandSecretRef is a reference to the secret object containing
|
||||||
// sensitive information to pass to the CSI driver to complete the CSI
|
// sensitive information to pass to the CSI driver to complete the CSI
|
||||||
// ControllerExpandVolume call.
|
// ControllerExpandVolume call.
|
||||||
// This is an beta field and requires enabling ExpandCSIVolumes feature gate.
|
|
||||||
// This field is optional, and may be empty if no secret is required. If the
|
// This field is optional, and may be empty if no secret is required. If the
|
||||||
// secret object contains more than one secret, all secrets are passed.
|
// secret object contains more than one secret, all secrets are passed.
|
||||||
// +optional
|
// +optional
|
||||||
|
@ -285,25 +285,6 @@ const (
|
|||||||
// Lock to default and remove after v1.22 based on user feedback that should be reflected in KEP #1972 update
|
// Lock to default and remove after v1.22 based on user feedback that should be reflected in KEP #1972 update
|
||||||
ExecProbeTimeout featuregate.Feature = "ExecProbeTimeout"
|
ExecProbeTimeout featuregate.Feature = "ExecProbeTimeout"
|
||||||
|
|
||||||
// owner: @gnufied
|
|
||||||
// alpha: v1.14
|
|
||||||
// beta: v1.16
|
|
||||||
// GA: 1.24
|
|
||||||
// Ability to expand CSI volumes
|
|
||||||
ExpandCSIVolumes featuregate.Feature = "ExpandCSIVolumes"
|
|
||||||
|
|
||||||
// owner: @mlmhl @gnufied
|
|
||||||
// beta: v1.15
|
|
||||||
// GA: 1.24
|
|
||||||
// Ability to expand persistent volumes' file system without unmounting volumes.
|
|
||||||
ExpandInUsePersistentVolumes featuregate.Feature = "ExpandInUsePersistentVolumes"
|
|
||||||
|
|
||||||
// owner: @gnufied
|
|
||||||
// beta: v1.11
|
|
||||||
// GA: 1.24
|
|
||||||
// Ability to Expand persistent volumes
|
|
||||||
ExpandPersistentVolumes featuregate.Feature = "ExpandPersistentVolumes"
|
|
||||||
|
|
||||||
// owner: @gjkim42
|
// owner: @gjkim42
|
||||||
// kep: https://kep.k8s.io/2595
|
// kep: https://kep.k8s.io/2595
|
||||||
// alpha: v1.22
|
// alpha: v1.22
|
||||||
@ -925,12 +906,6 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
|
|||||||
|
|
||||||
ExecProbeTimeout: {Default: true, PreRelease: featuregate.GA}, // lock to default and remove after v1.22 based on KEP #1972 update
|
ExecProbeTimeout: {Default: true, PreRelease: featuregate.GA}, // lock to default and remove after v1.22 based on KEP #1972 update
|
||||||
|
|
||||||
ExpandCSIVolumes: {Default: true, PreRelease: featuregate.GA}, // remove in 1.26
|
|
||||||
|
|
||||||
ExpandInUsePersistentVolumes: {Default: true, PreRelease: featuregate.GA}, // remove in 1.26
|
|
||||||
|
|
||||||
ExpandPersistentVolumes: {Default: true, PreRelease: featuregate.GA}, // remove in 1.26
|
|
||||||
|
|
||||||
ExpandedDNSConfig: {Default: true, PreRelease: featuregate.Beta},
|
ExpandedDNSConfig: {Default: true, PreRelease: featuregate.Beta},
|
||||||
|
|
||||||
ExperimentalHostUserNamespaceDefaultingGate: {Default: false, PreRelease: featuregate.Beta},
|
ExperimentalHostUserNamespaceDefaultingGate: {Default: false, PreRelease: featuregate.Beta},
|
||||||
|
2
pkg/generated/openapi/zz_generated.openapi.go
generated
2
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -16066,7 +16066,7 @@ func schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref common.ReferenceCall
|
|||||||
},
|
},
|
||||||
"controllerExpandSecretRef": {
|
"controllerExpandSecretRef": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an beta field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
|
Description: "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
|
||||||
Ref: ref("k8s.io/api/core/v1.SecretReference"),
|
Ref: ref("k8s.io/api/core/v1.SecretReference"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -220,7 +220,6 @@ message CSIPersistentVolumeSource {
|
|||||||
// controllerExpandSecretRef is a reference to the secret object containing
|
// controllerExpandSecretRef is a reference to the secret object containing
|
||||||
// sensitive information to pass to the CSI driver to complete the CSI
|
// sensitive information to pass to the CSI driver to complete the CSI
|
||||||
// ControllerExpandVolume call.
|
// ControllerExpandVolume call.
|
||||||
// This is an beta field and requires enabling ExpandCSIVolumes feature gate.
|
|
||||||
// This field is optional, and may be empty if no secret is required. If the
|
// This field is optional, and may be empty if no secret is required. If the
|
||||||
// secret object contains more than one secret, all secrets are passed.
|
// secret object contains more than one secret, all secrets are passed.
|
||||||
// +optional
|
// +optional
|
||||||
|
@ -1826,7 +1826,6 @@ type CSIPersistentVolumeSource struct {
|
|||||||
// controllerExpandSecretRef is a reference to the secret object containing
|
// controllerExpandSecretRef is a reference to the secret object containing
|
||||||
// sensitive information to pass to the CSI driver to complete the CSI
|
// sensitive information to pass to the CSI driver to complete the CSI
|
||||||
// ControllerExpandVolume call.
|
// ControllerExpandVolume call.
|
||||||
// This is an beta field and requires enabling ExpandCSIVolumes feature gate.
|
|
||||||
// This field is optional, and may be empty if no secret is required. If the
|
// This field is optional, and may be empty if no secret is required. If the
|
||||||
// secret object contains more than one secret, all secrets are passed.
|
// secret object contains more than one secret, all secrets are passed.
|
||||||
// +optional
|
// +optional
|
||||||
|
@ -126,7 +126,7 @@ var map_CSIPersistentVolumeSource = map[string]string{
|
|||||||
"controllerPublishSecretRef": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
|
"controllerPublishSecretRef": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
|
||||||
"nodeStageSecretRef": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
|
"nodeStageSecretRef": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
|
||||||
"nodePublishSecretRef": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
|
"nodePublishSecretRef": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
|
||||||
"controllerExpandSecretRef": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an beta field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
|
"controllerExpandSecretRef": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
|
||||||
"nodeExpandSecretRef": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is an alpha field and requires enabling CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
|
"nodeExpandSecretRef": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is an alpha field and requires enabling CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed.",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -524,7 +524,6 @@ func TestNodeAuthorizer(t *testing.T) {
|
|||||||
// re-create a pod as an admin to add object references
|
// re-create a pod as an admin to add object references
|
||||||
expectAllowed(t, createNode2NormalPod(superuserClient))
|
expectAllowed(t, createNode2NormalPod(superuserClient))
|
||||||
|
|
||||||
// ExpandPersistentVolumes feature enabled
|
|
||||||
expectForbidden(t, updatePVCCapacity(node1Client))
|
expectForbidden(t, updatePVCCapacity(node1Client))
|
||||||
expectAllowed(t, updatePVCCapacity(node2Client))
|
expectAllowed(t, updatePVCCapacity(node2Client))
|
||||||
expectForbidden(t, updatePVCPhase(node2Client))
|
expectForbidden(t, updatePVCPhase(node2Client))
|
||||||
|
Loading…
Reference in New Issue
Block a user