(name string, config *gpuv1.ClusterPolicySpec)
| 452 | } |
| 453 | |
| 454 | func isRBACEnabled(name string, config *gpuv1.ClusterPolicySpec) bool { |
| 455 | gate, ok := rbacGates[name] |
| 456 | if !ok { |
| 457 | return true |
| 458 | } |
| 459 | return gate(config) |
| 460 | } |
| 461 | |
| 462 | // ClusterRole creates ClusterRole resource |
| 463 | func ClusterRole(n ClusterPolicyController) (gpuv1.State, error) { |
no outgoing calls
no test coverage detected