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

[argo-events] - Issue installing CRDs "spec.versions[0].schema.openAPIV3Schema: Required value: schemas are required" #599

Closed
kostas-theo opened this issue Feb 26, 2021 · 5 comments
Labels

Comments

@kostas-theo
Copy link
Contributor

Describe the bug

I get the below failure when trying to install CRDs in the argo-events helm chart.

kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition (eventsources.argoproj.io):
    error: resource eventsources.argoproj.io was not successfully created by the Kubernetes API server : CustomResourceDefinition.apiextensions.k8s.io "eventsources.argoproj.io" is invalid: spec.versions[0].schema.openAPIV3Schema: Required value: schemas are required

  kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition (eventbus.argoproj.io):
    error: resource eventbus.argoproj.io was not successfully created by the Kubernetes API server : CustomResourceDefinition.apiextensions.k8s.io "eventbus.argoproj.io" is invalid: spec.versions[0].schema.openAPIV3Schema: Required value: schemas are required

  kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition (sensors.argoproj.io):
    error: resource sensors.argoproj.io was not successfully created by the Kubernetes API server : CustomResourceDefinition.apiextensions.k8s.io "sensors.argoproj.io" is invalid: spec.versions[0].schema.openAPIV3Schema: Required value: schemas are required

To Reproduce

$ kubectl apply -f ./charts/argo-events/crds/sensor-crd.yml

The CustomResourceDefinition "sensors.argoproj.io" is invalid: spec.versions[0].schema.openAPIV3Schema: Required value: schemas are required

Expected behavior
CRD should be created.

@kostas-theo
Copy link
Contributor Author

For further detail please see: https://v1-16.docs.kubernetes.io/docs/setup/release/notes/

The CustomResourceDefinition API type is promoted to apiextensions.k8s.io/v1 with the following changes:
- spec.versions[*].schema.openAPIV3Schema is now required when creating v1 CustomResourceDefinitions

@mrafieee
Copy link

mrafieee commented Mar 4, 2021

@kostas-theo are you going to merge this in new version? when this will be released?

@mrafieee
Copy link

mrafieee commented Mar 8, 2021

@kostas-theo I tried your changes in my CRDs and it is not working either, opened another ticket for it #617

@manupm87
Copy link

Moving CRDs to apiVersion: apiextensions.k8s.io/v1beta1 solves the issue

@kostas-theo
Copy link
Contributor Author

This is now resolved by: #605

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

No branches or pull requests

3 participants