nvcrectl rbac
nvcrectl rbac print
Writes the RoleBinding that grants the controller write access in one run namespace, for applying with kubectl or committing next to a Certification in GitOps.
The binding is needed only when the chart is installed with rbac.scope: namespaced (ADR-092). Without it, a Workflow in that namespace waits with reason NamespacePermissionsMissing and resumes on its own once the binding exists, or fails if manager.namespaceAccessTimeout (default 10 minutes) runs out first. nvcrectl certification run and nvcrectl workloadrun run create the binding themselves in namespaces they create; this command is for runs that do not go through nvcrectl, and for namespaces that already exist. See RBAC requirements.
Nothing is read from the cluster. The manifest is built by the same code nvcrectl uses when it creates the binding, so the role and binding names cannot drift between the two.
Flags
The defaults match nvcrectl setup init, which installs Helm release nvcre in namespace nvcre. A release with another name or namespace has another ServiceAccount: copy it from the subject of kubectl get clusterrolebinding nvcre-manager-rolebinding -o yaml, or from the message of a waiting Workflow, which names it.
Examples
Output:
Delete the binding only after the Certification or WorkloadRun that needed it is fully deleted: the controller’s finalizers write in the namespace until then.