mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
86 lines
2.7 KiB
YAML
86 lines
2.7 KiB
YAML
|
|
|
||
|
|
|
||
|
|
##############################################
|
||
|
|
########### ############
|
||
|
|
########### ZFSRestore CRD ############
|
||
|
|
########### ############
|
||
|
|
##############################################
|
||
|
|
|
||
|
|
# ZFSRestores CRD is autogenerated via `make manifests` command.
|
||
|
|
# Do the modification in the code and run the `make manifests` command
|
||
|
|
# to generate the CRD definition
|
||
|
|
|
||
|
|
---
|
||
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||
|
|
kind: CustomResourceDefinition
|
||
|
|
metadata:
|
||
|
|
annotations:
|
||
|
|
controller-gen.kubebuilder.io/version: v0.2.8
|
||
|
|
creationTimestamp: null
|
||
|
|
name: zfsrestores.zfs.openebs.io
|
||
|
|
spec:
|
||
|
|
group: zfs.openebs.io
|
||
|
|
names:
|
||
|
|
kind: ZFSRestore
|
||
|
|
listKind: ZFSRestoreList
|
||
|
|
plural: zfsrestores
|
||
|
|
singular: zfsrestore
|
||
|
|
preserveUnknownFields: false
|
||
|
|
scope: Namespaced
|
||
|
|
validation:
|
||
|
|
openAPIV3Schema:
|
||
|
|
description: ZFSRestore describes a cstor restore resource created as a custom
|
||
|
|
resource
|
||
|
|
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/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/api-conventions.md#types-kinds'
|
||
|
|
type: string
|
||
|
|
metadata:
|
||
|
|
type: object
|
||
|
|
spec:
|
||
|
|
description: ZFSRestoreSpec is the spec for a ZFSRestore resource
|
||
|
|
properties:
|
||
|
|
ownerNodeID:
|
||
|
|
description: owner node name where restore volume is present
|
||
|
|
minLength: 1
|
||
|
|
type: string
|
||
|
|
restoreSrc:
|
||
|
|
description: it can be ip:port in case of restore from remote or volumeName
|
||
|
|
in case of local restore
|
||
|
|
minLength: 1
|
||
|
|
type: string
|
||
|
|
volumeName:
|
||
|
|
description: volume name to where restore has to be performed
|
||
|
|
minLength: 1
|
||
|
|
type: string
|
||
|
|
required:
|
||
|
|
- ownerNodeID
|
||
|
|
- restoreSrc
|
||
|
|
- volumeName
|
||
|
|
type: object
|
||
|
|
status:
|
||
|
|
description: ZFSRestoreStatus is to hold result of action.
|
||
|
|
type: string
|
||
|
|
required:
|
||
|
|
- spec
|
||
|
|
- status
|
||
|
|
type: object
|
||
|
|
version: v1
|
||
|
|
versions:
|
||
|
|
- name: v1
|
||
|
|
served: true
|
||
|
|
storage: true
|
||
|
|
status:
|
||
|
|
acceptedNames:
|
||
|
|
kind: ""
|
||
|
|
plural: ""
|
||
|
|
conditions: []
|
||
|
|
storedVersions: []
|