# this CRD defines a type, but does not have a status-check defined in the # annotations. This is not an error, but a StatusMap won't be able to perform # any validation on resources apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: name: resources.example.com annotations: airshipit.org/status-check: | [ { "status": "Stable", "condition": "@.status.state==\"stable\"" }, { "status": "Pending", "condition": "@.status.state==\"pending\"" } ] spec: versions: - name: v1 served: true storage: true schema: openAPIV3Schema: type: object properties: status: type: object properties: state: type: string scope: Namespaced names: plural: resources singular: resource kind: Resource shortNames: - rsc