@@ -146,8 +146,11 @@ const (
146
146
// FrontProxyClientCertCommonName defines front proxy certificate common name
147
147
FrontProxyClientCertCommonName = "front-proxy-client" //used as subject.commonname attribute (CN)
148
148
149
- // AdminKubeConfigFileName defines name for the kubeconfig aimed to be used by the superuser/ admin of the cluster
149
+ // AdminKubeConfigFileName defines name for the kubeconfig aimed to be used by the admin of the cluster
150
150
AdminKubeConfigFileName = "admin.conf"
151
+ // SuperAdminKubeConfigFileName defines name for the kubeconfig aimed to be used by the super-admin of the cluster
152
+ SuperAdminKubeConfigFileName = "super-admin.conf"
153
+
151
154
// KubeletBootstrapKubeConfigFileName defines the file name for the kubeconfig that the kubelet will use to do
152
155
// the TLS bootstrap to get itself an unique credential
153
156
KubeletBootstrapKubeConfigFileName = "bootstrap-kubelet.conf"
@@ -201,6 +204,10 @@ const (
201
204
NodeAutoApproveBootstrapClusterRoleBinding = "kubeadm:node-autoapprove-bootstrap"
202
205
// NodeAutoApproveCertificateRotationClusterRoleBinding defines name of the ClusterRoleBinding that makes the csrapprover approve node auto rotated CSRs
203
206
NodeAutoApproveCertificateRotationClusterRoleBinding = "kubeadm:node-autoapprove-certificate-rotation"
207
+ // ClusterAdminsGroupAndClusterRoleBinding is the name of the Group used for kubeadm generated cluster
208
+ // admin credentials and the name of the ClusterRoleBinding that binds the same Group to the "cluster-admin"
209
+ // built-in ClusterRole.
210
+ ClusterAdminsGroupAndClusterRoleBinding = "kubeadm:cluster-admins"
204
211
205
212
// APICallRetryInterval defines how long kubeadm should wait before retrying a failed API operation
206
213
APICallRetryInterval = 500 * time .Millisecond
@@ -567,6 +574,11 @@ func GetAdminKubeConfigPath() string {
567
574
return filepath .Join (KubernetesDir , AdminKubeConfigFileName )
568
575
}
569
576
577
+ // GetSuperAdminKubeConfigPath returns the location on the disk where admin kubeconfig is located by default
578
+ func GetSuperAdminKubeConfigPath () string {
579
+ return filepath .Join (KubernetesDir , SuperAdminKubeConfigFileName )
580
+ }
581
+
570
582
// GetBootstrapKubeletKubeConfigPath returns the location on the disk where bootstrap kubelet kubeconfig is located by default
571
583
func GetBootstrapKubeletKubeConfigPath () string {
572
584
return filepath .Join (KubernetesDir , KubeletBootstrapKubeConfigFileName )
0 commit comments