Skip to content

Instantly share code, notes, and snippets.

@tapih
Created June 1, 2020 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tapih/f339a2d558cf49b0cd6320b7b2f1821b to your computer and use it in GitHub Desktop.
Save tapih/f339a2d558cf49b0cd6320b7b2f1821b to your computer and use it in GitHub Desktop.
Deeply nested CRD
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.9
creationTimestamp: null
name: foos.myso.cybozu.com
spec:
group: myso.cybozu.com
names:
kind: Foo
listKind: FooList
plural: foos
singular: foo
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: Foo is the Schema for the Foo API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: FooSpec defines the desired state of Foo.
properties:
t9:
items:
properties:
t5:
items:
properties:
t4:
items:
properties:
t3:
items:
properties:
t2:
items:
properties:
t1:
items:
properties:
field:
type: string
type: object
type: array
type: object
type: array
type: object
type: array
type: object
type: array
type: object
type: array
type: object
type: array
type: object
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment