Konflux Resource Deployment
Konflux resources for RPM packages are split across three repositories:
- rpms: Per-package resources generated from package directories
- infrastructure: Application-level resources and deployment to the Konflux cluster
- konflux-release-data (releng-managed): ReleasePlanAdmissions and the release policy,
deployed to the
rhtap-releng-tenantnamespace
This separation allows independent iteration on each concern.
Deployment Matrix
| Resource Type | Source | RPMs MR | RPMs Push | Infra MR | Infra Push |
|---|---|---|---|---|---|
| Component | rpms | manual | manual | - | - |
| ImageRepository | rpms | manual | manual | - | - |
| ReleasePlanAdmission | rpms → konflux-release-data | - | sync MR | - | - |
| IntegrationTestScenario | rpms | - | automatic | manual | automatic |
| Application | infrastructure | - | - | manual | automatic |
| ReleasePlan | infrastructure | - | - | manual | automatic |
| Secret | infrastructure | - | - | manual | automatic |
Legend:
- RPMs MR: Downstream pipeline triggered from rpms MR (deploys from MR commit)
- RPMs Push: Downstream pipeline triggered from rpms push to main
- Infra MR: Infrastructure MR pipeline (manual trigger)
- Infra Push: Infrastructure push to main or web pipeline
ReleasePlanAdmission follows a separate path: on push to main, the sync_releng downstream job
syncs the rendered releng/ files into the konflux-release-data repository via an auto-merged
sync MR, and releng deploys them from there to rhtap-releng-tenant.
Resource Locations and Rationale
RPMs Repo
Resources are defined in konflux-templates/ and rendered to konflux-templates/rendered.yml.
Component and ImageRepository:
- Ownership: Components are managed by the rpms repo. The infrastructure pipeline uses
ONLY_DOWNSTREAMso only explicit downstream triggers from rpms deploy changes, giving the rpms repo full control over the component lifecycle. - Dynamic generation: Generated from
rpms/*/directories viaci/generate_konflux_resources.sh, depending on package presence and configuration. - Timing: Must be deployed early during MR review so Konflux can build and test new packages.
ReleasePlanAdmission:
- Static configuration: Unlike containers (where RPA contains per-image tag mappings), the RPMs ReleasePlanAdmission is static—it configures the Pulp publishing pipeline without per-package data.
- Releng tenant: RPAs are rendered in this repo (
releng/, generated fromci/konflux_rpa_config.yml) and synced into the releng-managed konflux-release-data repository on every push to main; releng deploys them to therhtap-releng-tenantnamespace, where the release pipeline runs with releng-managed secrets. The RPAs reference therpm-hummingbird-stageEnterpriseContractPolicy, also defined in konflux-release-data.
RPMs Repo — IntegrationTestScenario
IntegrationTestScenario resources are defined via two config files:
konflux-templates/scenarios.yml— the application × template matrix (which app gets which scenario type, with which triggers and optional per-instance vars)konflux-templates/scenarios/<type>.yml.j2— full CR content per scenario type (params, resolverRef, Renovate markers, timeout annotations)
The generator renders these into konflux-templates/rendered.yml alongside Components and
ImageRepositories. The same matrix drives the trigger-manifest integration_test_scenarios
section, so the manifest cannot drift from deployed ITS.
Deploy path: ITS is deployed by the *-releases downstream pipeline (not *-components).
The releases sync fetches rendered.yml from the main branch and runs on every merge to
main, so ITS changes deploy automatically after merge — including Renovate bundle-digest and
IMAGE_TAG bumps. The components sync is deliberately excluded: it deploys from
PARENT_COMMIT_SHA (MR heads), and ITS is static repo-level config that is not supposed to
change in an MR — concurrent or stale MR pipelines would otherwise reset the live CR to older
versions. Pre-merge ITS deployment is intentionally unavailable by design.
No-prune behaviour: The deploy uses server-side apply without pruning — resources
removed or renamed in rendered.yml are not deleted from the cluster. A renamed or
removed ITS remains live and continues producing test PipelineRuns until deleted manually:
kubectl delete integrationtestscenario <name> -n hummingbird-tenant
See the infrastructure repo’s Kubernetes rendering pipeline page for details of the deploy.
The integration_test_scenarios section of .tekton/trigger-manifest-pull-request.json
is derived from the same scenarios.yml matrix, ensuring the manifest never drifts from
deployed scenarios. See the trigger manifests documentation
for the full manifest schema.
Infrastructure Repo
Application and ReleasePlan are defined in kubernetes/rpms-main/:
- Independent iteration: Changes are decoupled from rpms repo activity—they can be modified, test-deployed via manual trigger in an infrastructure MR, verified, and merged without touching the rpms repo.
- Static configuration: These resources don’t depend on per-package data.
Secret resources shared across hummingbird-tenant are defined in
kubernetes/setup-konflux/:
- Security: Secret specifications (names, structure, credential references) should not be exposed in the rpms repo.
- Independent iteration: Like other infrastructure resources, these can be modified and test-deployed without touching the rpms repo.
RPM publishing authorization is releng-side: the ReleasePlanAdmissions in
rhtap-releng-tenant run with releng-managed service accounts and
hummingbird-pulp-credentials-* secrets (see
Private RPM Repositories).