mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Allow service controller role to patch service status
Co-authored-by: Josh Horwitz <horwitzja@gmail.com>
This commit is contained in:
		@@ -297,7 +297,7 @@ func buildControllerRoles() ([]rbacv1.ClusterRole, []rbacv1.ClusterRoleBinding)
 | 
			
		||||
		ObjectMeta: metav1.ObjectMeta{Name: saRolePrefix + "service-controller"},
 | 
			
		||||
		Rules: []rbacv1.PolicyRule{
 | 
			
		||||
			rbacv1helpers.NewRule("get", "list", "watch").Groups(legacyGroup).Resources("services").RuleOrDie(),
 | 
			
		||||
			rbacv1helpers.NewRule("update").Groups(legacyGroup).Resources("services/status").RuleOrDie(),
 | 
			
		||||
			rbacv1helpers.NewRule("patch", "update").Groups(legacyGroup).Resources("services/status").RuleOrDie(),
 | 
			
		||||
			rbacv1helpers.NewRule("list", "watch").Groups(legacyGroup).Resources("nodes").RuleOrDie(),
 | 
			
		||||
			eventsRule(),
 | 
			
		||||
		},
 | 
			
		||||
 
 | 
			
		||||
@@ -1117,6 +1117,7 @@ items:
 | 
			
		||||
    resources:
 | 
			
		||||
    - services/status
 | 
			
		||||
    verbs:
 | 
			
		||||
    - patch
 | 
			
		||||
    - update
 | 
			
		||||
  - apiGroups:
 | 
			
		||||
    - ""
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user