You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/configuration/variables.mdx
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,18 +14,21 @@ While there is no need to explicitly define a config variable, it allows you to
14
14
15
15
## Built-In Variables
16
16
DevSpace provides a set of built-in variables:
17
-
-`${DEVSPACE_NAMESPACE}` contains the current namespace
17
+
18
18
-`${DEVSPACE_CONTEXT}` contains the name of the current kube-context (e.g. `minikube`)
19
-
-`${DEVSPACE_NAME}` contains the value of the `name` field of the current `devspace.yaml` file
19
+
-`${DEVSPACE_EXECUTABLE}` contains the path to the devspace binary used
20
20
-`${DEVSPACE_GIT_BRANCH}` contains the name of the local git branch that the user is currently on
21
21
-`${DEVSPACE_GIT_COMMIT}` contains the hash of the latest git commit in the current repository
22
+
-`${DEVSPACE_KUBECTL_EXECUTABLE}` contains the path to the kubectl binary
23
+
-`${DEVSPACE_NAME}` contains the value of the `name` field of the current `devspace.yaml` file
24
+
-`${DEVSPACE_NAMESPACE}` contains the current namespace
25
+
-`${DEVSPACE_PROFILE}` contains the profile that is currently active in DevSpace (e.g. the string provided via `-p / --profile` in a command such as `devspace dev -p my-profile`)
26
+
-`${DEVSPACE_RANDOM}` contains a random 6 character long string
22
27
-`${DEVSPACE_TIMESTAMP}` contains the current UNIX timestamp
23
-
-`${DEVSPACE_USER_HOME}` contains the path to the current user's home directory
24
28
-`${DEVSPACE_TMPDIR}` contains a path to a temporary folder that DevSpace cleans up after the `devspace` command terminates
25
-
-`${DEVSPACE_PROFILE}` contains the profile that is currently active in DevSpace (e.g. the string provided via `-p / --profile` in a command such as `devspace dev -p my-profile`)
29
+
-`${DEVSPACE_USER_HOME}` contains the path to the current user's home directory
26
30
-`${DEVSPACE_VERSION}` contains the version of DevSpace that is currently running
27
31
28
-
29
32
## Custom Variables
30
33
DevSpace lets you define custom varables inside `devspace.yaml` within the `vars` section.
0 commit comments