Skip to content

Issue with --no-warn when using commands #2837

@fmc100

Description

@fmc100

What happened?
I noticed --no-warn or anything like that doesn't work for devspace run even if the run is just doing a command that is just echo "hello".

What did you expect to happen instead?
I expected there to be a way to ignore warn Are you using the correct namespace? or warn Deploying into the 'default' namespace is usually not a good idea as this namespace cannot be deleted warnings. These warnings didn't pop up until version 6.3.11 of devspace.

How can we reproduce the bug? (as minimally and precisely as possible)
Make sure you have switched namespaces or just point to default then run devspace run test with the below devspace.yaml. You should get a warning about the context, and have no way to ignore that warning. If you lower your version down to 6.3.10 then it should work again.

My devspace.yaml:

version: v2beta1

commands:
  test: |-
    echo "hello"

Local Environment:

  • DevSpace Version: 6.3.12
  • Operating System: mac
  • ARCH of the OS: i386
    Kubernetes Cluster:
  • Cloud Provider: aws
  • Kubernetes Version: v1.29.1-eks-b9c9ed7

Anything else we need to know?
I tried this out in other versions and it worked in 6.3.10 or lower so I think the change is in 6.3.11, possibly this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions