Support for multiple YAML documents in single file
See original GitHub issueSome of my Kubernetes yaml files are in form of:
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: web-deployment
...
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: userdirectory-deployment
...
it looks like the autocomplete/<kbd>Ctrl</kbd>+<kbd>space</kbd> is not working when there are multiple objects in a single yaml file.
Should this be supported?
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Ways of loading multiple YAML Documents in a single file.
Hi. Is it possible to load multiple YAML documents in a single file with a named reference in Snake YAML. e.g.: ---NM host1...
Read more >Kubernetes: Merge Multiple YAML Files Into One
We would like a build a Multi Resource File from separate YAML files for Kubernetes. Let's create one using Kustomize! We can use...
Read more >Support multiple yaml documents in the same file #24 - GitHub
Hello, How can I read multiple yaml documents from a single file ? Is that supported? In yaml, you can write multiple documents...
Read more >python - How to parse a YAML file with multiple documents?
What I would like is for it to parse each of these documents as a separate object, perhaps all of them in the...
Read more >OpenShift 4.8 Blog: Import Multiple YAML Files
Previously, on our Import YAML page, you could add only a single YAML entry at a time. Now, you can easily import multiple...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No apologies needed. I’m just glad its working as expected 😄
Resolved 😦
I had a conflicting YAML extension (that I’d forgotten I had installed). I disabled all extensions and reinstalled
redhat.vscode-yaml
and it works as expected.By a process of elimination, I identified
djabraham.vscode-yaml-validation
(link) as the conflicting extension.When that’s disabled, everything WAI.
Apologies for wasting your time.