[cherry-pick: release-v0.81.x] fix(operatorhub): hide TektonDashboard from OpenShift Provided APIs - #3979
Merged
tekton-robot merged 1 commit intoAug 25, 2026
Conversation
TektonDashboard is Kubernetes-only. Commit e18041d moved the tektondashboards CRD into the shared config/base to satisfy kustomize's path restrictions, which caused the OpenShift bundle to start shipping it. OLM then advertised it as a Provided API in the OpenShift console Provided APIs list. Fix with two complementary layers: 1. Add a kustomize patch in config/openshift/base that marks tektondashboards CRD with config.kubernetes.io/local-config, which causes kustomize to drop it from the OpenShift build output entirely. Verified: kustomize build produces 0 matches for tektondashboards on OpenShift, and still 3 on Kubernetes. 2. Add tektondashboards.operator.tekton.dev to internal-objects in all OpenShift CSV templates so OLM hides it from the console even if the CRD appears in a bundle built via the release-manifest strategy (which bypasses kustomize overlays). Signed-off-by: Jawed khelil <jkhelil@redhat.com> Assisted-by: Claude Sonnet 4.6 (via Cursor) Co-authored-by: Cursor <cursoragent@cursor.com>
4 tasks
Contributor
|
/lgtm |
Contributor
Author
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pratap0007 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Member
|
/retest |
1 similar comment
Member
|
/retest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a cherry-pick of #3978
Changes
TektonDashboardis Kubernetes-only, but commit e18041d moved thetektondashboardsCRD into the sharedconfig/baseto satisfy kustomize's path restrictions. This caused the OpenShift bundle to start shipping it, and OLM began advertising it as a Provided API in the OpenShift console.This fix applies two complementary layers:
1. Kustomize exclusion (
config/openshift/base/kustomization.yaml)Adds a patch that sets
config.kubernetes.io/local-config: "true"on thetektondashboardsCRD, causing kustomize to drop it from the OpenShift build output entirely. Verified:kustomize build config/openshift/overlays/operatorhub→ 0 matches fortektondashboardskustomize build config/kubernetes/overlays/operatorhub→ still includes it (3 matches)2. OLM internal-objects safety net (OpenShift CSV templates)
Adds
tektondashboards.operator.tekton.devto theoperators.operatorframework.io/internal-objectsannotation so OLM hides it from the console even if the CRD ends up in a bundle built via therelease-manifeststrategy, which uses a pre-builtrelease.yamland bypasses kustomize overlays.Submitter Checklist
make test lintbefore submitting a PRRelease Notes
Made with Cursor