bundle with local metadata v2 k8s sidecar charm fails for "metadata v1"
Bug #1936281 reported by
Leon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Simon Richardson |
Bug Description
I am following [this doc](https:/
$ git clone --depth 1 https:/
$ cat bundle.yaml
bundle: kubernetes
applications:
alertmanager-k8s:
charm: "/tmp/test/
scale: 1
resources:
alertmana
$ juju deploy ./bundle.yaml
ERROR cannot deploy bundle: containers with metadata v1 not valid
yet the [metadata.yaml](https:/
Changed in juju: | |
assignee: | nobody → Simon Richardson (simonrichardson) |
milestone: | none → 2.9.10 |
importance: | Undecided → High |
Changed in juju: | |
status: | New → In Progress |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
So the real problem here is that you're missing a manifest.yaml. To truly be a metadata v2, you also have to have a manifest.yaml. The manifest.yaml can either be created manually (see below) or via `charmcraft build`.
Example of a manifest.yaml:
bases: ures:
- name: ubuntu
architect
- amd64
channel: '20.04'
----
Although this is user error, the error message can be vastly improved to at least explain why juju thinks it's a v1 metadata.
This bug will be closed once the error message is improved.