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

Need to be able to tell the workload version of a charm by looking at charmhub #1548

Open
sed-i opened this issue Mar 16, 2023 · 1 comment

Comments

@sed-i
Copy link
Contributor

sed-i commented Mar 16, 2023

Charms have the resource page, but it is opaque:

  • it doesn't say which resource revision a given charm revision is linked to
  • a resource revision doesn't say anything about the workload version

image

Right now, we have to rely on CI or charmcraft status to know which belongs where:

$ charmcraft status prometheus-k8s
Track    Base                  Channel    Version    Revision    Resources               
latest   ubuntu 20.04 (amd64)  stable     103        103         prometheus-image (r83)  
                               candidate  103        103         prometheus-image (r83)  
                               beta       103        103         prometheus-image (r83)  
                               edge       113        113         prometheus-image (r92)  
1.0      ubuntu 20.04 (amd64)  stable     103        103         prometheus-image (r83)  
                               candidate  103        103         prometheus-image (r83)  
                               beta       103        103         prometheus-image (r83)  
                               edge       103        103         prometheus-image (r83)

and, armed with that knowledge, go and look into the history of metadata.yaml, hoping that upstream-source is in fact utilized:

resources:
  prometheus-image:
    type: oci-image
    description: Container image for Prometheus
    upstream-source: ghcr.io/canonical/prometheus:latest

...only to find out that in this case it's latest.

Long story short: to know the workload version we currently have to deploy the charm first.

@rbarry82
Copy link

This is an easy fix simply by listing a digest/sha256 next to all revisions (if they're OCI images)

@sed-i sed-i changed the title Need to be able tell the workload version of a charm by looking at charmhub Need to be able to tell the workload version of a charm by looking at charmhub Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants