From 008018b0805e7c392e7d9125a3e11eb7bc0041ec Mon Sep 17 00:00:00 2001 From: jennybuckley Date: Wed, 12 Sep 2018 14:43:18 -0700 Subject: [PATCH] fix typo in dry run disabled error Kubernetes-commit: 5253c7f414a686e8bcf721655b7ffe26e81765b4 --- pkg/endpoints/handlers/create.go | 2 +- pkg/endpoints/handlers/delete.go | 4 ++-- pkg/endpoints/handlers/patch.go | 2 +- pkg/endpoints/handlers/update.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/endpoints/handlers/create.go b/pkg/endpoints/handlers/create.go index 5b3f02344..e40e4288a 100644 --- a/pkg/endpoints/handlers/create.go +++ b/pkg/endpoints/handlers/create.go @@ -47,7 +47,7 @@ func createHandler(r rest.NamedCreater, scope RequestScope, admit admission.Inte defer trace.LogIfLong(500 * time.Millisecond) if isDryRun(req.URL) && !utilfeature.DefaultFeatureGate.Enabled(features.DryRun) { - scope.err(errors.NewBadRequest("dryRun is not supported yet"), w, req) + scope.err(errors.NewBadRequest("the dryRun alpha feature is disabled"), w, req) return } diff --git a/pkg/endpoints/handlers/delete.go b/pkg/endpoints/handlers/delete.go index 369e06e35..ff35fa9dd 100644 --- a/pkg/endpoints/handlers/delete.go +++ b/pkg/endpoints/handlers/delete.go @@ -47,7 +47,7 @@ func DeleteResource(r rest.GracefulDeleter, allowsOptions bool, scope RequestSco defer trace.LogIfLong(500 * time.Millisecond) if isDryRun(req.URL) && !utilfeature.DefaultFeatureGate.Enabled(features.DryRun) { - scope.err(errors.NewBadRequest("dryRun is not supported yet"), w, req) + scope.err(errors.NewBadRequest("the dryRun alpha feature is disabled"), w, req) return } @@ -183,7 +183,7 @@ func DeleteResource(r rest.GracefulDeleter, allowsOptions bool, scope RequestSco func DeleteCollection(r rest.CollectionDeleter, checkBody bool, scope RequestScope, admit admission.Interface) http.HandlerFunc { return func(w http.ResponseWriter, req *http.Request) { if isDryRun(req.URL) && !utilfeature.DefaultFeatureGate.Enabled(features.DryRun) { - scope.err(errors.NewBadRequest("dryRun is not supported yet"), w, req) + scope.err(errors.NewBadRequest("the dryRun alpha feature is disabled"), w, req) return } diff --git a/pkg/endpoints/handlers/patch.go b/pkg/endpoints/handlers/patch.go index fbd6d9ae1..b6b9958df 100644 --- a/pkg/endpoints/handlers/patch.go +++ b/pkg/endpoints/handlers/patch.go @@ -55,7 +55,7 @@ func PatchResource(r rest.Patcher, scope RequestScope, admit admission.Interface defer trace.LogIfLong(500 * time.Millisecond) if isDryRun(req.URL) && !utilfeature.DefaultFeatureGate.Enabled(features.DryRun) { - scope.err(errors.NewBadRequest("dryRun is not supported yet"), w, req) + scope.err(errors.NewBadRequest("the dryRun alpha feature is disabled"), w, req) return } diff --git a/pkg/endpoints/handlers/update.go b/pkg/endpoints/handlers/update.go index fc3534660..19d23e1f2 100644 --- a/pkg/endpoints/handlers/update.go +++ b/pkg/endpoints/handlers/update.go @@ -49,7 +49,7 @@ func UpdateResource(r rest.Updater, scope RequestScope, admit admission.Interfac defer trace.LogIfLong(500 * time.Millisecond) if isDryRun(req.URL) && !utilfeature.DefaultFeatureGate.Enabled(features.DryRun) { - scope.err(errors.NewBadRequest("dryRun is not supported yet"), w, req) + scope.err(errors.NewBadRequest("the dryRun alpha feature is disabled"), w, req) return }