diff --git a/cmd/kubeadm/app/master/manifests.go b/cmd/kubeadm/app/master/manifests.go index db82c7c30dd..24cfeca6afb 100644 --- a/cmd/kubeadm/app/master/manifests.go +++ b/cmd/kubeadm/app/master/manifests.go @@ -220,7 +220,7 @@ func componentPod(container api.Container, volumes ...api.Volume) api.Pod { func getComponentCommand(component string, s *kubeadmapi.KubeadmConfig) (command []string) { baseFlags := map[string][]string{ - apiServer: []string{ + apiServer: { "--address=127.0.0.1", "--etcd-servers=http://127.0.0.1:2379", "--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,ResourceQuota", @@ -233,7 +233,7 @@ func getComponentCommand(component string, s *kubeadmapi.KubeadmConfig) (command "--secure-port=443", "--allow-privileged", }, - controllerManager: []string{ + controllerManager: { // TODO(phase1+): consider adding --address=127.0.0.1 in order to not expose the cm port to the rest of the world "--leader-elect", "--master=127.0.0.1:8080", @@ -244,12 +244,12 @@ func getComponentCommand(component string, s *kubeadmapi.KubeadmConfig) (command "--cluster-signing-key-file=" + pkiDir + "/ca-key.pem", "--insecure-experimental-approve-all-kubelet-csrs-for-group=system:kubelet-bootstrap", }, - scheduler: []string{ + scheduler: { // TODO(phase1+): consider adding --address=127.0.0.1 in order to not expose the scheduler port to the rest of the world "--leader-elect", "--master=127.0.0.1:8080", }, - proxy: []string{}, + proxy: {}, } if s.EnvParams["hyperkube_image"] != "" { diff --git a/hack/.linted_packages b/hack/.linted_packages index 3fd57c57f7e..caeb063b662 100644 --- a/hack/.linted_packages +++ b/hack/.linted_packages @@ -15,6 +15,7 @@ cmd/kube-discovery cmd/kube-dns cmd/kube-proxy cmd/kubeadm +cmd/kubeadm cmd/kubectl cmd/kubelet cmd/kubernetes-discovery @@ -243,4 +244,3 @@ test/integration/openshift test/soak/cauldron test/soak/serve_hostnames third_party/forked/golang/expansion -cmd/kubeadm