Azure / draft-classic

A tool for developers to create cloud-native applications on Kubernetes.
https://draft.sh
MIT License
3.92k stars 397 forks source link

On `draft up` install helm charts #844

Open rnkhouse opened 5 years ago

rnkhouse commented 5 years ago

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.

bjornmagnusson commented 5 years ago

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

rnkhouse commented 5 years ago

@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.

bjornmagnusson commented 5 years ago

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.

EronWright commented 5 years ago

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.

bacongobbler commented 5 years ago

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