Skip to content

tekton-catalog: publish custom docker-build-oci-ta pipeline bundle#50

Open
Odilhao wants to merge 2 commits into
developfrom
issue-47-docker-build-oci-ta-bundle
Open

tekton-catalog: publish custom docker-build-oci-ta pipeline bundle#50
Odilhao wants to merge 2 commits into
developfrom
issue-47-docker-build-oci-ta-bundle

Conversation

@Odilhao
Copy link
Copy Markdown
Member

@Odilhao Odilhao commented May 27, 2026

Closes #47 (long-term fix).

Summary

  • Adds tekton-catalog/pipelines/docker-build-oci-ta/ with a kustomization that fetches the upstream Konflux build pipeline and applies two patches:
    • Redirects build-container to our task-buildah-oci-ta bundle (quay.io/foreman/tekton-catalog/task-buildah-oci-ta:0.9) to get the higher memory/CPU limits that prevent OOM on large Foreman images.
    • Sets build-source-image default to "true" (upstream default is "false"), required for production Quay pushes.
  • Extends publish-pipeline-bundle.yml to build and push pipeline-docker-build-oci-ta to quay.io/foreman/tekton-catalog/pipeline-docker-build-oci-ta. The bundle is rebuilt when:
    • tekton-catalog/pipelines/docker-build-oci-ta/** changes (explicit patch update).
    • tekton-catalog/tasks/buildah-oci-ta/** changes (cascade — pipeline embeds a task bundle ref).
    • Weekly on Monday 06:00 UTC (picks up upstream docker-build-oci-ta changes automatically).
  • Updates push-bundles.sh to include the new pipeline for local testing.
  • Documents the tenants-config annotation change needed to activate the bundle in CLAUDE.md.

Next step (separate tenants-config MR)

Once the bundle is published, update every Foreman component annotation in tenants-config:

# Change from:
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-oci-ta","bundle":"latest"}'

# To:
build.appstudio.openshift.io/pipeline: '{"name":"docker-build-oci-ta","bundle":"quay.io/foreman/tekton-catalog/pipeline-docker-build-oci-ta:latest"}'
build.appstudio.openshift.io/request: "configure-pac"

Test plan

  • kustomize build tekton-catalog/pipelines/docker-build-oci-ta/ renders cleanly with patched taskRef and build-source-image: "true"
  • kustomize build tekton-catalog/pipelines/ renders both pipelines
  • yamllint . passes
  • Merge to develop → confirm pipeline-docker-build-oci-ta bundle appears in quay.io/foreman/tekton-catalog

🤖 Generated with Claude Code

Odilhao and others added 2 commits May 27, 2026 08:41
…ssue #47)

Add a custom docker-build-oci-ta pipeline bundle that embeds two overrides
relative to the upstream Konflux build pipeline:
- Redirects build-container to our task-buildah-oci-ta bundle (higher
  memory/CPU limits to prevent OOM on large Foreman images).
- Sets build-source-image default to "true" (upstream default is "false"),
  required for production Quay pushes.

The CI workflow publishes the bundle to
quay.io/foreman/tekton-catalog/pipeline-docker-build-oci-ta and rebuilds it
automatically when task-buildah-oci-ta changes or on a weekly schedule to
pick up upstream docker-build-oci-ta changes.

Once the bundle is live, point the component annotation in tenants-config at
our bundle so Konflux auto-generates .tekton files without manual patching.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Add two kustomize-build CI checks that fail if the upstream pipeline
reorders params or tasks and our index-based patches land on the wrong
entry:
- build-source-image default must be "true" (not upstream "false")
- build-container taskRef must use the bundles resolver pointing to
  quay.io/foreman/tekton-catalog/task-buildah-oci-ta

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: update buildah-oci-ta bundle in versioned .tekton files after each branch registration

1 participant