Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to use stable APIs #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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