Skip to content

Update the CRD yaml manifest mentioned in custom_object example #1432

Closed

Description

@Priyankasaggu11929

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

Activity

  1. Priyankasaggu11929 commented on Apr 27, 2021

    @Priyankasaggu11929
    ContributorAuthor

    /assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

kind/documentationCategorizes issue or PR as related to documentation.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions