Skip to content

Commit 0360e4d

Browse files
committed
Promote Immutable Secrets/ConfigMaps feature to Beta
1 parent 5655350 commit 0360e4d

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

pkg/apis/core/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4780,7 +4780,7 @@ type Secret struct {
47804780

47814781
// Immutable field, if set, ensures that data stored in the Secret cannot
47824782
// be updated (only object metadata can be modified).
4783-
// This is an alpha field enabled by ImmutableEphemeralVolumes feature gate.
4783+
// This is a beta field enabled by ImmutableEphemeralVolumes feature gate.
47844784
// +optional
47854785
Immutable *bool
47864786

@@ -4908,7 +4908,7 @@ type ConfigMap struct {
49084908

49094909
// Immutable field, if set, ensures that data stored in the ConfigMap cannot
49104910
// be updated (only object metadata can be modified).
4911-
// This is an alpha field enabled by ImmutableEphemeralVolumes feature gate.
4911+
// This is a beta field enabled by ImmutableEphemeralVolumes feature gate.
49124912
// +optional
49134913
Immutable *bool
49144914

pkg/features/kube_features.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ const (
543543

544544
// owner: @wojtek-t
545545
// alpha: v1.18
546+
// beta: v1.19
546547
//
547548
// Enables a feature to make secrets and configmaps data immutable.
548549
ImmutableEphemeralVolumes featuregate.Feature = "ImmutableEphemeralVolumes"
@@ -657,7 +658,7 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
657658
PodDisruptionBudget: {Default: true, PreRelease: featuregate.Beta},
658659
ServiceTopology: {Default: false, PreRelease: featuregate.Alpha},
659660
ServiceAppProtocol: {Default: true, PreRelease: featuregate.Beta},
660-
ImmutableEphemeralVolumes: {Default: false, PreRelease: featuregate.Alpha},
661+
ImmutableEphemeralVolumes: {Default: true, PreRelease: featuregate.Beta},
661662
DefaultIngressClass: {Default: true, PreRelease: featuregate.Beta},
662663
HugePageStorageMediumSize: {Default: false, PreRelease: featuregate.Alpha},
663664
ExternalPolicyForExternalIP: {Default: false, PreRelease: featuregate.GA}, // remove in 1.19

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5495,7 +5495,7 @@ type Secret struct {
54955495
// be updated (only object metadata can be modified).
54965496
// If not set to true, the field can be modified at any time.
54975497
// Defaulted to nil.
5498-
// This is an alpha field enabled by ImmutableEphemeralVolumes feature gate.
5498+
// This is a beta field enabled by ImmutableEphemeralVolumes feature gate.
54995499
// +optional
55005500
Immutable *bool `json:"immutable,omitempty" protobuf:"varint,5,opt,name=immutable"`
55015501

@@ -5636,7 +5636,7 @@ type ConfigMap struct {
56365636
// be updated (only object metadata can be modified).
56375637
// If not set to true, the field can be modified at any time.
56385638
// Defaulted to nil.
5639-
// This is an alpha field enabled by ImmutableEphemeralVolumes feature gate.
5639+
// This is a beta field enabled by ImmutableEphemeralVolumes feature gate.
56405640
// +optional
56415641
Immutable *bool `json:"immutable,omitempty" protobuf:"varint,4,opt,name=immutable"`
56425642

test/e2e/common/configmap_volume.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ var _ = ginkgo.Describe("[sig-storage] ConfigMap", func() {
554554

555555
// It should be forbidden to change data for configmaps marked as immutable, but
556556
// allowed to modify its metadata independently of its state.
557-
ginkgo.It("should be immutable if `immutable` field is set [Feature:ImmutableEphemeralVolume]", func() {
557+
ginkgo.It("should be immutable if `immutable` field is set", func() {
558558
name := "immutable"
559559
configMap := newConfigMap(f, name)
560560

test/e2e/common/secrets_volume.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ var _ = ginkgo.Describe("[sig-storage] Secrets", func() {
372372

373373
// It should be forbidden to change data for secrets marked as immutable, but
374374
// allowed to modify its metadata independently of its state.
375-
ginkgo.It("should be immutable if `immutable` field is set [Feature:ImmutableEphemeralVolume]", func() {
375+
ginkgo.It("should be immutable if `immutable` field is set", func() {
376376
name := "immutable"
377377
secret := secretForTest(f.Namespace.Name, name)
378378

0 commit comments

Comments
 (0)