Skip to content

Commit b656027

Browse files
committed
Update MaxUnavailableStatefulSet feature gate to beta
Signed-off-by: Heba Elayoty <[email protected]>
1 parent e87a447 commit b656027

8 files changed

Lines changed: 14 additions & 10 deletions

File tree

pkg/apis/apps/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ type RollingUpdateStatefulSetStrategy struct {
101101
// The maximum number of pods that can be unavailable during the update.
102102
// Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
103103
// Absolute number is calculated from percentage by rounding up. This can not be 0.
104-
// Defaults to 1. This field is alpha-level and is only honored by servers that enable the
105-
// MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to
104+
// Defaults to 1. This field is beta-level and is enabled by default. The field applies to all pods in the range 0 to
106105
// Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it
107106
// will be counted towards MaxUnavailable.
107+
// +featureGate=MaxUnavailableStatefulSet
108108
// +optional
109109
MaxUnavailable *intstr.IntOrString
110110
}

pkg/features/kube_features.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,6 +1404,7 @@ var defaultVersionedKubernetesFeatureGates = map[featuregate.Feature]featuregate
14041404

14051405
MaxUnavailableStatefulSet: {
14061406
{Version: version.MustParse("1.24"), Default: false, PreRelease: featuregate.Alpha},
1407+
{Version: version.MustParse("1.35"), Default: true, PreRelease: featuregate.Beta},
14071408
},
14081409

14091410
MemoryManager: {

pkg/generated/openapi/zz_generated.openapi.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/api/apps/v1/generated.proto

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/api/apps/v1/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ type RollingUpdateStatefulSetStrategy struct {
123123
// The maximum number of pods that can be unavailable during the update.
124124
// Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
125125
// Absolute number is calculated from percentage by rounding up. This can not be 0.
126-
// Defaults to 1. This field is alpha-level and is only honored by servers that enable the
127-
// MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to
126+
// Defaults to 1. This field is beta-level and is enabled by default. The field applies to all pods in the range 0 to
128127
// Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it
129128
// will be counted towards MaxUnavailable.
129+
// +featureGate=MaxUnavailableStatefulSet
130130
// +optional
131131
MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"varint,2,opt,name=maxUnavailable"`
132132
}

staging/src/k8s.io/api/apps/v1/types_swagger_doc_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/client-go/applyconfigurations/apps/v1/rollingupdatestatefulsetstrategy.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/compatibility_lifecycle/reference/versioned_feature_list.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,10 @@
957957
lockToDefault: false
958958
preRelease: Alpha
959959
version: "1.24"
960+
- default: true
961+
lockToDefault: false
962+
preRelease: Beta
963+
version: "1.34"
960964
- name: MemoryManager
961965
versionedSpecs:
962966
- default: false

0 commit comments

Comments
 (0)