...

Text file src/k8s.io/kubernetes/hack/testdata/multi-resource-4.yaml

Documentation: k8s.io/kubernetes/hack/testdata

     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.
     5apiVersion: example.com/v1
     6kind: Widget
     7metadata:
     8  name: foo
     9---
    10apiVersion: apiextensions.k8s.io/v1
    11kind: CustomResourceDefinition
    12metadata:
    13  name: widgets.example.com
    14spec:
    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

View as plain text