Skip to content

OpenShift readiness gate Role lacks operators.coreos.com RBAC to read CSV #1532

Description

@yuanchen8911

Summary

The OpenShift readiness gate asserts that an operator's ClusterServiceVersion (CSV) reaches phase: Succeeded, but the generated gate Role does not grant access to operators.coreos.com resources — so the gate Job hits an RBAC-forbidden error and cannot read the CSV it is supposed to wait on.

Evidence

  • The OCP OLM readiness check reads the CSV: recipes/components/gpu-operator-ocp-olm/readiness.yaml asserts on ClusterServiceVersion (operators.coreos.com).
  • The generated gate role omits that API group: pkg/bundler/gatemanifest/manifest.go grants only apiGroups: ["", "apps", "batch", "nvidia.com", "apiextensions.k8s.io"] — no operators.coreos.com.

Result: on OCP, --readiness-hooks gates fail with clusterserviceversions.operators.coreos.com is forbidden.

Fix

Add operators.coreos.com (verb get/list/watch on clusterserviceversions) to the generated gate Role when the readiness assertion targets OLM resources.

Docs (#1528) caveat the OCP readiness gate pending this fix.

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions