MCPcopy Create free account
hub / github.com/NVIDIA/gpu-operator / isRBACEnabled

Function isRBACEnabled

controllers/object_controls.go:454–460  ·  view source on GitHub ↗
(name string, config *gpuv1.ClusterPolicySpec)

Source from the content-addressed store, hash-verified

452}
453
454func 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
463func ClusterRole(n ClusterPolicyController) (gpuv1.State, error) {

Callers 2

ClusterRoleFunction · 0.85
ClusterRoleBindingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected