Skip to content

[cherry-pick: release-v0.81.x] fix(operatorhub): exclude TektonAddon CRD from Kubernetes bundle - #3993

Open
tekton-robot wants to merge 1 commit into
release-v0.81.xfrom
cherry-pick-3980-to-release-v0.81.x
Open

[cherry-pick: release-v0.81.x] fix(operatorhub): exclude TektonAddon CRD from Kubernetes bundle#3993
tekton-robot wants to merge 1 commit into
release-v0.81.xfrom
cherry-pick-3980-to-release-v0.81.x

Conversation

@tekton-robot

Copy link
Copy Markdown
Contributor

This is a cherry-pick of #3980


Changes

TektonAddon is OpenShift-only. Commit e4f5c9d moved the tektonaddons CRD into the shared config/base to satisfy kustomize's path restrictions, which caused the Kubernetes bundle to start shipping it. OLM would then advertise it as a Provided API in the Kubernetes OperatorHub console.

This is the symmetric counterpart to #3978, which excluded tektondashboards (Kubernetes-only) from the OpenShift bundle. Both issues were introduced by the same commit.

Fix: Add a kustomize patch in config/kubernetes/base/kustomization.yaml that sets config.kubernetes.io/local-config: "true" on the tektonaddons CRD, causing kustomize to drop it from the Kubernetes build output entirely.

Verified:

  • kustomize build config/kubernetes/overlays/operatorhubtektonaddons appears in RBAC rules only, no CRD object emitted
  • kustomize build config/openshift/overlays/operatorhubtektonaddons CRD still present (correct)

Submitter Checklist

Release Notes

Fix TektonAddon appearing as a Provided API in the Kubernetes OperatorHub console. The CRD is now excluded from the Kubernetes bundle via a kustomize patch (TektonAddon is OpenShift-only).

Made with Cursor

@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Aug 26, 2026
@tekton-robot

Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign enarha after the PR has been reviewed.
You can assign the PR to them by writing /assign @enarha in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 26, 2026
TektonAddon is OpenShift-only. Commit e4f5c9d moved the tektonaddons
CRD into the shared config/base to satisfy kustomize path restrictions,
which caused the Kubernetes bundle to start shipping it. OLM would then
advertise it as a Provided API in the Kubernetes OperatorHub console.

Add a kustomize patch in config/kubernetes/base that marks tektonaddons
CRD with config.kubernetes.io/local-config, causing kustomize to drop
it from the Kubernetes build output entirely.

Verified: kustomize build config/kubernetes/overlays/operatorhub
produces no CRD object for tektonaddons (RBAC rules only), while
tektonaddons CRD remains present in the OpenShift build.

This is the symmetric counterpart to the OpenShift fix in #3978, which
excluded tektondashboards (Kubernetes-only) from the OpenShift bundle.

Signed-off-by: Jawed khelil <jkhelil@redhat.com>
Assisted-by: Claude Sonnet 4.6 (via Cursor)
Co-authored-by: Cursor <cursoragent@cursor.com>
@tekton-robot
tekton-robot force-pushed the cherry-pick-3980-to-release-v0.81.x branch from 4f0ccf4 to a680fa4 Compare August 26, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants