Skip to content

devspece dev with custom manifests does not work with kubectl 1.24.0 #2069

@rreckel

Description

@rreckel

What happened?
devspace dev fails with error:

[fatal]  error deploying: error deploying manifests: malformed version: 1.24.0
Kustomize Version: v4.5.4
Please make sure `kubectl apply` does work locally with manifest `manifests.yaml`

Using kubectl apply -f manifests.yaml works without an error.

What did you expect to happen instead?
No error

How can we reproduce the bug? (as minimally and precisely as possible)
Use a devspace.yaml with:

deployments:
- name: manifests
  kubectl:
    manifests:
    - manifests.yaml

and install kubectl 1.24.0

Local Environment:

  • DevSpace Version: devspace version 5.18.4
  • Operating System: mac
  • ARCH of the OS: i386
    Kubernetes Cluster:
  • Kubernetes Version: [use kubectl version]
    Client Version: v1.24.0
    Kustomize Version: v4.5.4
    Server Version: v1.21.12

Anything else we need to know?

The problem seems to be a change in version reportinng of kubectl.
I suppose that kubectl reports the version without a leading "v".
This fails the regex in line:
https://github.com/loft-sh/devspace/blob/1ff15ddcb76e45e1b0188e1933b689f9f4becee4/pkg/util/constraint/version.go#L63

/kind bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/devIssues related to devspace devkind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions