Skip to content
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

wrong repository name is shown in packagerevision list when same repository is registered in 2 namespaces #725

Open
s375kuma opened this issue Apr 29, 2024 · 0 comments

Comments

@s375kuma
Copy link

Hi,

Here I have registered one git repo in 2 namespaces with different repo names. example:
$ kubectl get repositories.config.porch.kpt.dev -n shiv
NAME TYPE CONTENT DEPLOYMENT READY ADDRESS
hello-git-c74qf-6sgrv git Package True https://github.com/blueprint/hw-profile.git

$ kubectl get repositories.config.porch.kpt.dev -n demo
NAME TYPE CONTENT DEPLOYMENT READY ADDRESS
hello-git-wc7xp-ljpnj git Package True https://github.com/blueprint/hw-profile.git

when I do packagerevision list for shiv namespace, I get correct result

$ kubectl get packagerevision -n shiv | grep "hello-git-c74qf-6sgrv"
hello-git-c74qf-6sgrv-a48a7b45988e20f08a373e31f31c475970a1746d helloworld-profile v1 main false Published hello-git-c74qf-6sgrv
hello-git-c74qf-6sgrv-518fc23ece3704a366be6522ddc6791b72471582 helloworld-profile v1 v1 true Published hello-git-c74qf-6sgrv

but for the demo namespace, I am getting wrong repository name

$ kubectl get packagerevision -n demo
NAME PACKAGE WORKSPACENAME REVISION LATEST LIFECYCLE REPOSITORY
hello-git-c74qf-6sgrv-a48a7b45988e20f08a373e31f31c475970a1746d helloworld-profile v1 main false Published hello-git-c74qf-6sgrv
hello-git-c74qf-6sgrv-518fc23ece3704a366be6522ddc6791b72471582 helloworld-profile v1 v1 true Published hello-git-c74qf-6sgrv

Here instead of referring the hello-git-wc7xp-ljpnj repository registered in demo namespace, it is referring hello-git-c74qf-6sgrv which is registered in shiv namespace and not accessible to demo namespace.

Can we have the same repository linking which is registered for the namespace?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant