Derive Konflux tenant and SA from existing pipelines (ROSA-730) - #799
Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (2)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Some repos (configure-alertmanager-operator, configure-goalert-operator) have non-standard Konflux tenant namespaces and service accounts from early onboarding. Instead of constructing these from the operator name, read them from the existing Konflux pipeline files in .tekton/ which are the source of truth. Falls back to the <operator>-tenant and build-pipeline-<operator> conventions if no existing pipelines exist. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
47cde97 to
402d43e
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: joshbranham, tnierman 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 |
Summary
The agentic SDLC check pipeline template previously constructed the Konflux tenant namespace and service account from the operator name (
<operator>-tenant,build-pipeline-<operator>). This fails for repos onboarded to Konflux with non-standard naming.This PR reads both values from existing
.tekton/*-pull-request.yamlfiles instead, which are the source of truth (created by Konflux during onboarding, never regenerated by boilerplate). Falls back to the convention if no existing pipelines are found.Affected repos
camo-hcm-tenantconfigure-alertmanager-operator-tenantfedramp-srep-tenantconfigure-goalert-operator-tenantCAMO also has a non-standard SA:
build-pipeline-configure-alertmanager-operator-mastervsbuild-pipeline-configure-alertmanager-operator.How it works
Related
@include resolution andonError: continue(merged)🤖 Generated with Claude Code