Skip to content

V and R

Gregory Nickonov edited this page Mar 1, 2019 · 4 revisions

V and R are two main variables used in the Sunstone components, helpers and other methods. V is the holder of the combined Values files and R is the main entry point for resource creation, setup and helpers declaration.

V for Values

V is the shortcut for Values and used to access combined values, declared in values.yaml, values files specified by -f <values file> command line options and individual overwrites, specified by the -s PATH=VALUE command line options. V hierarchy is read-only and can be accessed using dot path notation: V.a.b.c.

Take for example the following content of values.yaml:

frontend:
  image: tutum/hello-world
  host: hello.example.org

You can access individual values using V.frontend.image and V.frontend.host respectively.

R for Release

R is the shortcut for Release and used to define resources, resource initializers, resource helpers and scopes.

Clone this wiki locally