Skip to content

Commit

Permalink
Use the name variable for placeholder container, resource names
Browse files Browse the repository at this point in the history
  • Loading branch information
sed-i authored Aug 27, 2024
1 parent d2ffef3 commit 021aff1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charmcraft/templates/init-kubernetes/charmcraft.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 021aff1

Please sign in to comment.