draft-classic icon indicating copy to clipboard operation
draft-classic copied to clipboard

use remote chart in draft pack

Open michelleN opened this issue 7 years ago • 3 comments

One may want to maintain a helm chart separately from an application but have developers use that chart which is production-like in their dev workflow.

Currently, draft create copies over a chart from a draft pack for the developer to use. Instead of having the chart actually live in the draft pack, what if we could just specify where the chart lives (like the git repo url). That way, draft create could just pull down the chart from the specified git repo in the correct place.

This would help make it possible to manage the helm chart separately from the application but also allow the developer to use a chart close to production.

inspired by @intheclouddan who currently has a workaround which involves: 1. cloning the git repo with a chart in it 2. symlinking it the charts/ dir in the app directory so that draft will use it

michelleN avatar May 07 '18 16:05 michelleN

Some things to consider:

  • where in the draft pack itself do we want to specify the location of the chart? maybe we want to specify a draft.toml file that has a field called chart... This can be copied over and then filled out more competely during draft create
  • how do we go about fetching updates to chart in a remote location? should re-running draft create fetch the latest updates to the remote chart?

michelleN avatar May 07 '18 17:05 michelleN

Another thing to keep in mind here is the chart needs to have some specific labels and annotations in order to be picked up by Draft.

I'm not sure we want to impose people maintaining production charts to add those labels and annotations. The question is whether we can inject those key + value pairs from the Helm client.

If not, the remote chart will need to include them.

radu-matei avatar May 10 '18 13:05 radu-matei

@michelleN, @InTheCloudDan - once #771 gets merged, you will be able to specify the directory of your charts, eliminating the need to symlink.

Getting back to remote charts, I think the restriction to include a label and annotation in your deployment template will stay - are we ok with having the label and annotation in the remote chart?

If so, then I might get started to implement passing the URL of a remote chart in draft.toml.

radu-matei avatar May 20 '18 16:05 radu-matei