mirror of
				https://github.com/prometheus-operator/kube-prometheus.git
				synced 2025-10-31 08:01:32 +01:00 
			
		
		
		
	kube-prometheus: fix addon-resizer role binding
The addon resizer was referring to an incorrect role binding and was unable to access the API. This changes the rolebinding name to refer to the correctly defined rolebinding.
This commit is contained in:
		
							parent
							
								
									c776fa4c48
								
							
						
					
					
						commit
						45076a6a1f
					
				| @ -7,7 +7,7 @@ local roleBinding = k.rbac.v1.roleBinding; | ||||
|           roleBinding.mixin.metadata.withName("kube-state-metrics") + | ||||
|           roleBinding.mixin.metadata.withNamespace(namespace) + | ||||
|           roleBinding.mixin.roleRef.withApiGroup("rbac.authorization.k8s.io") + | ||||
|           roleBinding.mixin.roleRef.withName("kube-state-metrics-addon-resizer") + | ||||
|           roleBinding.mixin.roleRef.withName("kube-state-metrics") + | ||||
|           roleBinding.mixin.roleRef.mixinInstance({kind: "Role"}) + | ||||
|           roleBinding.withSubjects([{kind: "ServiceAccount", name: "kube-state-metrics"}]) | ||||
| } | ||||
|  | ||||
| @ -6,7 +6,7 @@ metadata: | ||||
| roleRef: | ||||
|   apiGroup: rbac.authorization.k8s.io | ||||
|   kind: Role | ||||
|   name: kube-state-metrics-addon-resizer | ||||
|   name: kube-state-metrics | ||||
| subjects: | ||||
| - kind: ServiceAccount | ||||
|   name: kube-state-metrics | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user