devspace icon indicating copy to clipboard operation
devspace copied to clipboard

Cant switch profile if profiles are included via $(cat)

Open vladitot opened this issue 3 years ago • 6 comments

What happened? I upgraded to 5.18.5. There is new feature: profiles can be described as includes via $(cat). It perfectly working, if you use --profile flag. But if you try call devspace use profile local - there is an error, says profile is not found. If I change it manually in .devspace/generated.yaml - profile changes. If I try devspace list profiles, it says there is no entries found.

What did you expect to happen instead? I expect, that profile is changing correctly to my "local" profile if it is included via $(cat), when I enter devspace use profile local

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

My devspace.yaml: image

version: 5.18.5, MacOS
...

Local Environment:

  • DevSpace Version: 5.18.5
  • Operating System: mac
  • ARCH of the OS: ARM64(M1) Kubernetes Cluster:
  • Cloud Provider: Rancher-Desktop

Anything else we need to know?

/kind bug

vladitot avatar May 27 '22 06:05 vladitot

@vladitot thanks for reporting this issue! Seems like the cat is not correctly resolved on the devspace use profile command. We will fix that!

FabianKramm avatar May 30 '22 08:05 FabianKramm

@vladitot since this functionality will be removed in v6 I'm not sure if it's a good idea to fix that now

FabianKramm avatar Jun 17 '22 08:06 FabianKramm

@FabianKramm hello. Tell me please, why it will be removed in v6? Can you show me information about new profiles functionality or smth?

vladitot avatar Jun 17 '22 08:06 vladitot

We don't remove profiles completely, rather we remove the devspace use profile command as it makes DevSpace harder to understand if the profile is cached. In v6 (for which we will release docs very soon), we rather recommend to use pipelines and flags instead, although profiles still will work fine.

FabianKramm avatar Jun 17 '22 09:06 FabianKramm

Ok, when the docs will be ready? And when v6 release is planned?

vladitot avatar Jun 17 '22 09:06 vladitot

Docs should be ready on monday next week, and release will be in approx 2-3 Weeks

FabianKramm avatar Jun 17 '22 09:06 FabianKramm