mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Allow controller manager to list/watch CSRs
This commit is contained in:
		@@ -279,13 +279,23 @@ func ClusterRoles() []rbac.ClusterRole {
 | 
				
			|||||||
				rbac.NewRule("get").Groups(legacyGroup).Resources("endpoints", "namespaces", "serviceaccounts").RuleOrDie(),
 | 
									rbac.NewRule("get").Groups(legacyGroup).Resources("endpoints", "namespaces", "serviceaccounts").RuleOrDie(),
 | 
				
			||||||
				rbac.NewRule("update").Groups(legacyGroup).Resources("endpoints", "serviceaccounts").RuleOrDie(),
 | 
									rbac.NewRule("update").Groups(legacyGroup).Resources("endpoints", "serviceaccounts").RuleOrDie(),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				rbac.NewRule("list", "watch").Groups("*").Resources("namespaces", "nodes", "persistentvolumeclaims",
 | 
									rbac.NewRule("list", "watch").Groups(legacyGroup).Resources(
 | 
				
			||||||
					"persistentvolumes", "pods", "secrets", "services", "serviceaccounts", "replicationcontrollers").RuleOrDie(),
 | 
										"namespaces",
 | 
				
			||||||
 | 
										"nodes",
 | 
				
			||||||
 | 
										"persistentvolumeclaims",
 | 
				
			||||||
 | 
										"persistentvolumes",
 | 
				
			||||||
 | 
										"pods",
 | 
				
			||||||
 | 
										"secrets",
 | 
				
			||||||
 | 
										"services",
 | 
				
			||||||
 | 
										"serviceaccounts",
 | 
				
			||||||
 | 
										"replicationcontrollers",
 | 
				
			||||||
 | 
									).RuleOrDie(),
 | 
				
			||||||
				rbac.NewRule("list", "watch").Groups(extensionsGroup).Resources("daemonsets", "deployments", "replicasets").RuleOrDie(),
 | 
									rbac.NewRule("list", "watch").Groups(extensionsGroup).Resources("daemonsets", "deployments", "replicasets").RuleOrDie(),
 | 
				
			||||||
				rbac.NewRule("list", "watch").Groups(batchGroup).Resources("jobs", "cronjobs").RuleOrDie(),
 | 
									rbac.NewRule("list", "watch").Groups(batchGroup).Resources("jobs", "cronjobs").RuleOrDie(),
 | 
				
			||||||
				rbac.NewRule("list", "watch").Groups(appsGroup).Resources("statefulsets").RuleOrDie(),
 | 
									rbac.NewRule("list", "watch").Groups(appsGroup).Resources("statefulsets").RuleOrDie(),
 | 
				
			||||||
				rbac.NewRule("list", "watch").Groups(policyGroup).Resources("poddisruptionbudgets").RuleOrDie(),
 | 
									rbac.NewRule("list", "watch").Groups(policyGroup).Resources("poddisruptionbudgets").RuleOrDie(),
 | 
				
			||||||
				rbac.NewRule("list", "watch").Groups(autoscalingGroup).Resources("horizontalpodautoscalers").RuleOrDie(),
 | 
									rbac.NewRule("list", "watch").Groups(autoscalingGroup).Resources("horizontalpodautoscalers").RuleOrDie(),
 | 
				
			||||||
 | 
									rbac.NewRule("list", "watch").Groups(certificatesGroup).Resources("certificatesigningrequests").RuleOrDie(),
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -444,7 +444,7 @@ items:
 | 
				
			|||||||
    verbs:
 | 
					    verbs:
 | 
				
			||||||
    - update
 | 
					    - update
 | 
				
			||||||
  - apiGroups:
 | 
					  - apiGroups:
 | 
				
			||||||
    - '*'
 | 
					    - ""
 | 
				
			||||||
    resources:
 | 
					    resources:
 | 
				
			||||||
    - namespaces
 | 
					    - namespaces
 | 
				
			||||||
    - nodes
 | 
					    - nodes
 | 
				
			||||||
@@ -496,6 +496,13 @@ items:
 | 
				
			|||||||
    verbs:
 | 
					    verbs:
 | 
				
			||||||
    - list
 | 
					    - list
 | 
				
			||||||
    - watch
 | 
					    - watch
 | 
				
			||||||
 | 
					  - apiGroups:
 | 
				
			||||||
 | 
					    - certificates.k8s.io
 | 
				
			||||||
 | 
					    resources:
 | 
				
			||||||
 | 
					    - certificatesigningrequests
 | 
				
			||||||
 | 
					    verbs:
 | 
				
			||||||
 | 
					    - list
 | 
				
			||||||
 | 
					    - watch
 | 
				
			||||||
- apiVersion: rbac.authorization.k8s.io/v1beta1
 | 
					- apiVersion: rbac.authorization.k8s.io/v1beta1
 | 
				
			||||||
  kind: ClusterRole
 | 
					  kind: ClusterRole
 | 
				
			||||||
  metadata:
 | 
					  metadata:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user