Skip to content

Commit

Permalink
Update to use stable APIs
Browse files Browse the repository at this point in the history
CustomResourceDefinition and RBAC APIs are now generally available.
Switch to those newer APIs.
  • Loading branch information
sftim committed Jul 1, 2021
1 parent bac6e51 commit 99d0e92
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
42 changes: 21 additions & 21 deletions crd.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: iamgroups.jicomusic.com
name: iamgroups.jicomusic.com
spec:
scope: Namespaced
group: jicomusic.com
versions:
- name: v1
served: true
storage: true
names:
kind: IAMGroup
plural: iamgroups
singular: iamgroup
#preserveUnknownFields: false
validation:
openAPIV3Schema:
type: object
properties:
groupName:
type: string
rbacRole:
type: string
scope: Namespaced
group: jicomusic.com
versions:
- name: v1
schema:
openAPIV3Schema:
type: object
properties:
groupName:
type: string
rbacRole:
type: string
served: true
storage: true
names:
kind: IAMGroup
listKind: IAMGroupList
singular: iamgroup
plural: iamgroups
4 changes: 2 additions & 2 deletions rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
name: kopfexample-account
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kopfexample-role-cluster
Expand All @@ -32,7 +32,7 @@ rules:
resources: [configmaps]
verbs: [patch, get, post, update, create]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kopfexample-rolebinding-cluster
Expand Down

0 comments on commit 99d0e92

Please sign in to comment.