← 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
Updated
Closed
—

Current evaluation

Requested repeatable image arguments for Kubernetes profiles during charmcraft init; the option remains unimplemented and untriaged, with no maintainer response.

Suggested action: needs triage

Reason: The request gives a concrete CLI example and intended benefit, but has no labels, comments, assignee, or maintainer assessment. Current InitCommand code defines no --image argument, while the Kubernetes template still hard-codes some-container and some-container-image; implementation also needs decisions about validation, duplicate names, defaults, and other Kubernetes-based profiles.

Evaluated by: mr-cal-bot

Impact: 43 Quick Win: 12 Complexity: 55 Confidence: 92 Actionability: 64

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

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 43
Quick Win: 12
Complexity: 55
Confidence: 92
Actionability: 64
needs triage Requested repeatable image arguments for Kubernetes profiles during charmcraft init; the option remains unimplemented and untriaged, with no maintainer response.
stealth/space-bunny-alpha
Impact: 45
Quick Win: 15
Complexity: 52
Confidence: 91
Actionability: 68
needs triage Requests a repeatable --image name=image option for Kubernetes charmcraft init, rendering supplied OCI images instead of placeholders; the current init parser lacks the flag and templates still emit some-container-image.
~deepseek/deepseek-pro-latest
Impact: 35
Quick Win: 10
Complexity: 55
Confidence: 75
Actionability: 65
needs triage Feature request to add a repeatable --image name=image arg to `charmcraft init` so Kubernetes profile templates render provided OCI images instead of the placeholder some-container-image. No comments, labels, or maintainer response.
~deepseek/deepseek-pro-latest
Impact: 35
Quick Win: 13
Complexity: 45
Confidence: 75
Actionability: 65
needs triage Feature request to add --image arg to charmcraft init for Kubernetes profiles, rendering provided OCI images instead of placeholder some-container-image. No maintainer response or labels.
~deepseek/deepseek-pro-latest
Impact: 30
Quick Win: 8
Complexity: 50
Confidence: 65
Actionability: 55
needs triage Feature request to add a repeatable --image name=ref argument to `charmcraft init` so Kubernetes profiles render real container images instead of the 'some-container-image' placeholder. Untriaged: no labels, comments, or maintainer response.
qwen/qwen3.6-35b-a3b
Impact: 35
Quick Win: 17
Complexity: 35
Confidence: 70
Actionability: 75
needs triage Feature request to add --image argument to charmcraft init for kubernetes profile, allowing users to specify container images upfront instead of using placeholder values.
qwen/qwen3.8-27b
Impact: 30
Quick Win: 18
Staleness: 70
Complexity: 40
Confidence: 80
Support Request: 0
needs triage Feature request to add a --image argument to `charmcraft init` for Kubernetes profiles, so rendered metadata.yaml uses the provided container image instead of the 'some-container-image' placeholder. Unlabelled, no maintainer response, not yet implemented.
qwen/qwen3.6-35b-a3b
Staleness: 92
Complexity: 20
Confidence: 85
Support Request: 10
close stale Feature request to add --image argument to charmcraft init for Kubernetes profiles. Unlabeled, zero comments, inactive for over 2.5 years, awaiting review.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 20
Confidence: 85
Support Request: 10
needs triage Feature request to add --image argument to charmcraft init for Kubernetes profiles, allowing pre-filled container images instead of placeholders. Untriaged and inactive for over 10 months.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 20
Confidence: 80
Support Request: 5
needs triage Feature request to add an --image argument to charmcraft init for Kubernetes profiles, allowing users to specify container images during project initialization. The issue remains untriaged with no maintainer interaction for over two years.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.