Skip to content

v5.14.0

Compare
Choose a tag to compare
@FabianKramm FabianKramm released this 02 Jun 13:30
b814db5

Changes

  • New require section that allows you to define certain requirements that must be met to use DevSpace for a project. This is useful for example if you want to ensure that all developers that use DevSpace in a project have a certain DevSpace version, specific plugins or commands installed (please take a look at the DevSpace documentation for more information). For example:
require:
  # Will require that at least DevSpace version 5.0.0 is installed but not higher than 6.0.0
  devspace: '>= 5.0.0, < 6.0.0' 
  # Will require that the loft plugin is installed in version 1.12.0
  plugins:
    - name: loft
      version: '1.12.0' 
  # Will require that helm is installed with at least version 3.5.0
  commands:
    - name: helm
      versionArgs: ["version"]
      versionRegEx: 'Version:"([^"]+)"'
      version: '>= 3.5.0'
  • New option imageSelector for dev.sync, dev.ports, dev.terminal and dev.replacePods that allows you to select containers directly by their container image instead of specifying the config name as in imageName. This makes it easier for certain use cases as you can now omit the images section sometimes completely:
version: v1beta10
vars:
  - name: IMAGE
    value: registry.com/production:latest
deployments:
  - name: my-chart
    helm:
      chart:
        name: my-application
      values:
        image: ${IMAGE}
dev:
  terminal:
    imageSelector: ${IMAGE}
  replacePods:
    - imageSelector: ${IMAGE}
      replaceImage: registry.com/dev:latest
      patches:
        - op: replace
          path: spec.containers[0].workingDir
          value: /app
        - op: replace
          path: spec.containers[0].command
          value: ["sleep"]
        - op: replace
          path: spec.containers[0].args
          value: ["9999999999"]
  ports:
    - imageSelector: ${IMAGE}
      forward:
        - port: 3000
  sync:
    - imageSelector: ${IMAGE}
      uploadExcludePaths:
        - node_modules
  • Removed the flag --show-logs in devspace render, devspace render will now show the log output by default. If you want to hide the log output please use devspace render --silent instead
  • devspace reset pods will now reset scaled down deployments, statefulsets & replicasets even though no resettable pod could be found
  • devspace init now uses imageSelector instead of imageName to generate a getting started configuration
  • DevSpace will now use the original tag (if there was one specified) during tag rewriting if the image was never built
  • DevSpace will now also delete the replaced pods created through dev.replacePods during devspace purge
  • Removed the wrong context / namespace warnings for devspace enter, devspace attach and devspace logs as these commands are usually used without a devspace.yaml and the warning can be confusing especially if used together with profiles
  • devspace update plugin will now allow you to install older plugin versions as well when --version is specified