Azure / draft-classic

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

Provide documentation about exposed YAML variables #716

Closed EvanDarwin closed 6 years ago

EvanDarwin commented 6 years ago

I've been struggling to configure environments correctly with draft, since I can't use helm directly and there doesn't seem to be any documentation anywhere about what values are exposed on the .Draft template variable in the helm YAML files.

Are they available anywhere?

radu-matei commented 6 years ago

Hi, @EvanDarwin!

Among the values injected by Draft (I hope I'm not missing any):

What are you trying to do?

bacongobbler commented 6 years ago

Yep! You can use helm inspect values app_name to get the live values injected by Draft, or see DEP 002 - Draft Design. :)

EvanDarwin commented 6 years ago

Awesome, thanks for the info @bacongobbler. Kubernetes is really complex and draft makes my life much easier!

Also sorry for making a new issue, but hopefully others will be able to find this info in Google now.

EvanDarwin commented 6 years ago

@radu-matei -- For some reason your post didn't appear for me earlier. I was trying to have a dynamic Values.yaml file that picked the correct value based on the configuration (as is possible here https://github.com/kubernetes/helm/issues/2620#issuecomment-314719592), but it looks like the environment isn't exposed by draft.