canonical / charmhub.io

GNU General Public License v3.0
11 stars 22 forks source link

Allow custom deploy command in charm header #1664

Open sed-i opened 1 year ago

sed-i commented 1 year ago

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 1 year ago

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.

taurus-forever commented 6 months ago

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`
sayantan1410 commented 3 months ago

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.

syncronize-issues-to-jira[bot] commented 3 months ago

Thank you for reporting us your feedback!

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

This message was autogenerated

sed-i commented 3 months ago

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

Screenshot