Skip to content

fix(kubernetes): show registry changes in image sync summaries - #7666

Open
PranjalManhgaye wants to merge 1 commit into
pipe-cd:masterfrom
PranjalManhgaye:fix/image-registry-sync-summary
Open

PranjalManhgaye wants to merge 1 commit into
pipe-cd:masterfrom
PranjalManhgaye:fix/image-registry-sync-summary

Conversation

@PranjalManhgaye

Copy link
Copy Markdown

Fixes #7646

Summary

  • parseContainerImage now keeps the repository, which is the reference without the tag or digest
  • When that repository changes, the pipedv1 Kubernetes and Kubernetes multicluster sync summary prints both full references, for example image web from ghcr.io/org/web:1.0 to docker.io/org/web:1.0
  • A tag change in the same repository still uses the existing from 1.0 to 1.1 wording

Test plan

  • go test ./deployment/ -run 'TestParseContainerImage|TestCheckImageChange|Test_determineStrategy' in pkg/app/pipedv1/plugin/kubernetes
  • The same test filter in pkg/app/pipedv1/plugin/kubernetes_multicluster
  • Plugin stage tests that start envtest were not run here because kubebuilder etcd is not installed locally

A move between registries with the same tag was summarized as an update from 1.0 to 1.0. Compare the repository and print both full references when it changes.

Signed-off-by: PranjalManhgaye <manhgayepranjal@gmail.com>
@PranjalManhgaye
PranjalManhgaye requested review from a team as code owners November 24, 2026 18:20
@PranjalManhgaye
PranjalManhgaye requested review from armistcxy, ffjlabo and khanhtc1202 and a balanced review from Copilot November 24, 2026 18:20
@netlify

netlify Bot commented Nov 24, 2026

Copy link
Copy Markdown

👷 Deploy request for pipecd-site pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 2405a10

@github-actions

Copy link
Copy Markdown
Contributor

👋 Hi @PranjalManhgaye, welcome to PipeCD and thanks for opening your first pull request!

We’re really happy to have you here

Before your PR gets merged, please check a few important things below.


Helpful resources


DCO Sign-off

All commits must include a Signed-off-by line to comply with the Developer Certificate of Origin (DCO).

In case you forget to sign-off your commit(s), follow these steps:

For the last commit:

git commit --amend --signoff
git push --force-with-lease

For multiple commits:

git rebase --signoff origin/master
git push --force-with-lease

Run checks locally

Before pushing updates, please run:

make check

This runs the same checks as CI and helps catch issues early.


💬 Need help?

If anything is unclear, feel free to ask in this PR or join us on the CNCF Slack in the #pipecd channel.
You can get your Slack invite from: https://communityinviter.com/apps/cloud-native/cncf

Thanks for contributing to PipeCD! ❤️

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the changes that make registry and repository updates visible in sync summaries.

No open issues 🎉

What changed in this PR

Fixes #7646 by making registry and repository changes visible in pipedv1 Kubernetes sync summaries, avoiding misleading messages such as from 1.0 to 1.0.

Changes:

  • Retains the repository when parsing container image references.
  • Shows full image references when repositories differ, while preserving concise wording for same-repository tag changes.
  • Adds registry-change regression tests and updates parser and summary expectations in both plugins.
File Description
pkg/​app/​pipedv1/​plugin/​kubernetes/​deployment/​determine.go Preserves repositories and displays full references for repository changes.
pkg/​app/​pipedv1/​plugin/​kubernetes/​deployment/​determine_test.go Tests repository parsing and updated Kubernetes sync summaries.
pkg/​app/​pipedv1/​plugin/​kubernetes_multicluster/​deployment/​determine.go Applies the same parsing and summary behavior to multicluster deployments.
pkg/​app/​pipedv1/​plugin/​kubernetes_multicluster/​deployment/​determine_test.go Adds matching multicluster regression coverage and expectations.

Review effort: Balanced

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kubernetes plugin sync summary shows "from 1.0 to 1.0" when only the image registry or repository changes

2 participants