kctrl: Re-running "kctrl package init" deletes info from vendir.yml #966
Labels
bug
This issue describes a defect or unexpected behavior
carvel-accepted
This issue should be considered for future work and that the triage process has been completed
cli
Issue for kapp-controller cli
priority/important-soon
Must be staffed and worked on currently or soon.
What steps did you take:
It seems that a regression has been introduce in v0.42.0 affecting the behaviour of the kctrl CLI when running
kctrl package init
a second time.git clone https://github.com/arktonix/package-for-knative-eventing.git
cd package
kctrl package init
What happened:
The upstream repository name and version are deleted from the
vendir.yml
file and I'm asked to insert them again via the CLI.What did you expect:
The
kctrl package init
command should use the information already provided and stored invendir.yml
andpackage-build.yml
, just like it used to do in previous versions.Anything else you would like to add:
I noticed that the CLI works correctly when the upstream manifests come from a Git repository source (option 4). Instead, it doesn't work correctly when the source is a GitHub release (option 2), resulting in the
vendir.yml
info being deleted.Environment:
kubectl version
): v1.25.3Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
The text was updated successfully, but these errors were encountered: