Required Versions
DevSpace allows you to define certain requirements that must be met to use DevSpace for a certain project. This is useful if you want to ensure that all developers that use DevSpace in a project have a certain DevSpace version, specific plugins or commands installed. You can define one or multiple of:
- DevSpace Version (
require.devspace
): You can define a required DevSpace version - Installed Plugins (
require.plugins
): You can define required plugins and their version - Installed Commands (
require.commands
): You can define arbitrary commands such askubectl
orhelm
that need to be present locally in a specific version or range
Requirements are defined in the require
section of the devspace.yaml
.
- DevSpace Version
- Plugins
- Commands
# You can either specify an exact version or a version range or even
# multiple versions.
require:
devspace: '>= 4.0, < 6.0'
# Each plugin that is defined under plugins needs to be installed
# in the required version.
require:
plugins:
- name: loft
version: ">= 1.11.0"
require:
# By default devspace will try to call the command 'NAME version'
# and use the regex '(v\\d+\\.\\d+\\.\\d+)' to find the version
commands:
- name: helm
version: '> 3.0.0'
- name: my-custom-command
# Override the default args
versionArgs: ["--version"]
# Override the default reg ex
versionRegEx: "Version: (v?\\d+\\.\\d+\\.\\d+)"
version: '4.6.7'
Configuration
require
required
Require defines what DevSpace, plugins and command versions are required to use this config and if a condition is not
fulfilled, DevSpace will fail.
require
required devspace
required string
DevSpace specifies the DevSpace version constraint that is needed to use this config
devspace
required string commands
required object[]
Commands specifies an array of commands that need to be installed locally to use this config
commands
required object[] plugins
required object[]
Plugins specifies an array of plugins that need to be installed locally
plugins
required object[]