Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ Kargo manages the installation token. Wait for the ExternalSecret to report

`repoCredentials()` requires Kargo v1.12 or a backport; see the
[release notes](https://docs.kargo.io/release-notes/v1.12.0). The repository pins
v1.11.3, so confirm runtime support before deploying the resolver change.
v1.12.4, which includes this function.
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,33 @@ successful cluster rollout.
Rollback the onboarding by reverting its repository change. Reverting Kargo
configuration does not undo already merged infra-deployments promotion PRs;
revert those separately when restoring a deployed version.

## Promotion PR changelogs

Rings 0–4 call the shared `github-commit-changelog` task before publication and
include separate source commit lists for:

| Image | Source repository |
|---|---|
| `quay.io/konflux-ci/mintmaker` | `konflux-ci/mintmaker` |
| `quay.io/konflux-ci/mintmaker-renovate-image` | `konflux-ci/mintmaker-renovate-image` |
| `quay.io/konflux-ci/mintmaker-schedule-calculator` | `konflux-ci/mintmaker-schedule-calculator` |

Each comparison uses that ring's previous image `newTag` from Git and the
independently selected Freight image tag. A previous digest takes precedence
over a tag and leaves the source baseline unknown; `latest`, missing tags and
other non-SHA tags also yield an explicit unavailable note. Controller manifest
refs are not substituted for image provenance.

Lists show up to 20 linked commits and a comparison link for the full range.
Rollback and diverged histories are labeled. GitHub lookup failures leave a
visible unavailable note without changing promotion/verification policy.
`origin-cli` has version tags rather than source SHA tags, and the previous
shared-base snapshot has no recorded immutable source revision: their changes
remain in the existing PR summary/table, without an inferred commit list.

Reusing an open promotion PR refreshes its generated body only after checking
that the PR points to the just-published commit; a failed refresh blocks
publication. This replaces manual body edits, so discussion belongs in comments.
See the [shared task contract](../../shared/promotion-tasks/README.md#reusable-source-commit-changelog)
for reuse, API limits and refresh behavior.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,14 @@ spec:
&& task.outputs['read-ring-3-ansible-cli'].valid == true && task.outputs['read-ring-3-osci-cli'].valid == true)) }}
config:
prepared: 'yes'
# A digest takes precedence over newTag in Kustomize. Never interpret a
# stale tag, latest, or a manifest ref as the image's previous source SHA.
previousControllerSHA: >-
${{ quote((task.outputs['read-previous'].controllerImages[0].digest ?? '') == '' ? string(task.outputs['read-previous'].controllerImages[0].newTag ?? '') : '') }}
previousRenovateSHA: >-
${{ quote((task.outputs['read-previous'].renovateImages[0].digest ?? '') == '' ? string(task.outputs['read-previous'].renovateImages[0].newTag ?? '') : '') }}
previousSchedulerSHA: >-
${{ quote((task.outputs['read-previous'].schedulerImages[0].digest ?? '') == '' ? string(task.outputs['read-previous'].schedulerImages[0].newTag ?? '') : '') }}
prSummary: |
Update the controller, Renovate, schedule calculator and origin-cli to their selected release tags in ${{ vars.targetRing }}.
Align both controller manifest refs to controller source revision ${{ imageFrom(vars.controllerImageRepoURL).Tag }}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,36 @@ spec:
value: ${{ vars.component }}
- name: targetRing
value: ${{ vars.targetRing }}
- task:
name: github-commit-changelog
as: controller-changelog
vars:
- name: repository
value: konflux-ci/mintmaker
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousControllerSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker').Tag) }}
- task:
name: github-commit-changelog
as: renovate-changelog
vars:
- name: repository
value: konflux-ci/mintmaker-renovate-image
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousRenovateSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker-renovate-image').Tag) }}
- task:
name: github-commit-changelog
as: scheduler-changelog
vars:
- name: repository
value: konflux-ci/mintmaker-schedule-calculator
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousSchedulerSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker-schedule-calculator').Tag) }}
- task:
name: publish-promotion-pr
as: publish
Expand All @@ -71,6 +101,21 @@ spec:
value: ${{ outputs['promote::result']?.prSummary ?? '' }}
- name: prChanges
value: ${{ outputs['promote::result']?.prChanges ?? [] }}
- name: prChangelog
value: |
## Source commit changelog

### Controller — konflux-ci/mintmaker
${{ outputs['controller-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

### Renovate — konflux-ci/mintmaker-renovate-image
${{ outputs['renovate-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

### Schedule calculator — konflux-ci/mintmaker-schedule-calculator
${{ outputs['scheduler-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

Source ranges use the previous Git-configured image SHA tags and selected Freight tags; they do not prove image provenance or live deployment state.
The origin-cli version and shared base snapshot are shown above; no source commit baseline is inferred for them.
- name: prCompareURL
value: ${{ outputs['promote::result']?.prCompareURL ?? '' }}
- name: prepared
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,36 @@ spec:
value: ${{ vars.component }}
- name: targetRing
value: ${{ vars.targetRing }}
- task:
name: github-commit-changelog
as: controller-changelog
vars:
- name: repository
value: konflux-ci/mintmaker
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousControllerSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker').Tag) }}
- task:
name: github-commit-changelog
as: renovate-changelog
vars:
- name: repository
value: konflux-ci/mintmaker-renovate-image
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousRenovateSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker-renovate-image').Tag) }}
- task:
name: github-commit-changelog
as: scheduler-changelog
vars:
- name: repository
value: konflux-ci/mintmaker-schedule-calculator
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousSchedulerSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker-schedule-calculator').Tag) }}
- task:
name: publish-promotion-pr
as: publish
Expand All @@ -88,6 +118,21 @@ spec:
value: ${{ outputs['promote::result']?.prSummary ?? '' }}
- name: prChanges
value: ${{ outputs['promote::result']?.prChanges ?? [] }}
- name: prChangelog
value: |
## Source commit changelog

### Controller — konflux-ci/mintmaker
${{ outputs['controller-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

### Renovate — konflux-ci/mintmaker-renovate-image
${{ outputs['renovate-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

### Schedule calculator — konflux-ci/mintmaker-schedule-calculator
${{ outputs['scheduler-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

Source ranges use the previous Git-configured image SHA tags and selected Freight tags; they do not prove image provenance or live deployment state.
The origin-cli version and shared base snapshot are shown above; no source commit baseline is inferred for them.
- name: prCompareURL
value: ${{ outputs['promote::result']?.prCompareURL ?? '' }}
- name: prepared
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,36 @@ spec:
value: ${{ vars.component }}
- name: targetRing
value: ${{ vars.targetRing }}
- task:
name: github-commit-changelog
as: controller-changelog
vars:
- name: repository
value: konflux-ci/mintmaker
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousControllerSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker').Tag) }}
- task:
name: github-commit-changelog
as: renovate-changelog
vars:
- name: repository
value: konflux-ci/mintmaker-renovate-image
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousRenovateSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker-renovate-image').Tag) }}
- task:
name: github-commit-changelog
as: scheduler-changelog
vars:
- name: repository
value: konflux-ci/mintmaker-schedule-calculator
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousSchedulerSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker-schedule-calculator').Tag) }}
- task:
name: publish-promotion-pr
as: publish
Expand All @@ -88,6 +118,21 @@ spec:
value: ${{ outputs['promote::result']?.prSummary ?? '' }}
- name: prChanges
value: ${{ outputs['promote::result']?.prChanges ?? [] }}
- name: prChangelog
value: |
## Source commit changelog

### Controller — konflux-ci/mintmaker
${{ outputs['controller-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

### Renovate — konflux-ci/mintmaker-renovate-image
${{ outputs['renovate-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

### Schedule calculator — konflux-ci/mintmaker-schedule-calculator
${{ outputs['scheduler-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

Source ranges use the previous Git-configured image SHA tags and selected Freight tags; they do not prove image provenance or live deployment state.
The origin-cli version and shared base snapshot are shown above; no source commit baseline is inferred for them.
- name: prCompareURL
value: ${{ outputs['promote::result']?.prCompareURL ?? '' }}
- name: prepared
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,36 @@ spec:
value: ${{ vars.component }}
- name: targetRing
value: ${{ vars.targetRing }}
- task:
name: github-commit-changelog
as: controller-changelog
vars:
- name: repository
value: konflux-ci/mintmaker
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousControllerSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker').Tag) }}
- task:
name: github-commit-changelog
as: renovate-changelog
vars:
- name: repository
value: konflux-ci/mintmaker-renovate-image
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousRenovateSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker-renovate-image').Tag) }}
- task:
name: github-commit-changelog
as: scheduler-changelog
vars:
- name: repository
value: konflux-ci/mintmaker-schedule-calculator
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousSchedulerSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker-schedule-calculator').Tag) }}
- task:
name: publish-promotion-pr
as: publish
Expand All @@ -88,6 +118,21 @@ spec:
value: ${{ outputs['promote::result']?.prSummary ?? '' }}
- name: prChanges
value: ${{ outputs['promote::result']?.prChanges ?? [] }}
- name: prChangelog
value: |
## Source commit changelog

### Controller — konflux-ci/mintmaker
${{ outputs['controller-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

### Renovate — konflux-ci/mintmaker-renovate-image
${{ outputs['renovate-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

### Schedule calculator — konflux-ci/mintmaker-schedule-calculator
${{ outputs['scheduler-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

Source ranges use the previous Git-configured image SHA tags and selected Freight tags; they do not prove image provenance or live deployment state.
The origin-cli version and shared base snapshot are shown above; no source commit baseline is inferred for them.
- name: prCompareURL
value: ${{ outputs['promote::result']?.prCompareURL ?? '' }}
- name: prepared
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,36 @@ spec:
value: ${{ vars.component }}
- name: targetRing
value: ${{ vars.targetRing }}
- task:
name: github-commit-changelog
as: controller-changelog
vars:
- name: repository
value: konflux-ci/mintmaker
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousControllerSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker').Tag) }}
- task:
name: github-commit-changelog
as: renovate-changelog
vars:
- name: repository
value: konflux-ci/mintmaker-renovate-image
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousRenovateSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker-renovate-image').Tag) }}
- task:
name: github-commit-changelog
as: scheduler-changelog
vars:
- name: repository
value: konflux-ci/mintmaker-schedule-calculator
- name: previousSHA
value: ${{ quote(outputs['promote::result'].previousSchedulerSHA) }}
- name: proposedSHA
value: ${{ quote(imageFrom('quay.io/konflux-ci/mintmaker-schedule-calculator').Tag) }}
- task:
name: publish-promotion-pr
as: publish
Expand All @@ -88,6 +118,21 @@ spec:
value: ${{ outputs['promote::result']?.prSummary ?? '' }}
- name: prChanges
value: ${{ outputs['promote::result']?.prChanges ?? [] }}
- name: prChangelog
value: |
## Source commit changelog

### Controller — konflux-ci/mintmaker
${{ outputs['controller-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

### Renovate — konflux-ci/mintmaker-renovate-image
${{ outputs['renovate-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

### Schedule calculator — konflux-ci/mintmaker-schedule-calculator
${{ outputs['scheduler-changelog::result']?.markdown ?? 'Commit changelog unavailable.' }}

Source ranges use the previous Git-configured image SHA tags and selected Freight tags; they do not prove image provenance or live deployment state.
The origin-cli version and shared base snapshot are shown above; no source commit baseline is inferred for them.
- name: prCompareURL
value: ${{ outputs['promote::result']?.prCompareURL ?? '' }}
- name: prepared
Expand Down
Loading
Loading