Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Invoked /home/anel/operators/mariadb/bin/controller-gen rbac:roleName…
…=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
  • Loading branch information
an3l committed Dec 14, 2021
1 parent aa6189e commit 7eb2b42
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
57 changes: 57 additions & 0 deletions config/crd/bases/mariak8g.mariadb.org_mariadbs.yaml
@@ -0,0 +1,57 @@

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.7.0
creationTimestamp: null
name: mariadbs.mariak8g.mariadb.org
spec:
group: mariak8g.mariadb.org
names:
kind: MariaDB
listKind: MariaDBList
plural: mariadbs
singular: mariadb
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: MariaDB is the Schema for the mariadbs API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: MariaDBSpec defines the desired state of MariaDB
properties:
foo:
description: Foo is an example field of MariaDB. Edit mariadb_types.go
to remove/update
type: string
type: object
status:
description: MariaDBStatus defines the observed state of MariaDB
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
34 changes: 34 additions & 0 deletions config/rbac/role.yaml
@@ -0,0 +1,34 @@

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: manager-role
rules:
- apiGroups:
- mariak8g.mariadb.org
resources:
- mariadbs
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- mariak8g.mariadb.org
resources:
- mariadbs/finalizers
verbs:
- update
- apiGroups:
- mariak8g.mariadb.org
resources:
- mariadbs/status
verbs:
- get
- patch
- update

0 comments on commit 7eb2b42

Please sign in to comment.