Skip to content

Edit Yaml of CRD: metadata fields are considered invalid? #1151

@guettli

Description

@guettli

Describe the bug

I edit the CRD of the kubebuilder example:

Image

That is valid: Great!

  foo: bar

That is not valid: Great!

  does-not-exit: broken

But why are the metadata fields (labels, name, namespace, ...) considered invalid?

I see:

Property namespace is not allowed.yaml-schema: kubernetes://schema/webapp.my.domain/v1%40guestbook(513)


I attached the guestbook CRD.

guestbook-crd.yaml

Environment

  • Linux

extension version: 1.18.0

vscode:

Version: 1.104.1
Commit: 0f0d87fa9e96c856c5212fc86db137ac0d783365
Date: 2025-09-17T23:36:24.973Z
Electron: 37.3.1
ElectronBuildId: 12404162
Chromium: 138.0.7204.235
Node.js: 22.18.0
V8: 13.8.258.31-electron.0
OS: Linux x64 6.8.0-79-generic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions