mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 09:39:56 +00:00
38 lines
885 B
YAML
38 lines
885 B
YAML
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
name: coffees.container.training
|
|
spec:
|
|
group: container.training
|
|
scope: Namespaced
|
|
names:
|
|
plural: coffees
|
|
singular: coffee
|
|
kind: Coffee
|
|
shortNames:
|
|
- cof
|
|
versions:
|
|
- name: v1alpha1
|
|
served: true
|
|
storage: true
|
|
schema:
|
|
openAPIV3Schema:
|
|
type: object
|
|
required: [ spec ]
|
|
properties:
|
|
spec:
|
|
type: object
|
|
properties:
|
|
taste:
|
|
description: Subjective taste of that kind of coffee bean
|
|
type: string
|
|
required: [ taste ]
|
|
additionalPrinterColumns:
|
|
- jsonPath: .spec.taste
|
|
description: Subjective taste of that kind of coffee bean
|
|
name: Taste
|
|
type: string
|
|
- jsonPath: .metadata.creationTimestamp
|
|
name: Age
|
|
type: date
|