Skip to content

[release-tool] fix normalizing pinned images components #10593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

radTuti
Copy link
Contributor

@radTuti radTuti commented Jun 24, 2025

Description

This fixes the normalization of images for a component to check in the registry image map using the component name.

Also added tests

Related issues/PRs

Todos

  • Tests
  • Documentation
  • Release note

Release Note

TBD

Reminder for the reviewer

Make sure that this PR has the correct labels and milestone set.

Every PR needs one docs-* label.

  • docs-pr-required: This change requires a change to the documentation that has not been completed yet.
  • docs-completed: This change has all necessary documentation completed.
  • docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

  • release-note-required: This PR has user-facing changes. Most PRs should have this label.
  • release-note-not-required: This PR has no user-facing changes.

Other optional labels:

  • cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
  • needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

@Copilot Copilot AI review requested due to automatic review settings June 24, 2025 18:31
@radTuti radTuti requested a review from a team as a code owner June 24, 2025 18:31
@radTuti radTuti added docs-not-required Docs not required for this change release-note-not-required Change has no user-facing impact labels Jun 24, 2025
@marvin-tigera marvin-tigera added this to the Calico v3.31.0 milestone Jun 24, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the image normalization behavior in pinned image components by updating the logic to use the component name for registry lookup and adjusting the function comments accordingly. Additionally, new unit tests have been added to verify the normalization for various components.

  • Updated normalizeComponent in pinnedversion.go to use the component name when looking up image mappings.
  • Updated function documentation to reflect the new lookup behavior.
  • Added comprehensive tests in pinnedversion_test.go for different component cases.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
release/internal/pinnedversion/pinnedversion.go Updated the normalization logic for component images and adjusted documentation.
release/internal/pinnedversion/pinnedversion_test.go Added tests to ensure that pinned images components are normalized correctly.

@radTuti radTuti force-pushed the fix-master-images branch from 60e5663 to 446787b Compare June 24, 2025 18:31
@radTuti radTuti merged commit 497c4c4 into projectcalico:master Jun 24, 2025
3 checks passed
@radTuti radTuti deleted the fix-master-images branch June 24, 2025 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-not-required Docs not required for this change release-note-not-required Change has no user-facing impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants