Skip to content

Add OCM release notes when updating gardener images#1656

Open
hebelsan wants to merge 2 commits into
gardener:masterfrom
hebelsan:feat/extension-images-ocm
Open

Add OCM release notes when updating gardener images#1656
hebelsan wants to merge 2 commits into
gardener:masterfrom
hebelsan:feat/extension-images-ocm

Conversation

@hebelsan

@hebelsan hebelsan commented Jul 3, 2026

Copy link
Copy Markdown

Release note:

Add OCM release notes for Gardener image updates on the update-extension-provider-images workflow

@gardener-prow gardener-prow Bot added do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. labels Jul 3, 2026
@gardener-prow

gardener-prow Bot commented Jul 3, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tuananh17n for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gardener-prow gardener-prow Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 3, 2026
f.write("\n")


def write_ocm_release_notes(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oci_client_ duplicates the oci_api client already created in main() — consider passing it in as a parameter to avoid a second connection pool.

images_data.sort_images()
write_yaml_file(images_data, args.images_yaml_path, updated_directives)
print(f"\nUpdated {args.images_yaml_path} with {len(updates)} changes.", file=sys.stderr)
write_ocm_release_notes(updates, images_data)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

write_ocm_release_notes is called inside if updates: but create_release_notes is called unconditionally within the outer if all_new_versions: block — the guards are inconsistent.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create_release_notes does nothing when updates is empty (it returns early).
But you are right, the inconsistency is confusing.
I added create_release_notes and its print into the same if updates path.

@ccwienk ccwienk removed the do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. label Jul 7, 2026
@hebelsan
hebelsan force-pushed the feat/extension-images-ocm branch from df7843a to 66598e1 Compare July 23, 2026 14:12
@hebelsan

Copy link
Copy Markdown
Author

Thanks for the review @ccwienk! 🚀
I've addressed your comments.

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

Labels

cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants