nephio-project / nephio

Nephio is a Kubernetes-based automation platform for deploying and managing highly distributed, interconnected workloads such as 5G Network Functions, and the underlying infrastructure on which those workloads depend.
Apache License 2.0
104 stars 53 forks source link

Porch: error from `rpkg edit` #604

Closed liamfallon closed 1 month ago

liamfallon commented 5 months ago

Original issue URL: https://github.com/kptdev/kpt/issues/3694 Original issue user: https://github.com/johnbelamaric Original issue created at: 2022-12-14T21:37:36Z Original issue last updated at: 2022-12-14T21:41:23Z Original issue body: ### Expected behavior rpkg edit creates a new draft package

Actual behavior

ubuntu@nephio-poc-004:~$ kpt --kubeconfig ~/.kube/nephio.config alpha rpkg edit edge-1-03644cdb5e035f49d209641a1763704042546aa2 -n default --workspace v3
Error: Internal error occurred: error applying patch: conflict: fragment line does not match src line 
ubuntu@nephio-poc-004:~$ kpt --kubeconfig ~/.kube/nephio.config alpha rpkg edit edge-1-03644cdb5e035f49d209641a1763704042546aa2 -n default 
Error: --workspace is required to specify downstream workspaceName 
ubuntu@nephio-poc-004:~$

Information

ubuntu@nephio-poc-004:~$ kpt --kubeconfig ~/.kube/nephio.config alpha rpkg list
NAME                                                        PACKAGE                  WORKSPACENAME         REVISION   LATEST   LIFECYCLE   REPOSITORY
...snipped...
edge-1-03644cdb5e035f49d209641a1763704042546aa2             free5gc-operator         packagedeployment-1   v1         true     Published   edge-1
...snipped...
ubuntu@nephio-poc-004:~$ 

Note that this revision v1 from repo https://github.com/nephio-test/nephio-poc-004-edge-1

Steps to reproduce the behavior

Original issue comments:

liamfallon commented 4 months ago

Same root casuse as Same root cause as https://github.com/nephio-project/nephio/issues/469

liamfallon commented 4 months ago

Triaged Triage Comment: The same issue happens in porchctl rpkg update

liamfallon commented 1 month ago

This is a duplicate of https://github.com/nephio-project/nephio/issues/469