Skip to content

Commit 1eaa0ee

Browse files
committed
Minor nit in error message about feature gate stage
Signed-off-by: ialidzhikov <[email protected]>
1 parent 09cb73a commit 1eaa0ee

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

staging/src/k8s.io/apiserver/pkg/endpoints/handlers/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func createHandler(r rest.NamedCreater, scope *RequestScope, admit admission.Int
5050
defer trace.LogIfLong(500 * time.Millisecond)
5151

5252
if isDryRun(req.URL) && !utilfeature.DefaultFeatureGate.Enabled(features.DryRun) {
53-
scope.err(errors.NewBadRequest("the dryRun alpha feature is disabled"), w, req)
53+
scope.err(errors.NewBadRequest("the dryRun feature is disabled"), w, req)
5454
return
5555
}
5656

staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func DeleteResource(r rest.GracefulDeleter, allowsOptions bool, scope *RequestSc
4949
defer trace.LogIfLong(500 * time.Millisecond)
5050

5151
if isDryRun(req.URL) && !utilfeature.DefaultFeatureGate.Enabled(features.DryRun) {
52-
scope.err(errors.NewBadRequest("the dryRun alpha feature is disabled"), w, req)
52+
scope.err(errors.NewBadRequest("the dryRun feature is disabled"), w, req)
5353
return
5454
}
5555

@@ -167,7 +167,7 @@ func DeleteCollection(r rest.CollectionDeleter, checkBody bool, scope *RequestSc
167167
defer trace.LogIfLong(500 * time.Millisecond)
168168

169169
if isDryRun(req.URL) && !utilfeature.DefaultFeatureGate.Enabled(features.DryRun) {
170-
scope.err(errors.NewBadRequest("the dryRun alpha feature is disabled"), w, req)
170+
scope.err(errors.NewBadRequest("the dryRun feature is disabled"), w, req)
171171
return
172172
}
173173

staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func PatchResource(r rest.Patcher, scope *RequestScope, admit admission.Interfac
6363
defer trace.LogIfLong(500 * time.Millisecond)
6464

6565
if isDryRun(req.URL) && !utilfeature.DefaultFeatureGate.Enabled(features.DryRun) {
66-
scope.err(errors.NewBadRequest("the dryRun alpha feature is disabled"), w, req)
66+
scope.err(errors.NewBadRequest("the dryRun feature is disabled"), w, req)
6767
return
6868
}
6969

staging/src/k8s.io/apiserver/pkg/endpoints/handlers/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func UpdateResource(r rest.Updater, scope *RequestScope, admit admission.Interfa
4949
defer trace.LogIfLong(500 * time.Millisecond)
5050

5151
if isDryRun(req.URL) && !utilfeature.DefaultFeatureGate.Enabled(features.DryRun) {
52-
scope.err(errors.NewBadRequest("the dryRun alpha feature is disabled"), w, req)
52+
scope.err(errors.NewBadRequest("the dryRun feature is disabled"), w, req)
5353
return
5454
}
5555

0 commit comments

Comments
 (0)