carvel-dev / carvel-dev/imgpkg

imgpkg init Command

Open
#61 10 comments 0 reactions 0 assignees View on GitHub
carvel accepted enhancement
Dominant language
Go
Stars
284
Forks
70
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem/challenge you have**

When first creating a Bundle with `imgpkg`, I would like the ability to generate all the contents of the `.imgpkg` directory with a single command. I would like to use this command directly through `imgpkg` and not directly use an additional tool such as `kbld`.

**Describe the solution you'd like**

`imgpkg init -f /files` creates the ImagesLock and Bundle metadata config in the `.imgpkg` directory.

Where applicable, we should consider allowing the user to have options to fill in the properties of the bundle metadata file.

`imgpkg init -f /files --name my-bundle`

**Anything else you would like to add:**

The behavior in this case could be calling out to `kbld` to generate the ImagesLock file as a sensible default.

Contributor guide

Open the contributing guide

Research direction

Read the existing imgpkg command handling and the kbld flow that generates an ImagesLock first; the issue names no files or tests. Define the init command's supported flags and verify that it creates both ImagesLock and Bundle metadata in the .imgpkg directory, including the requested bundle name when provided.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.