Skip to content

Commit

Permalink
Allow tenant SA to patch cluster status to report compilation metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
bastjan committed Jun 3, 2024
1 parent 5b9b4dd commit 113ba12
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion role/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ func EnsureRules(role *rbacv1.Role) int {
Verbs: []string{"get"},
Resources: []string{"tenants", "clusters"},
}
role.Rules = append(role.Rules, rule)
statusRule := rbacv1.PolicyRule{
APIGroups: []string{synv1alpha1.GroupVersion.Group},
Verbs: []string{"get", "update", "patch"},
Resources: []string{"clusters/status"},
}
role.Rules = append(role.Rules, rule, statusRule)
i = len(role.Rules) - 1
}

Expand Down

0 comments on commit 113ba12

Please sign in to comment.