-
Bug
-
Resolution: Done-Errata
-
Critical
-
None
-
4.16
-
None
-
No
-
Builds Sprint #5
-
1
-
Proposed
-
False
-
-
-
Bug Fix
-
Done
Description of problem:
When a cluster is deployed with no capabilities enabled, and the Build capability is later enabled, it's related cluster configuration CRD is not installed. This prevents admins from fine-tuning builds and ocm-o from fully reconciling its state.
Version-Release number of selected component (if applicable):
4.16.0
How reproducible:
Always
Steps to Reproduce:
1. Launch a cluster with no capabilities enabled (via cluster-bot: launch 4.16.0.0-ci aws,no-capabilities 2. Edit the clusterversion to enable the build capability: oc patch clusterversion/version --type merge -p '{"spec":{"capabilities":{"additionalEnabledCapabilities":["Build"]}}}' 3. Wait for the openshift-apiserver and openshift-controller-manager to roll out
Actual results:
APIs for BuildConfig (build.openshift.io) are enabled. Cluster configuration API for build system is not: $ oc api-resources | grep "build" buildconfigs bc build.openshift.io/v1 true BuildConfig builds build.openshift.io/v1 true Build
Expected results:
Cluster configuration API is enabled. $ oc api-resources | grep "build" buildconfigs bc build.openshift.io/v1 true BuildConfig builds build.openshift.io/v1 true Build builds config.openshift.io/v1 true Build
Additional info:
This causes list errors in openshift-controller-manager-operator, breaking the controller that reconciles state for builds and the image registry. W0523 18:23:38.551022 1 reflector.go:539] k8s.io/client-go@v0.29.0/tools/cache/reflector.go:229: failed to list *v1.Build: the server could not find the requested resource (get builds.config.openshift.io) E0523 18:23:38.551334 1 reflector.go:147] k8s.io/client-go@v0.29.0/tools/cache/reflector.go:229: Failed to watch *v1.Build: failed to list *v1.Build: the server could not find the requested resource (get builds.config.openshift.io)
- relates to
-
OCPBUGS-34077 Default Rolebindings Created on OCP 4.16 with No Capabilities
- Closed
- links to
-
RHEA-2024:3718 OpenShift Container Platform 4.17.z bug fix update