← Back to issue list

K8s profiles: Add `--image` arg to `charmcraft init`

View original Github issue

Metadata

Project
charmcraft
Number
#1246
Type
issue
State
open
Author
sed-i
Labels
Created
2023-09-06 01:28:08+00:00
Updated
2025-08-15 15:18:22+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done It would be handy if `charmcraft init` could take image name(s) when rendering a project tree. This could be done similarly to the `--resource` arg in juju: ``` charmcraft init \ --profile kubernetes \ --name charmed-app-k8s \ --image workload1=ghcr.io/x/y:z --image workload2=ghcr.io/a/b:c ``` This would render metadata.yaml etc. with the provided image(s) instead of the placeholder "some-container-image". ### Why it needs to get done When we charm up an app, we usually know which image we want to start with. Having it rendered up front would save some time and confusion, especially for beginners.

Evaluation history

No evaluation history available.