Skip to content

Commit

Permalink
Update apiVersion in crd-simple
Browse files Browse the repository at this point in the history
  • Loading branch information
Alrem committed Jan 14, 2024
1 parent 729eb22 commit 0130ff8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
39 changes: 19 additions & 20 deletions examples/105-crd-simple/crd-simple.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
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: <plural>.<group>
name: crontabs.stable.example.com
spec:
# group name to use for REST API: /apis/<group>/<version>
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:
Expand All @@ -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
4 changes: 2 additions & 2 deletions examples/105-crd-simple/shell-operator-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0130ff8

Please sign in to comment.