Cant switch profile if profiles are included via $(cat)
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:
)
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 thanks for reporting this issue! Seems like the cat is not correctly resolved on the devspace use profile command. We will fix that!
@vladitot since this functionality will be removed in v6 I'm not sure if it's a good idea to fix that now
@FabianKramm hello. Tell me please, why it will be removed in v6? Can you show me information about new profiles functionality or smth?
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.
Ok, when the docs will be ready? And when v6 release is planned?
Docs should be ready on monday next week, and release will be in approx 2-3 Weeks