-
Notifications
You must be signed in to change notification settings - Fork 63
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
Create a describe command for a bundle #124
Comments
Hey @jorgemoralespou to get more clarification on the why here, is the reason this command is needed because after relocating a bundle, you want to verify prior to downloading them that
Does this capture the why you need? |
Correct. That mostly summarizes the ask. Also, not only after a relocation, but I would want to get detailed information on a bundle's content. A bundle might have been transported/relocated from 0 to multiple times, and I want to get details on the bundle contents. |
Do you want to see details on the bundles contents in order to verify that all the files were copied successfully? Or is there another reason that this information is helpful? I'm trying to drill down exactly what use case we are addressing here. Is seeing the file names and directory structure the kind of information that you need? For example something like this (copied from here):
|
It's not the files (we assume the files are copied always ok, why wouldn't they?). It's the content of the files (e.g: content of images.yml). What can change in every copy operation. |
Just a clarification, the files inside the Bundles will never change, even in the copy process, or else we would have a different SHA between copies. @jorgemoralespou let me know if this makes sense in terms of UX
|
@joaopapereira I think that even if the files don't change, @cari-lynn might have a point in that showing the files (structure) might be good as a Maybe, there should be two different outputs based on flags, to not output too much information by default, but being able to see what the user wants to see. Does this make sense? |
I think it makes sense to have this information in some way flag-dependent, something like Nevertheless, I would like to first try to understand what, in your opinion, is the Most Valuable information that we should surface from the start. After that, we can evolve this command to have more information as we have more user feedback for it. |
I think that:
That really doesn't bring down the list much :-D |
@jorgemoralespou — it can really help to drill down to the why, here. Often a solid clue comes from how the information gets used.
We haven't yet explicitly stated it, here, but I assume this is because it's expensive (in time, in rate limit, in bandwidth) to just pull down the bundle.
As we've teased out in this issue, so far, there are two primary pieces of information the user wants to get at:
Listing of the Contents of a BundleI think I can name some use-cases that show "what's next" with the contents:
@jorgemoralespou can you edit these and/or add other situations where having the listing of contents of the bundle satisfies some task? Origins of a BundleThe second item has me a little concerned. What question am I trying to answer by looking at a set of copy receipts? If I'm trying to prove that a Bundle (and/or its contents) originated from a particular source, then this is a dangerous way to go about it. There are only two things I know of that can help establish this fact:
It's my understanding that everything else can be spoofed... and if someone is actually asking the question, I suspect they want confidence in the answer. I feel like I'm likely missing something here. @jorgemoralespou can you help name the task(s) where having copy receipts in hand is needed? and of those, that the receipts are of sufficient validity to be useful to the task? |
This one is perfect as this was the use case I had in mind.
This one not sure how valuable it is. Not sure yet if I would need to poke various bundles for one with a set of images I want.
For this one, I don't really mean proving provenance as the fact that needs to be signed, but when an image is relocated and depending on the strategy selected (based on the imgpkg copy spec in progress), I would want to know the original names of the images (fully qualified) in case I need to open a support ticket or similar, or I need to look at docs. The main reason is that the FQN of the images in the deployment descriptors might be totally different from those in the docs/original descriptors and hence difficult to triage/report problems. |
Hi, Correct me if I'm wrong, but I thought the I put some data:
before I do
The code seems to never populate this, just put an empty map as place holder. Can this please be rectified, so I can retrieve this information vie If I do Thx. |
@etirta I think you are right, do you mind creating a new issue (bug) for this? |
Describe the problem/challenge you have
As a user I want to know the contents of a bundle before pulling it completely down. Specifically what's really important is to know the images in the bundle (and dependent bundles) as when I copy (relocate) a whole bundle (and images) I would want to know what happened and why.
Describe the solution you'd like
I would want a command like:
imgpkg describe -b my-bundle
that will print the following details:This way a user could do some diagnostics to determine the provenance of a bundle or to know what he'll need to plan (in terms of a CopyConfig file) to do proper image copying.
The text was updated successfully, but these errors were encountered: