k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/hack/testdata/multi-resource-4.yaml (about) 1 # Tests that initial failures to not block subsequent applies. 2 # Initial apply for Widget fails, since CRD is not applied yet, 3 # but the CRD apply should succeed. Subsequent custom resource 4 # apply of Widget should succeed. 5 apiVersion: example.com/v1 6 kind: Widget 7 metadata: 8 name: foo 9 --- 10 apiVersion: apiextensions.k8s.io/v1 11 kind: CustomResourceDefinition 12 metadata: 13 name: widgets.example.com 14 spec: 15 group: example.com 16 scope: Namespaced 17 names: 18 plural: widgets 19 kind: Widget 20 versions: 21 - name: v1 22 served: true 23 storage: true 24 schema: 25 openAPIV3Schema: 26 x-kubernetes-preserve-unknown-fields: true 27 type: object