@@ -234,8 +233,7 @@ func (s *SchedulerServer) addCoreFlags(fs *pflag.FlagSet) {
...
@@ -234,8 +233,7 @@ func (s *SchedulerServer) addCoreFlags(fs *pflag.FlagSet) {
fs.BoolVar(&s.enableProfiling,"profiling",s.enableProfiling,"Enable profiling via web interface host:port/debug/pprof/")
fs.BoolVar(&s.enableProfiling,"profiling",s.enableProfiling,"Enable profiling via web interface host:port/debug/pprof/")
fs.StringSliceVar(&s.apiServerList,"api-servers",s.apiServerList,"List of Kubernetes API servers for publishing events, and reading pods and services. (ip:port), comma separated.")
fs.StringSliceVar(&s.apiServerList,"api-servers",s.apiServerList,"List of Kubernetes API servers for publishing events, and reading pods and services. (ip:port), comma separated.")
fs.StringVar(&s.authPath,"auth-path",s.authPath,"Path to .kubernetes_auth file, specifying how to authenticate to API server.")
fs.StringVar(&s.authPath,"auth-path",s.authPath,"Path to .kubernetes_auth file, specifying how to authenticate to API server.")
fs.StringSliceVar(&s.etcdServerList,"etcd-servers",s.etcdServerList,"List of etcd servers to watch (http://ip:port), comma separated. Mutually exclusive with --etcd-config")
fs.StringSliceVar(&s.etcdServerList,"etcd-servers",s.etcdServerList,"List of etcd servers to watch (http://ip:port), comma separated.")
fs.StringVar(&s.etcdConfigFile,"etcd-config",s.etcdConfigFile,"The config file for the etcd client. Mutually exclusive with --etcd-servers.")
fs.BoolVar(&s.allowPrivileged,"allow-privileged",s.allowPrivileged,"Enable privileged containers in the kubelet (compare the same flag in the apiserver).")
fs.BoolVar(&s.allowPrivileged,"allow-privileged",s.allowPrivileged,"Enable privileged containers in the kubelet (compare the same flag in the apiserver).")
fs.StringVar(&s.clusterDomain,"cluster-domain",s.clusterDomain,"Domain for this cluster. If set, kubelet will configure all containers to search this domain in addition to the host's search domains")
fs.StringVar(&s.clusterDomain,"cluster-domain",s.clusterDomain,"Domain for this cluster. If set, kubelet will configure all containers to search this domain in addition to the host's search domains")
fs.IPVar(&s.clusterDNS,"cluster-dns",s.clusterDNS,"IP address for a cluster DNS server. If set, kubelet will configure all containers to use this for DNS resolution in addition to the host's DNS servers")
fs.IPVar(&s.clusterDNS,"cluster-dns",s.clusterDNS,"IP address for a cluster DNS server. If set, kubelet will configure all containers to use this for DNS resolution in addition to the host's DNS servers")
...
@@ -640,16 +638,14 @@ func validateLeadershipTransition(desired, current string) {
...
@@ -640,16 +638,14 @@ func validateLeadershipTransition(desired, current string) {
}
}
// hacked from https://github.com/GoogleCloudPlatform/kubernetes/blob/release-0.14/cmd/kube-apiserver/app/server.go
// hacked from https://github.com/GoogleCloudPlatform/kubernetes/blob/release-0.14/cmd/kube-apiserver/app/server.go