- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for toApplyPolicyRules (0.2 sec)
-
pkg/controller/clusterroleaggregation/clusterroleaggregation_controller.go
return err } func (c *ClusterRoleAggregationController) applyClusterRoles(ctx context.Context, name string, newPolicyRules []rbacv1.PolicyRule) error { clusterRoleApply := rbacv1ac.ClusterRole(name). WithRules(toApplyPolicyRules(newPolicyRules)...) opts := metav1.ApplyOptions{FieldManager: "clusterrole-aggregation-controller", Force: true} _, err := c.clusterRoleClient.ClusterRoles().Apply(ctx, clusterRoleApply, opts) return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 8K bytes - Viewed (0)