mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-24 11:01:26 +00:00
kubeadm: Expose only the cluster-info ConfigMap in the kube-public ns
This commit is contained in:
parent
637cc0a8ba
commit
037c9e8965
@ -105,7 +105,7 @@ func createRoles(clientset *clientset.Clientset) error {
|
|||||||
Namespace: metav1.NamespacePublic,
|
Namespace: metav1.NamespacePublic,
|
||||||
},
|
},
|
||||||
Rules: []rbac.PolicyRule{
|
Rules: []rbac.PolicyRule{
|
||||||
rbachelper.NewRule("get").Groups("").Resources("configmaps").RuleOrDie(),
|
rbachelper.NewRule("get").Groups("").Resources("configmaps").Names("cluster-info").RuleOrDie(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user