---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: documents.kube.rs
spec:
  group: kube.rs
  names:
    categories: []
    kind: Document
    plural: documents
    shortNames:
      - doc
    singular: document
  scope: Namespaced
  versions:
    - additionalPrinterColumns: []
      name: v1
      schema:
        openAPIV3Schema:
          description: "Auto-generated derived type for DocumentSpec via `CustomResource`"
          properties:
            spec:
              description: Our document properties that will be wrapped in a Kubernetes resource as a Spec struct
              properties:
                content:
                  type: string
                hide:
                  type: boolean
                title:
                  type: string
              required:
                - content
                - hide
                - title
              type: object
            status:
              nullable: true
              properties:
                hidden:
                  type: boolean
              required:
                - hidden
              type: object
          required:
            - spec
          title: Document
          type: object
      served: true
      storage: true
      subresources:
        status: {}
