From fa73cacc5d4d2250f3ea8fe519bcbb0a02309b28 Mon Sep 17 00:00:00 2001 From: Lingfei Kong Date: Mon, 25 May 2020 15:04:01 +0800 Subject: [PATCH] fix the wrong function description --- .../k8s.io/apiserver/pkg/server/options/server_run_options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/apiserver/pkg/server/options/server_run_options.go b/staging/src/k8s.io/apiserver/pkg/server/options/server_run_options.go index 346364b5c79..35295c13726 100644 --- a/staging/src/k8s.io/apiserver/pkg/server/options/server_run_options.go +++ b/staging/src/k8s.io/apiserver/pkg/server/options/server_run_options.go @@ -69,7 +69,7 @@ func NewServerRunOptions() *ServerRunOptions { } } -// ApplyOptions applies the run options to the method receiver and returns self +// ApplyTo applies the run options to the method receiver and returns self func (s *ServerRunOptions) ApplyTo(c *server.Config) error { c.CorsAllowedOriginList = s.CorsAllowedOriginList c.ExternalAddress = s.ExternalHost