Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source.toolkit.fluxcd.io manifest with name prometheus.yaml error: Request vscode/content failed unexpectedly without providing any details.YAML(768) #1013

Open
2 tasks
gmarcot opened this issue Mar 5, 2024 · 1 comment

Comments

@gmarcot
Copy link

gmarcot commented Mar 5, 2024

Describe the bug

i have a manifest file name: prometheus.yaml and , by default, the extension point to schema https://json.schemastore.org/prometheus.json but it's not my case because this a manifest relate to kind HelmRepository.
This is the content:

cat prometheus.yaml
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: prometheus
spec:
  interval: 24h0m0s
  url: https://prometheus-community.github.io/helm-charts

Expected Behavior

the file contents are not marked as error

Current Behavior

Unable to load schema from 'https://json.schemastore.org/prometheus.json': Request vscode/content failed unexpectedly without providing any details.YAML(768)

Steps to Reproduce

  1. create a file with name : prometheus.yaml
  2. add this content or any others type of contents like:
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: prometheus
spec:
  interval: 24h0m0s
  url: https://prometheus-community.github.io/helm-charts
  1. Open the file in vscode and see the error

Environment

  • [ X] Windows
  • Mac
  • [ X] Linux
  • other (please specify)
@gmarcot
Copy link
Author

gmarcot commented Mar 5, 2024

NOTE: if i rename the prometheus.yaml file the error disappear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant