mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	remove heapster rule from system:controller:horizontal-pod-autoscaler clusterrole
This commit is contained in:
		@@ -233,8 +233,6 @@ func buildControllerRoles() ([]rbacv1.ClusterRole, []rbacv1.ClusterRoleBinding)
 | 
				
			|||||||
			rbacv1helpers.NewRule("update").Groups(autoscalingGroup).Resources("horizontalpodautoscalers/status").RuleOrDie(),
 | 
								rbacv1helpers.NewRule("update").Groups(autoscalingGroup).Resources("horizontalpodautoscalers/status").RuleOrDie(),
 | 
				
			||||||
			rbacv1helpers.NewRule("get", "update").Groups("*").Resources("*/scale").RuleOrDie(),
 | 
								rbacv1helpers.NewRule("get", "update").Groups("*").Resources("*/scale").RuleOrDie(),
 | 
				
			||||||
			rbacv1helpers.NewRule("list").Groups(legacyGroup).Resources("pods").RuleOrDie(),
 | 
								rbacv1helpers.NewRule("list").Groups(legacyGroup).Resources("pods").RuleOrDie(),
 | 
				
			||||||
			// TODO: restrict this to the appropriate namespace
 | 
					 | 
				
			||||||
			rbacv1helpers.NewRule("get").Groups(legacyGroup).Resources("services/proxy").Names("https:heapster:", "http:heapster:").RuleOrDie(),
 | 
					 | 
				
			||||||
			// allow listing resource, custom, and external metrics
 | 
								// allow listing resource, custom, and external metrics
 | 
				
			||||||
			rbacv1helpers.NewRule("list").Groups(resMetricsGroup).Resources("pods").RuleOrDie(),
 | 
								rbacv1helpers.NewRule("list").Groups(resMetricsGroup).Resources("pods").RuleOrDie(),
 | 
				
			||||||
			rbacv1helpers.NewRule("get", "list").Groups(customMetricsGroup).Resources("*").RuleOrDie(),
 | 
								rbacv1helpers.NewRule("get", "list").Groups(customMetricsGroup).Resources("*").RuleOrDie(),
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -749,15 +749,6 @@ items:
 | 
				
			|||||||
    - pods
 | 
					    - pods
 | 
				
			||||||
    verbs:
 | 
					    verbs:
 | 
				
			||||||
    - list
 | 
					    - list
 | 
				
			||||||
  - apiGroups:
 | 
					 | 
				
			||||||
    - ""
 | 
					 | 
				
			||||||
    resourceNames:
 | 
					 | 
				
			||||||
    - 'http:heapster:'
 | 
					 | 
				
			||||||
    - 'https:heapster:'
 | 
					 | 
				
			||||||
    resources:
 | 
					 | 
				
			||||||
    - services/proxy
 | 
					 | 
				
			||||||
    verbs:
 | 
					 | 
				
			||||||
    - get
 | 
					 | 
				
			||||||
  - apiGroups:
 | 
					  - apiGroups:
 | 
				
			||||||
    - metrics.k8s.io
 | 
					    - metrics.k8s.io
 | 
				
			||||||
    resources:
 | 
					    resources:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user