From f0d0e2a089cf8104114c48f07597ab7e43851308 Mon Sep 17 00:00:00 2001 From: Avesh Agarwal Date: Tue, 1 Sep 2015 14:32:38 -0400 Subject: [PATCH] Remove unused api-rate and api-burst params. --- cmd/kube-apiserver/app/server.go | 6 ------ docs/admin/kube-apiserver.md | 2 -- hack/verify-flags/known-flags.txt | 2 -- 3 files changed, 10 deletions(-) diff --git a/cmd/kube-apiserver/app/server.go b/cmd/kube-apiserver/app/server.go index 954d11364d9..8dd7c0631a2 100644 --- a/cmd/kube-apiserver/app/server.go +++ b/cmd/kube-apiserver/app/server.go @@ -68,8 +68,6 @@ type APIServer struct { AdvertiseAddress net.IP SecurePort int ExternalHost string - APIRate float32 - APIBurst int TLSCertFile string TLSPrivateKeyFile string CertDirectory string @@ -122,8 +120,6 @@ func NewAPIServer() *APIServer { InsecureBindAddress: net.ParseIP("127.0.0.1"), BindAddress: net.ParseIP("0.0.0.0"), SecurePort: 6443, - APIRate: 10.0, - APIBurst: 200, APIPrefix: "/api", ExpAPIPrefix: "/experimental", EventTTL: 1 * time.Hour, @@ -176,8 +172,6 @@ func (s *APIServer) AddFlags(fs *pflag.FlagSet) { fs.IntVar(&s.SecurePort, "secure-port", s.SecurePort, ""+ "The port on which to serve HTTPS with authentication and authorization. If 0, "+ "don't serve HTTPS at all.") - fs.Float32Var(&s.APIRate, "api-rate", s.APIRate, "API rate limit as QPS for the read only port") - fs.IntVar(&s.APIBurst, "api-burst", s.APIBurst, "API burst amount for the read only port") fs.StringVar(&s.TLSCertFile, "tls-cert-file", s.TLSCertFile, ""+ "File containing x509 Certificate for HTTPS. (CA cert, if any, concatenated after server cert). "+ "If HTTPS serving is enabled, and --tls-cert-file and --tls-private-key-file are not provided, "+ diff --git a/docs/admin/kube-apiserver.md b/docs/admin/kube-apiserver.md index 4396f23e671..342de9490b6 100644 --- a/docs/admin/kube-apiserver.md +++ b/docs/admin/kube-apiserver.md @@ -52,9 +52,7 @@ cluster's shared state through which all other components interact. --admission-control-config-file="": File with admission control configuration. --advertise-address=: The IP address on which to advertise the apiserver to members of the cluster. This address must be reachable by the rest of the cluster. If blank, the --bind-address will be used. If --bind-address is unspecified, the host's default interface will be used. --allow-privileged=false: If true, allow privileged containers. - --api-burst=0: API burst amount for the read only port --api-prefix="": The prefix for API requests on the server. Default '/api'. - --api-rate=0: API rate limit as QPS for the read only port --authorization-mode="": Selects how to do authorization on the secure port. One of: AlwaysAllow,AlwaysDeny,ABAC --authorization-policy-file="": File with authorization policy in csv format, used with --authorization-mode=ABAC, on the secure port. --basic-auth-file="": If set, the file that will be used to admit requests to the secure port of the API server via http basic authentication. diff --git a/hack/verify-flags/known-flags.txt b/hack/verify-flags/known-flags.txt index 71a9127a3ce..8061a257baa 100644 --- a/hack/verify-flags/known-flags.txt +++ b/hack/verify-flags/known-flags.txt @@ -8,9 +8,7 @@ algorithm-provider all-namespaces allocate-node-cidrs allow-privileged -api-burst api-prefix -api-rate api-servers api-token api-version