canonical/charmhub.io

Allow custom deploy command in charm header

sed-i opened this issue · 5 comments

sed-i commented

Currently, all charms have the same deploy command,
juju deploy <charm name>:

image

In some cases this would result in "broken" deployment.
For example, deploying grafana (and others) requires a --trust flag:
juju deploy grafana-k8s --trust


  <div class="p-charm-header__code">
    <div class="p-tooltip--information">
      <div>
        <code>juju deploy grafana-k8s</code>  <!--- This should be customizable -->
Lukewh commented

This seems like an easy feature, but has large consequences and adds a lot more complexity. I would suggest the Grafana charm should be updated with proper documentation that informs users that they may need to run juju trust grafana-k8s after deployment, while we look into this further.

This is could be nice feature!
Meanwhile we are blocking the charm hinting user to call juju trust if K8s charm deployed without --trust:

Unit               Workload  Agent      Address       Ports  Message
postgresql-k8s/0*  blocked   executing  10.1.110.75          Insufficient permissions, try: `juju trust postgresql-k8s --scope=cluster`

Hi, I would like to work on this,

What I have understood is that we need to send the deploy commands to html file from python or may be from some config file.

Is my understanding correct and is this issue still up for development ?

Thank you.

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/WD-13797.

This message was autogenerated

A good example is huggingface. You click "use this model" and you get exactly what you need.

Screenshot