Skip to content

Instantly share code, notes, and snippets.

@lindhe
Created March 5, 2024 08:20
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 lindhe/2ce50d6434cf77548d42105490df3e99 to your computer and use it in GitHub Desktop.
Save lindhe/2ce50d6434cf77548d42105490df3e99 to your computer and use it in GitHub Desktop.
Example CRD
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: foos.example.lindhe.io
spec:
group: example.lindhe.io
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
foo:
type: string
bar:
type: boolean
scope: Namespaced
names:
plural: foos
singular: foo
kind: Foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment