Skip to content

Commit

Permalink
kubeadm: Expose only the cluster-info ConfigMap in the kube-public ns
Browse files Browse the repository at this point in the history
  • Loading branch information
luxas committed Jun 26, 2017
1 parent 637cc0a commit 037c9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kubeadm/app/phases/apiconfig/clusterroles.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func createRoles(clientset *clientset.Clientset) error {
Namespace: metav1.NamespacePublic,
},
Rules: []rbac.PolicyRule{
rbachelper.NewRule("get").Groups("").Resources("configmaps").RuleOrDie(),
rbachelper.NewRule("get").Groups("").Resources("configmaps").Names("cluster-info").RuleOrDie(),
},
},
}
Expand Down

0 comments on commit 037c9e8

Please sign in to comment.