From 5cb91e5ae3d09a765d2380dd88c60a6bb06993b5 Mon Sep 17 00:00:00 2001 From: aaa <1693291525@qq.com> Date: Thu, 11 Apr 2019 11:18:03 -0400 Subject: [PATCH] Using const() defines constants together Signed-off-by: aaa <1693291525@qq.com> update pull request Signed-off-by: xichengliudui <1693291525@qq.com> update pull request Signed-off-by: xichengliudui <1693291525@qq.com> update pull request Signed-off-by: xichengliudui <1693291525@qq.com> update pull request Signed-off-by: xichengliudui <1693291525@qq.com> update pull request Signed-off-by: xichengliudui <1693291525@qq.com> update pull request Signed-off-by: aaa <1693291525@qq.com> update pull request reset marshal.go --- cmd/kube-apiserver/app/server.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/kube-apiserver/app/server.go b/cmd/kube-apiserver/app/server.go index 43d3d8f1a54..b0c9a2d9774 100644 --- a/cmd/kube-apiserver/app/server.go +++ b/cmd/kube-apiserver/app/server.go @@ -84,8 +84,10 @@ import ( "k8s.io/kubernetes/plugin/pkg/auth/authenticator/token/bootstrap" ) -const etcdRetryLimit = 60 -const etcdRetryInterval = 1 * time.Second +const ( + etcdRetryLimit = 60 + etcdRetryInterval = 1 * time.Second +) // NewAPIServerCommand creates a *cobra.Command object with default parameters func NewAPIServerCommand(stopCh <-chan struct{}) *cobra.Command {