Skip to content

feat: migrate to v2 pipeline with flexible secret management#760

Draft
catastrophe-brandon wants to merge 9 commits intoRedHatInsights:masterfrom
catastrophe-brandon:btweed/use-v2-pipeline-flexible-secrets
Draft

feat: migrate to v2 pipeline with flexible secret management#760
catastrophe-brandon wants to merge 9 commits intoRedHatInsights:masterfrom
catastrophe-brandon:btweed/use-v2-pipeline-flexible-secrets

Conversation

@catastrophe-brandon
Copy link
Copy Markdown
Contributor

@catastrophe-brandon catastrophe-brandon commented Mar 25, 2026

Migrates from v1 to v2 platform-ui pipeline to enable flexible secret management without requiring pipeline modifications. Flexible secret management is a requisite to unlock easy setup of data uploads to tools like Chromatic, Currents.dev, or any tool of the consumer's choosing that requires specific secrets configuration.

Changes:

  • Update pipeline reference to v2 (docker-build-run-all-tests-v2.yaml)
  • Point to catastrophe-brandon/konflux-pipelines fork (branch: btweed/platform-ui-v2-flexible-secrets)
  • Add migration guide documentation

Benefits:

  • Can now add custom secrets (Chromatic, Currents, etc.) by only updating ExternalSecret
  • Backwards compatible with existing e2e-credentials-secret
  • All secret keys automatically available as environment variables

The v2 pipeline uses envFrom for automatic secret loading while maintaining explicit mappings for backwards compatibility (HCC_ENV_URL, STAGE_ACTUAL_HOSTNAME).

See .tekton/V2_PIPELINE_MIGRATION.md for details.

Description

description text...

RHCLOUDXXXX


Screenshots

Before:

After:


Checklist ☑️

  • PR only fixes one issue or story
  • Change reviewed for extraneous code
  • UI best practices adhered to
  • Commits squashed and meaningfully named
  • All PR checks pass locally (build, lint, test, E2E)

  • (Optional) QE: Needs QE attention (OUIA changed, perceived impact to tests, no test coverage)
  • (Optional) QE: Has been mentioned
  • (Optional) UX: Needs UX attention (end user UX modified, missing designs)
  • (Optional) UX: Has been mentioned

Migrates from v1 to v2 platform-ui pipeline to enable flexible secret
management without requiring pipeline modifications.

Changes:
- Update pipeline reference to v2 (docker-build-run-all-tests-v2.yaml)
- Point to catastrophe-brandon/konflux-pipelines fork (branch: btweed/platform-ui-v2-flexible-secrets)
- Add migration guide documentation

Benefits:
- Can now add custom secrets (Chromatic, Currents, etc.) by only updating ExternalSecret
- Backwards compatible with existing e2e-credentials-secret
- All secret keys automatically available as environment variables

The v2 pipeline uses envFrom for automatic secret loading while maintaining
explicit mappings for backwards compatibility (HCC_ENV_URL, STAGE_ACTUAL_HOSTNAME).

See .tekton/V2_PIPELINE_MIGRATION.md for details.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@catastrophe-brandon
Copy link
Copy Markdown
Contributor Author

/retest

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 26, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e392cd8b-2a23-46f8-99ff-94a3eced5da9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

catastrophe-brandon and others added 7 commits March 26, 2026 16:27
Add envFrom configuration to pull e2e test credentials from secret and set Currents environment variables for test result uploads.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
The step name is 'e2e-tests', not 'run-e2e-tests'.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
The secret uses 'currents-record-key' as the key name, but Currents expects the environment variable to be named 'CURRENTS_RECORD_KEY'.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Verify that CURRENTS_RECORD_KEY is set before attempting to run Playwright tests to provide a clear error message if the secret isn't configured correctly.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
The shared pipeline already has envFrom configured to import secrets. The stepSpecs override was redundant and potentially conflicting.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
The secret key 'currents-record-key' contains hyphens and won't be imported via envFrom. Need explicit mapping to convert it to valid env var name CURRENTS_RECORD_KEY.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@catastrophe-brandon
Copy link
Copy Markdown
Contributor Author

/retest

1 similar comment
@catastrophe-brandon
Copy link
Copy Markdown
Contributor Author

/retest

@catastrophe-brandon catastrophe-brandon added the poc proof of concept label Mar 27, 2026
@catastrophe-brandon catastrophe-brandon self-assigned this Mar 27, 2026
@catastrophe-brandon
Copy link
Copy Markdown
Contributor Author

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

poc proof of concept

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant