Skip to content

feat: parameterize advisory type in ReleasePlan templates - #1123

Open
anwesha-palit-redhat wants to merge 1 commit into
openshift-pipelines:mainfrom
anwesha-palit-redhat:main
Open

anwesha-palit-redhat wants to merge 1 commit into
openshift-pipelines:mainfrom
anwesha-palit-redhat:main

Conversation

@anwesha-palit-redhat

@anwesha-palit-redhat anwesha-palit-redhat commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Parameterizes the advisory type (RHEA/RHSA/RHBA) in ReleasePlan templates so that release captains can specify the correct type for patch releases without manual post-generation edits.

Problem

The advisory type in the managed and CDN ReleasePlan templates was hardcoded as RHEA. For patch releases, the type should be RHSA (security) or RHBA (bug fix), but the only way to change it was manually editing the generated files after the fact

Changes

Data model — internal/konflux/config.go

  • Added AdvisoryType field to the Release struct with json:"advisory-type" yaml:"advisory-type" tags

Templates — internal/konflux/templates/konflux/

  • release-plan-managed.yaml: replaced hardcoded type: "RHEA" with a template expression that falls back to RHEA when AdvisoryType is empty
  • release-plan-cdn.yaml: same change as above

Workflow — .github/workflows/release-manager.yaml

  • Added advisory-type choice input (options: RHEA, RHSA, RHBA; default: RHEA) to the workflow dispatch inputs
  • Passes the value as an environment variable to the release-manager script

Shell scripts — hack/

  • release-manager.sh: added --advisory-type flag parsing and passes ADVISORY_TYPE env var to functions
  • common-functions.sh: updated create-new-patch() to write advisory-type to the release YAML via yq when ADVISORY_TYPE is set

Usage

For a patch release, the release captain selects the advisory type when dispatching the "Automated Release Actions" workflow:

  1. Go to Actions → Automated Release Actions → Run workflow
  2. Select new-patch as the action
  3. Enter the version
  4. Select RHSA or RHBA from the advisory type dropdown
  5. The generated ReleasePlans will use the correct type

For GA releases, the default RHEA applies automatically — no action needed.

image

Backward Compatibility

  • Existing release configs without an advisory-type field will default to RHEA (same behavior as before)
  • The workflow input defaults to RHEA, so existing GA release workflows are unaffected

co-authored: Claude 4.6

The advisory type in ReleasePlan templates was hardcoded as "RHEA".
For patch releases, it needs to be configurable to RHSA or RHBA.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant