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

On `draft up` install helm charts

Open rnkhouse opened this issue 6 years ago • 5 comments

draft up installs helm charts from charts directory. Is there any way to install stable charts from helm.

For example, I have to run helm install stable/nginx-ingress even after draft up because chart is not in local repo.

rnkhouse avatar Jul 25 '18 19:07 rnkhouse

What is the use-case? If it is cause your chart/app requires nginx-ingress installed to be working? Have you looked into draft tasks? https://github.com/Azure/draft/blob/master/docs/reference/dep-008.md

bjornmagnusson avatar Jul 26 '18 09:07 bjornmagnusson

@bjornmagnusson Is there any way to check if the chart is being installed or not in draft task? So, no fresh install if the chart is already there.

rnkhouse avatar Jul 27 '18 16:07 rnkhouse

Probably yes, but have not explored that yet. The tasks are just cli commands. I typically do helm upgrade --install <chart>... in the pre-up tasks. This will ensure it is installed, if it is not, and upgraded if it is installed.

bjornmagnusson avatar Jul 28 '18 09:07 bjornmagnusson

As an alternative, could you use a Helm requirements.yaml file? In other words, use chart dependencies. Your inline chart may simply be empty, and you could leverage conditional flags (which would be set in draft.toml) to selectively install a dependency.

EronWright avatar Jul 29 '18 00:07 EronWright

sounds like a good area for documentation around this use case!

bacongobbler avatar Aug 04 '18 19:08 bacongobbler