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

Draft up should allow --dry-run

Open thedrow opened this issue 7 years ago • 4 comments

Debugging templates is currently not as easy as it should be. Helm provides a --dry-run flag for its create action that allows users to understand what will be created. Currently draft lacks such mechanism for draft up.

thedrow avatar Feb 26 '18 15:02 thedrow

Oh very interesting! Could you expand a little more on what you'd like to see? When I read this, I think an end user might want something like this:

$ draft up --dry-run
Draft will bundle up this directory and send it to the draft server in this cluster: <insert cluster name> where it will 1. Create a Docker image: <insert image name:tag> and send it to this container registry: < insert registry name> 2. Deploy <insert image name:tag> using the helm chart provided in `charts/`

or

$ draft up --dry-run --verbose
Draft will bundle up this directory and send it to the draft server in this cluster: <insert cluster name> where it will 1. Create a Docker image: <insert image name:tag> and send it to this container registry: < insert registry name> 2. Deploy <insert image name:tag> using the helm chart provided in `charts/`. See what that chart deployment would look like below:
<insert rendered chart from helm install --dry-run --debug>

Is that what you were thinking as well or were you wanting something different?

michelleN avatar Mar 12 '18 14:03 michelleN

The second one is what I was expecting.

thedrow avatar Mar 13 '18 09:03 thedrow

Hey @michelleN is this still valid? I would like to work on this.

janowsiany avatar Oct 26 '18 20:10 janowsiany

Hey, @janowsiany! Sure, this is something we want - let us know if we can help in any way.

Thanks!

radu-matei avatar Oct 26 '18 22:10 radu-matei