Releases: devspace-sh/devspace
Releases · devspace-sh/devspace
v5.5.0
Changes
- New option
hooks.*.when.onError
to execute hooks if an error has occured (#1239):
# This will print the error to the console that has occured during a deployment
hooks:
- command: "sh"
os: linux,darwin
args:
- -c
- 'echo "The following error has occured: $DEVSPACE_HOOK_ERROR"'
when:
onError:
deployments: all
- The following environment variables will now be passed to an executed hook:
- DEVSPACE_HOOK_KUBE_CONTEXT: the name of the kube context that was used
- DEVSPACE_HOOK_KUBE_NAMESPACE: the name of the kube namespace that was used
- DEVSPACE_HOOK_OS_ARGS: json encoded os.Args that were used to call devspace
- DEVSPACE_HOOK_ERROR: if an error has occured contains the error (only for onError hooks)
- New option
dependencies.*.vars
to override variables in dependency configs:
# This will deploy the same dependency 2 times with different variable values
dependencies:
- source:
path: my-dependency
vars:
- name: TEST
value: value-1
- source:
path: my-dependency
vars:
- name: TEST
value: value-2
- New config options
images.*.build.kaniko.nodeSelector
,images.*.build.kaniko.initImage
andimages.*.build.kaniko.serviceAccount
that make the kaniko pod creation more customizable (#1240) - From now on, the sync helper binary, component chart and ui are compiled into the devspace binary and not downloaded anymore. This should reduce the time to deploy charts and makes it easier to use devspace in air-gapped environments
- Fixes an issue in dependencies where loading a config with variables from a relative local path command could result in an error
v5.5.0-beta.6
Merge pull request #1247 from FabianKramm/master build: fix GOPATH
v5.4.1
Fixes
- Fixes an issue where devspace was wrongly tagged as a beta release
v5.4.0
New Features
- Added
source: command
to variables. It is now possible to retrieve variable values from commands, e.g.:
images:
database:
image: "mysql:${MYSQL_VERSION}"
vars:
- name: MYSQL_VERSION
source: command
command: echo
args: ["5.5"]
- New
DEVSPACE_GIT_BRANCH
predefined variable that holds the current git branch - New option
tagsAppendRandom
that automatically adds a random suffix to each tag and avoids the rebuilding problem described in #1188
Fixes
- Fixes an issue where docker client creation for minikube could fail on windows and was not shown in DevSpace
- Fixes an issue where local paths were wrong when using
devspace dev --config other-folder/devspace.yaml
(#1226) - Fixes a race condition in sync where the initial sync wouldn't wait for uploading a single file (#1223)
- Fixes an issue where
devspace restart
wouldn't work without runningdevspace dev
ordevspace sync
prior - Fixes an issue where pod restarts could lead to a timeout during
devspace deploy/dev --wait
- Improves the error message when injecting of the restart helper fails
v5.3.0
New Features
- New section
pullSecrets
that lets you define additional image pull secrets devspace should create in the target namespace (for more informations take a look at the docs):
images: ...
deployments: ...
pullSecrets:
# Pull secret for the registry my-registry.com:5000
- registry: my-registry.com:5000
username: my-user
password: my-password
# Name of the pull secret
secret: my-pull-secret-name
# Service accounts to add this pull secret to
serviceAccounts:
- default
- my-other-service-account
- New options
merge
andstrategicMerge
in profiles which can now be used as an alternative toreplace
andpatches
(for more informations take a look at the docs):
images:
backend:
image: john/devbackend
backend-debugger:
image: john/debugger
deployments:
- name: backend
helm:
componentChart: true
values:
containers:
- image: john/devbackend
- image: john/debugger
profiles:
- name: production
merge:
images:
# Change the backend image
backend:
image: john/prodbackend
# Override deployments
deployments:
- name: backend
helm:
componentChart: true
values:
containers:
- image: john/prodbackend
- New events for plugins & more context information from where a command was called (we also have now a complete plugin guide in the docs)
- New flag
--skip-deploy
fordevspace deploy
to use it for building images or creating pull secrets only - New option
hooks.[*].os
to execute hooks only on certain operating systems - New events for dependencies and pull secrets for hooks
Other Changes
devspace dev -i
is now deprecated and will be removed with the next major devspace version. Please use profiles instead- Fixes an issue where
hooks
were not correctly parsed in plugins - Removed some unused dependencies
v5.3.0-beta.0
Merge pull request #1217 from harryttd/patch-1 Fix patches.mdx
v5.2.2
Changes
- Updates kaniko default version to v1.3.0
- Fixes an issue in kaniko build where the target was not set correctly
- Fixes an issue in kaniko build on windows where the restart helper couldn't be injected
- Fixes an issue in kaniko build on windows where files were not executable
v5.2.2-beta.0
Changes
- Updates kaniko default version to v1.3.0
- Fixes an issue in kaniko build where the target was not set correctly
- Fixes an issue in kaniko build on windows where the restart helper couldn't be injected
- Fixes an issue in kaniko build on windows where files were not executable
v5.2.1
Changes
- Updated the component-chart to version v0.7.0 and added several new config options to initContainers (#1207)
- If devspace cannot load a kubernetes config it falls back to the in cluster config if there is any (#1205)
- devspace will now stream logs from all containers in a pod that have a matching image (#1211)
- Fixed an issue where in certain circumstances a nil pointer panic could occur when devspace tries to ask a question
v5.2.0
From v5.2.0 onward devspace uses the locally installed helm cli instead of helm as a library. If no available helm v2 or v3 binary was found, devspace will automatically install helm.
New Features
- Adds
deployments.*.helm.upgradeArgs
,deployments.*.helm.templateArgs
anddeployments.*.helm.deleteArgs
to helm options (#1192) - Adds a new environment variable
DEVSPACE_SKIP_VERSION_CHECK
to skip version check (#1198) - Adds a new config option
profiles.*.parents
that can define multiple parent profiles, e.g.: (#1199)
version: v1beta9
profiles:
- name: multi-parents
# New field that applies the profile deployments first and then the profile images
parents:
- profile: deployments
- profile: images
- name: deployments
replace:
deployments:
- name: my-deployment
helm:
componentChart: true
values:
containers:
- name: test
- name: images
replace:
images:
test:
image: mydockeruser/devspace
createPullSecret: true
- Adds a new config option
profiles.*.parents.*.source
that can define profiles that lie in a differentdevspace.yaml
: (#1200)
version: v1beta9
profiles:
- name: dev
parents:
- profile: images
source:
path: other-folder # devspace.yaml will be automatically appended to the path (same syntax as with dependencies)
# or load from url
# path: https://raw.githubusercontent.com/my-org/my-repo/master/devspace.yaml
# or load from git
# git: https://github.com/devspace-cloud/devspace.git
- profile: deployments
source:
path: other-folder-2
Other
- Fixes an issue where add patches wouldn't work as expected
- Upgrade kubernetes to v1.19.2
- Removes helm v3 as a code dependency