New Features
- New flag
--parent-profile
to apply multiple profiles with flags:
# Applies the profiles profile1, profile2, profile3 and profile4 in this order
devspace dev --parent-profile=profile1 --parent-profile=profile2 --parent-profile=profile3 --profile=profile4
# You can also leave out the --profile flag and only the profiles
# profile1, profile2 and profile3 are appied
devspace dev --parent-profile=profile1 --parent-profile=profile2 --parent-profile=profile3
- New options
upload
anddownload
for hooks to upload or download files from a container:
hooks:
# Upload the complete local bin folder to the container path ./bin
- upload:
localPath: bin
containerPath: bin
where:
container:
imageName: default
when:
after:
deployments: deployment-1
# Download a single file from the container to the local path
- download:
localPath: build/artifact.jar
containerPath: build/artifact-test.jar
where:
container:
imageName: java
when:
after:
deployments: deployment-2
- New predefined variable
${DEVSPACE_VERSION}
- New options
hooks.when.before.purgeDeployments
,hooks.when.after.purgeDeployments
andhooks.when.onError.purgeDeployments
to execute hooks ondevspace purge
- New option
dev.interactive.terminal.workDir
to specify a working directory to open the terminal in - New flag
--workdir
fordevspace enter
anddevspace dev
to specify a working directory to open the terminal in or execute a command in
Other
- Profiles can now be used to change the
commands section
. It is now possible to have commands that are only available or change with specific profiles. A profile can be used withdevspace run
by supplying the flag before therun
:devspace --profile my-special-command-profile run profile-command
- Removed several options in
devspace init
that would lead to an incompletedevspace.yaml
- The flags
--save-vars
and--restore-vars
are now global - Fixed an issue where replacing certain fields with
profiles.replace
would lead to a yaml error - Fixed an issue where deployment within a cluster kube-context was not possible
- Fixed an issue where the namespace was wrong when executing devspace within a cluster
- Fixed a potential race during initial sync upload