Repository navigation
fix(kubernetes): show registry changes in image sync summaries - #7666
PranjalManhgaye wants to merge 1 commit into
Conversation
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>
👷 Deploy request for pipecd-site pending review.Visit the deploys page to approve it
|
|
👋 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-offAll commits must include a 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-leaseFor multiple commits: git rebase --signoff origin/master
git push --force-with-leaseRun checks locallyBefore pushing updates, please run: make checkThis 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. Thanks for contributing to PipeCD! ❤️ |
There was a problem hiding this comment.
🟢 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
Fixes #7646
Summary
parseContainerImagenow keeps the repository, which is the reference without the tag or digestimage web from ghcr.io/org/web:1.0 to docker.io/org/web:1.0from 1.0 to 1.1wordingTest plan
go test ./deployment/ -run 'TestParseContainerImage|TestCheckImageChange|Test_determineStrategy'inpkg/app/pipedv1/plugin/kubernetespkg/app/pipedv1/plugin/kubernetes_multicluster