apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: cars.openshift.pub
spec:
group: openshift.pub
names:
kind: Car
listKind: CarList
plural: cars
singular: car
shortNames:
- c
scope: Namespaced
subresources:
status: {}
version: v1
validation:
additionalPrinterColumns:
- JSONPath: .status.conditions[?(@.type=="Succeeded")].status
name: Succeeded
type: string
- JSONPath: .status.conditions[?(@.type=="Succeeded")].reason
name: Reason
type: string
- JSONPath: .spec.date_of_manufacturing
name: Produced
type: date
- JSONPath: .spec.engine
name: Engine
type: string
priority: 1