airshipctl/pkg/cluster/testdata/malformed-status-check/crd.yaml

32 lines
776 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: "{invalid json"
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:
plural: resources
singular: resource
kind: Resource
shortNames:
- rsc