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

Update the CRD yaml manifest mentioned in custom_object example #1432

Closed
Priyankasaggu11929 opened this issue Apr 27, 2021 · 1 comment · Fixed by #1433
Closed

Update the CRD yaml manifest mentioned in custom_object example #1432

Priyankasaggu11929 opened this issue Apr 27, 2021 · 1 comment · Fixed by #1433
Assignees
Labels
kind/documentation Categorizes issue or PR as related to documentation.

Comments

@Priyankasaggu11929
Copy link
Contributor

Link to the issue (please include a link to the specific documentation or example):

https://github.com/kubernetes-client/python/blob/master/examples/custom_object.py#L22-L38

Description of the issue (please include outputs or screenshots if possible):

The custom_object.py uses a Custom Resource Definition (CRD) to create a custom object. And so, it mentions to apply the following yaml manifest first (before executing the example script):

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: crontabs.stable.example.com
spec:
  group: stable.example.com
  versions:
    - name: v1
      served: true
      storage: true
  scope: Namespaced
  names:
    plural: crontabs
    singular: crontab
    kind: CronTab
    shortNames:
    - ct

But on applying the above yaml manifest, it throws the following error:

The CustomResourceDefinition "crontabs.stable.example.com" is invalid: spec.versions[0].schema.openAPIV3Schema: Required value: schemas are required
@Priyankasaggu11929 Priyankasaggu11929 added the kind/documentation Categorizes issue or PR as related to documentation. label Apr 27, 2021
@Priyankasaggu11929
Copy link
Contributor Author

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation.
Projects
None yet
1 participant