devspace icon indicating copy to clipboard operation
devspace copied to clipboard

devspace print showing args section as array

Open Orgil opened this issue 2 years ago • 1 comments

What happened?
devspace print command showing container arg key as array and indentation is wrong. However deployment works ok. I'm guessing that only printing to display have problem.

What did you expect to happen instead?
correctly parse container arg key.

How can we reproduce the bug? (as minimally and precisely as possible)

My devspace.yaml:

- name: test
  image: test/test
  args:
    - node

devspace print shows

- name: test
  image: test/test
- args:
  - node

Local Environment:

  • DevSpace Version: 5.18
  • Operating System: mac
  • ARCH of the OS: i386 **Kubernetes Cluster: docker for desktop mac
  • Kubernetes Version: 1.24

Anything else we need to know?

/kind bug

Orgil avatar Jun 15 '22 02:06 Orgil

@Orgil thanks for creating this issue! It works correctly for me with the devspace.yaml:

version: v1beta11

deployments:
  - name: test
    helm:
      componentChart: true
      values:
        containers:
          - name: test
            image: test/test
            args:
              - node

DevSpace will reorder the args to the top, but that is expected and does not invalidate the yaml file.

FabianKramm avatar Jun 17 '22 08:06 FabianKramm

Thanks. it is working correctly on v6. it was little inconvenient to verify using print command.

Orgil avatar Aug 24 '22 05:08 Orgil