kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch20/todo-custom/todo-crd.yaml

31 lines
648 B
YAML
Raw Normal View History

apiVersion: apiextensions.k8s.io/v1 # minimum 1.16
kind: CustomResourceDefinition
metadata:
name: todos.ch20.kiamol.net
labels:
kiamol: ch20
spec:
group: ch20.kiamol.net
scope: Namespaced
names:
plural: todos
singular: todo
kind: ToDo
shortNames:
- td
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
item:
type: string
dueDate:
type: string
format: date