New Features
- Added buildkit & buildkit incluster support to devspace (#1383). This will use
docker buildx
to build images either with the local docker daemon (or minikube daemon if available) or build images directly in the kubernetes cluster with the buildkit kubernetes driver (see the devspace docs for more information). For example:
images:
myBuildKitImage:
image: buildkit/local
build:
# This will enable building with build kit
buildKit: {}
myInClusterBuildKitImage:
image: buildkit/incluster
build:
buildKit:
# By default this will use the devspace target namespace to build
# within kubernetes. This will deploy a new priviledged
# deployment that acts as daemon for docker to build with.
inCluster: {}
# You can also use rootless building with buildKit
# rootless: true
# You could also use another namespace with a shared
# build deployment to have a global cache.
# namespace: shared-builder
- It is now allowed to use variables in the
command
,args
orcommands
field of other variables. For example these variable definitions are now valid:
vars:
- name: SPECIAL_NAMESPACE
command: "./script.sh"
args: ["${DEVSPACE_NAMESPACE"}]
- name: OTHER_VARIABLE
command: "${SPECIAL_NAMESPACE}"
args: ["other-args-${DEVSPACE_NAMESPACE}"]
- New config option
dev.sync.arch
anddev.ports.arch
to specify the target container architecture. Currentlyamd64
andarm64
are supported (#1389)
Fixes
- Fixed an issue on older windows versions where DevSpace could panic with
Invalid standard handle identifier
- Fixed an issue where an error during namespace create was ignored (#1382)
- Fixed an issue where
.dockerignore
was used even though adevspace.dockerignore
existed - Fixed an issue where DevSpace would not respect the docker proxy settings for building (#1378)
- Fixed an issue where DevSpace could install broken plugins. DevSpace will now check before installing or updating if the plugin binary is executable and returns a zero exit code if executed without arguments. (#1379)
- Fixed an issue where building images with minikube and
docker.useCli
ordocker.useBuildKit
would not target the minikube daemon correctly (#1386) - Fixed an issue where
devspace use profile
anddevspace list profiles
would try to fill in config variables
Other Changes
- DevSpace will now create non existing namespaces during
devspace build
for kaniko builds (#1384) - DevSpace will now add
.devspace/
to the.dockerignore
duringdevspace init
(#1371) - DevSpace will now print executed helm commands during helm deployment
- DevSpace will now use the deployment, statefulset or replicaset name instead of the pod name for the log streaming prefix if no
app.kubernetes.io/component
label is found