Excluding the .imgpkg folder of a bundle does not allow pushing as an image #29
Labels
carvel accepted
This issue should be considered for future work and that the triage process has been completed
discussion
This issue is not a bug or feature and a conversation is needed to find an appropriate resolution
enhancement
This issue is a feature request
good first issue
An issue that will be a good candidate for a new contributor
Hacktoberfest
Issues that are ready for Hacktoberfest participants.
priority/unprioritized-backlog
Higher priority than priority/awaiting-more-evidence but not planned. Contributions are welcome.
snack
This issue has been identified as lightweight and potentially quick to deliver.
What steps did you take:
Create a bundle directory (bundle_dir) including the necessary .imgpkg dir and images.yml file
Attempt to push the bundle directory as an image
imgpkg push -i <repo> -f bundle_dir
Observe the expected error.
Now, exclude the .imgpkg directory from the push command.
imgpkg push -i <repo> -f bundle_dir --file-exclude-defaults .imgpkg
What happened:
The same error.
What did you expect:
The directory and its contents pushed as an image to the repo.
Unsure if this is a pathway we want to allow/encourage, it's a little strange to be pushing a bundle as an image, but I would expect the tool to respect my "exclude" choices.
Anything else you would like to add:
This happens because of where our excluded files are checked, only when making the tarball, after the image/bundle verification steps.
Environment:
imgpkg --version
): imgpkg version 0.2.0Docker HUB
): Any repo/etc/os-release
): MacThe text was updated successfully, but these errors were encountered: