Skip to content
Snippets Groups Projects
Unverified Commit c6338cbb authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub
Browse files

Merge pull request #76720 from xichengliudui/constant-block

Using const() defines constants together
parents 367f1353 5cb91e5a
No related branches found
No related tags found
No related merge requests found
...@@ -84,8 +84,10 @@ import ( ...@@ -84,8 +84,10 @@ import (
"k8s.io/kubernetes/plugin/pkg/auth/authenticator/token/bootstrap" "k8s.io/kubernetes/plugin/pkg/auth/authenticator/token/bootstrap"
) )
const etcdRetryLimit = 60 const (
const etcdRetryInterval = 1 * time.Second etcdRetryLimit = 60
etcdRetryInterval = 1 * time.Second
)
// NewAPIServerCommand creates a *cobra.Command object with default parameters // NewAPIServerCommand creates a *cobra.Command object with default parameters
func NewAPIServerCommand() *cobra.Command { func NewAPIServerCommand() *cobra.Command {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment