Skip to content

Commit

Permalink
fixup! feat: Add Non Admin Restore controller
Browse files Browse the repository at this point in the history
Signed-off-by: Mateus Oliveira <[email protected]>
  • Loading branch information
mateusoliveira43 committed Apr 9, 2024
1 parent 62d5213 commit d7a18bd
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
54 changes: 54 additions & 0 deletions config/crd/bases/nac.oadp.openshift.io_nonadminrestores.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: nonadminrestores.nac.oadp.openshift.io
spec:
group: nac.oadp.openshift.io
names:
kind: NonAdminRestore
listKind: NonAdminRestoreList
plural: nonadminrestores
singular: nonadminrestore
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: NonAdminRestore is the Schema for the nonadminrestores 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: NonAdminRestoreSpec defines the desired state of NonAdminRestore
properties:
foo:
description: Foo is an example field of NonAdminRestore. Edit nonadminrestore_types.go
to remove/update
type: string
type: object
status:
description: NonAdminRestoreStatus defines the observed state of NonAdminRestore
type: object
type: object
served: true
storage: true
subresources:
status: {}
26 changes: 26 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,32 @@ rules:
- get
- patch
- update
- apiGroups:
- nac.oadp.openshift.io
resources:
- nonadminrestores
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- nac.oadp.openshift.io
resources:
- nonadminrestores/finalizers
verbs:
- update
- apiGroups:
- nac.oadp.openshift.io
resources:
- nonadminrestores/status
verbs:
- get
- patch
- update
- apiGroups:
- velero.io
resources:
Expand Down

0 comments on commit d7a18bd

Please sign in to comment.