Skip to content

Commit bc7aa13

Browse files
committed
Mark StructuredAuthenticationConfiguration feature gate as beta
Signed-off-by: Monis Khan <[email protected]>
1 parent 74adc0b commit bc7aa13

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

pkg/features/kube_features.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
12431243

12441244
genericfeatures.StorageVersionHash: {Default: true, PreRelease: featuregate.Beta},
12451245

1246-
genericfeatures.StructuredAuthenticationConfiguration: {Default: false, PreRelease: featuregate.Alpha},
1246+
genericfeatures.StructuredAuthenticationConfiguration: {Default: true, PreRelease: featuregate.Beta},
12471247

12481248
genericfeatures.StructuredAuthorizationConfiguration: {Default: true, PreRelease: featuregate.Beta},
12491249

pkg/kubeapiserver/options/authentication_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ func TestAuthenticationValidate(t *testing.T) {
214214
expectErr: "number of webhook retry attempts must be greater than 0, but is: 0",
215215
},
216216
{
217-
name: "test when authentication config file is set without feature gate",
217+
name: "test when authentication config file is set (feature gate enabled by default)",
218218
testAuthenticationConfigFile: "configfile",
219-
expectErr: "set --feature-gates=StructuredAuthenticationConfiguration=true to use authentication-config file",
219+
expectErr: "",
220220
},
221221
{
222222
name: "test when authentication config file and oidc-* flags are set",

staging/src/k8s.io/apiserver/pkg/features/kube_features.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ const (
234234
// owner: @aramase, @enj, @nabokihms
235235
// kep: https://kep.k8s.io/3331
236236
// alpha: v1.29
237+
// beta: v1.30
237238
//
238239
// Enables Structured Authentication Configuration
239240
StructuredAuthenticationConfiguration featuregate.Feature = "StructuredAuthenticationConfiguration"
@@ -337,7 +338,7 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
337338

338339
StorageVersionHash: {Default: true, PreRelease: featuregate.Beta},
339340

340-
StructuredAuthenticationConfiguration: {Default: false, PreRelease: featuregate.Alpha},
341+
StructuredAuthenticationConfiguration: {Default: true, PreRelease: featuregate.Beta},
341342

342343
StructuredAuthorizationConfiguration: {Default: true, PreRelease: featuregate.Beta},
343344

0 commit comments

Comments
 (0)