github devspace-sh/devspace v5.5.0

latest releases: v6.3.12, v6.3.11, v6.3.10...
3 years ago

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

Don't miss a new devspace release

NewReleases is sending notifications on new releases.