mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
28 lines
669 B
YAML
28 lines
669 B
YAML
# Tests that initial failures to not block subsequent applies.
|
|
# Initial apply for Widget fails, since CRD is not applied yet,
|
|
# but the CRD apply should succeed. Subsequent custom resource
|
|
# apply of Widget should succeed.
|
|
apiVersion: example.com/v1
|
|
kind: Widget
|
|
metadata:
|
|
name: foo
|
|
---
|
|
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
name: widgets.example.com
|
|
spec:
|
|
group: example.com
|
|
scope: Namespaced
|
|
names:
|
|
plural: widgets
|
|
kind: Widget
|
|
versions:
|
|
- name: v1
|
|
served: true
|
|
storage: true
|
|
schema:
|
|
openAPIV3Schema:
|
|
x-kubernetes-preserve-unknown-fields: true
|
|
type: object
|