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

kind List not found in v1 groupversion #148

Open
jplitza opened this issue Dec 11, 2024 · 0 comments
Open

kind List not found in v1 groupversion #148

jplitza opened this issue Dec 11, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@jplitza
Copy link

jplitza commented Dec 11, 2024

What happened?

Validating a manifest containing a List failed with the error message:

failed to retrieve validator: kind List not found in v1 groupversion

What did you expect to happen?

I expect validation to succeed for every manifest I can apply without errors via kubectl create -f. Since Lists are understood by kubectl create, I expect them to be understood by kubectl validate.

How can we reproduce it (as minimally and precisely as possible)?

Minimal (kubectl create complains there is nothing to apply, though):

apiVersion: v1
kind: List
items: []

A bit more extensive (actually works with kubectl create):

apiVersion: v1
metadata:
  namespace: default
kind: List
items:
- apiVersion: v1
  kind: ConfigMap
  metadata:
    name: test
  data:
    test: "foo"

Anything else we need to know?

No response

Kubernetes version

$ kubectl version
Client Version: v1.31.2
Kustomize Version: v5.4.2
Server Version: v1.30.4

kubectl-validate v0.0.4

@jplitza jplitza added the kind/bug Categorizes issue or PR as related to a bug. label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant