diff --git a/examples/105-crd-simple/crd-simple.yaml b/examples/105-crd-simple/crd-simple.yaml index fd5a818d..86123c1d 100644 --- a/examples/105-crd-simple/crd-simple.yaml +++ b/examples/105-crd-simple/crd-simple.yaml @@ -1,4 +1,4 @@ -apiVersion: apiextensions.k8s.io/v1beta1 +apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: # name must match the spec fields below, and be in the form: . @@ -6,13 +6,6 @@ metadata: spec: # group name to use for REST API: /apis// group: stable.example.com - # list of versions supported by this CustomResourceDefinition - versions: - - name: v1 - # Each version can be enabled/disabled by Served flag. - served: true - # One and only one version must be marked as the storage version. - storage: true # either Namespaced or Cluster scope: Namespaced names: @@ -26,17 +19,23 @@ spec: shortNames: - ct # preserveUnknownFields: false - validation: - openAPIV3Schema: - type: object - properties: - spec: + # list of versions supported by this CustomResourceDefinition + versions: + - name: v1 + # Each version can be enabled/disabled by Served flag. + served: true + # One and only one version must be marked as the storage version. + storage: true + schema: + openAPIV3Schema: type: object properties: - cronSpec: - type: string - image: - type: string - replicas: - type: integer - + spec: + type: object + properties: + cronSpec: + type: string + image: + type: string + replicas: + type: integer diff --git a/examples/105-crd-simple/shell-operator-rbac.yaml b/examples/105-crd-simple/shell-operator-rbac.yaml index 57688870..51602c65 100644 --- a/examples/105-crd-simple/shell-operator-rbac.yaml +++ b/examples/105-crd-simple/shell-operator-rbac.yaml @@ -5,7 +5,7 @@ metadata: name: crd-simple-acc --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: crd-simple @@ -15,7 +15,7 @@ rules: verbs: ["get", "watch", "list"] --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: crd-simple