Skip to content

Commit be4b17b

Browse files
author
Alexis Sellier
committed
Alphabetical order
1 parent ffa1317 commit be4b17b

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

docs/pages/configuration/variables.mdx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,21 @@ While there is no need to explicitly define a config variable, it allows you to
1414

1515
## Built-In Variables
1616
DevSpace provides a set of built-in variables:
17-
- `${DEVSPACE_NAMESPACE}` contains the current namespace
17+
1818
- `${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
2020
- `${DEVSPACE_GIT_BRANCH}` contains the name of the local git branch that the user is currently on
2121
- `${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
2227
- `${DEVSPACE_TIMESTAMP}` contains the current UNIX timestamp
23-
- `${DEVSPACE_USER_HOME}` contains the path to the current user's home directory
2428
- `${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
2630
- `${DEVSPACE_VERSION}` contains the version of DevSpace that is currently running
2731

28-
2932
## Custom Variables
3033
DevSpace lets you define custom varables inside `devspace.yaml` within the `vars` section.
3134

0 commit comments

Comments
 (0)