Skip to content

Releases: devspace-sh/devspace

v5.5.0

08 Dec 16:31
5ad9f82
Compare
Choose a tag to compare

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 and images.*.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

08 Dec 15:25
5ad9f82
Compare
Choose a tag to compare
v5.5.0-beta.6 Pre-release
Pre-release
Merge pull request #1247 from FabianKramm/master

build: fix GOPATH

v5.4.1

30 Nov 09:15
22d107c
Compare
Choose a tag to compare

Fixes

  • Fixes an issue where devspace was wrongly tagged as a beta release

v5.4.0

25 Nov 10:11
6312e8c
Compare
Choose a tag to compare

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 running devspace dev or devspace 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

19 Nov 12:24
b61ab8e
Compare
Choose a tag to compare

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 and strategicMerge in profiles which can now be used as an alternative to replace and patches (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 for devspace 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

18 Nov 14:49
b23879a
Compare
Choose a tag to compare
v5.3.0-beta.0 Pre-release
Pre-release
Merge pull request #1217 from harryttd/patch-1

Fix patches.mdx

v5.2.2

10 Nov 16:29
2b69cf7
Compare
Choose a tag to compare

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

10 Nov 10:47
2b69cf7
Compare
Choose a tag to compare
v5.2.2-beta.0 Pre-release
Pre-release

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

06 Nov 12:24
e069ac5
Compare
Choose a tag to compare

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

23 Oct 15:15
b37fc1f
Compare
Choose a tag to compare

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 and deployments.*.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 different devspace.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