draft-classic
draft-classic copied to clipboard
On `draft up` install helm charts
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.
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 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.
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.
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.
sounds like a good area for documentation around this use case!