Skip to content

Server tries to fetch CRD schema for some builtin kubernetes resources #1204

@artem-nefedov

Description

@artem-nefedov

Describe the bug

The new functionality to fetch k8s CRD schema that was introduced in version 1.20.0 does incorrectly try to fetch it for some (not all) builtin resources.

For example, I get the error Yamlls: Unable to load schema from 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/rbac.authorization.k8s.io/rolebinding_v1.json': No content. [768] with document:

apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding

I believe this happens for all resources in rbac.authorization.k8s.io/v1, all of which are builtin resources, not CRDs.

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)

yaml-language-server version 1.21.0, used in integration with helm-ls

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions