Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the name variable for placeholder container, resource names #1863

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading