Skip to content

Commit ee1b742

Browse files
authored
Update CRDs to v1
v1beta1 was dropped in 1.22 almost a year ago. https://kubernetes.io/blog/2021/07/14/upcoming-changes-in-kubernetes-1-22/#api-changes
1 parent 3363084 commit ee1b742

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

deploy/00-crds.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: apiextensions.k8s.io/v1beta1
1+
apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
name: rbacsyncconfigs.rbacsync.getcruise.com
@@ -11,10 +11,16 @@ spec:
1111
shortNames:
1212
- rsc
1313
scope: Namespaced
14-
version: v1alpha
14+
versions:
15+
- name: v1alpha
16+
served: true
17+
storage: true
18+
schema:
19+
openAPIV3Schema:
20+
type: object
1521
# TODO(sday): Create open API spec that validates all configs are RoleBindings
1622
---
17-
apiVersion: apiextensions.k8s.io/v1beta1
23+
apiVersion: apiextensions.k8s.io/v1
1824
kind: CustomResourceDefinition
1925
metadata:
2026
name: clusterrbacsyncconfigs.rbacsync.getcruise.com
@@ -27,5 +33,11 @@ spec:
2733
shortNames:
2834
- crsc
2935
scope: Cluster
30-
version: v1alpha
36+
versions:
37+
- name: v1alpha
38+
served: true
39+
storage: true
40+
schema:
41+
openAPIV3Schema:
42+
type: object
3143
# TODO(sday): Create open API spec that validates all configs are ClusterRoleBindings

0 commit comments

Comments
 (0)