airshipctl/pkg/cluster/testdata/missing-plural/crd.yaml

41 lines
963 B
YAML

# 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:
group: example.com
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
status:
type: object
properties:
state:
type: string
scope: Namespaced
names:
singular: resource
kind: Resource
shortNames:
- rsc