diff --git a/charmcraft/templates/init-kubernetes/charmcraft.yaml.j2 b/charmcraft/templates/init-kubernetes/charmcraft.yaml.j2 index e87a3599a..6f4dcc833 100644 --- a/charmcraft/templates/init-kubernetes/charmcraft.yaml.j2 +++ b/charmcraft/templates/init-kubernetes/charmcraft.yaml.j2 @@ -60,17 +60,17 @@ config: # Your workload’s containers. containers: - some-container: - resource: some-container-image + {{ name }}: + resource: {{ name }}-image # This field populates the Resources tab on Charmhub. resources: # An OCI image resource for each container listed above. # You may remove this if your charm will run without a workload sidecar container. - some-container-image: + {{ name }}-image: type: oci-image - description: OCI image for the 'some-container' container + description: OCI image for the {{ name }} container # The upstream-source field is ignored by Juju. It is included here as a reference # so the integration testing suite knows which image to deploy during testing. This field # is also used by the 'canonical/charming-actions' Github action for automated releasing.