From f0281f38ec9a8b872c6f9f8b683e7f3a2dfb54ed Mon Sep 17 00:00:00 2001 From: willise Date: Fri, 10 Jan 2020 14:01:06 +0800 Subject: [PATCH] fix: typos in comments of admission Kubernetes-commit: e8b5658bd11384d2796f9512f6edb95c632a0a59 --- pkg/server/options/admission.go | 2 +- pkg/storage/interfaces.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/server/options/admission.go b/pkg/server/options/admission.go index 5e8dc3aef..765e2ad2b 100644 --- a/pkg/server/options/admission.go +++ b/pkg/server/options/admission.go @@ -112,7 +112,7 @@ func (a *AdmissionOptions) AddFlags(fs *pflag.FlagSet) { } // ApplyTo adds the admission chain to the server configuration. -// In case admission plugin names were not provided by a custer-admin they will be prepared from the recommended/default values. +// In case admission plugin names were not provided by a cluster-admin they will be prepared from the recommended/default values. // In addition the method lazily initializes a generic plugin that is appended to the list of pluginInitializers // note this method uses: // genericconfig.Authorizer diff --git a/pkg/storage/interfaces.go b/pkg/storage/interfaces.go index f3ca36118..7e8ae5241 100644 --- a/pkg/storage/interfaces.go +++ b/pkg/storage/interfaces.go @@ -218,7 +218,7 @@ type Interface interface { // err := s.GuaranteedUpdate( // "myKey", &MyType{}, true, // func(input runtime.Object, res ResponseMeta) (runtime.Object, *uint64, error) { - // // Before each incovation of the user defined function, "input" is reset to + // // Before each invocation of the user defined function, "input" is reset to // // current contents for "myKey" in database. // curr := input.(*MyType) // Guaranteed to succeed. //