92 lines
3.3 KiB
YAML
92 lines
3.3 KiB
YAML
#
|
|
# Copyright (c) 2019-2021 Red Hat, Inc.
|
|
# This program and the accompanying materials are made
|
|
# available under the terms of the Eclipse Public License 2.0
|
|
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
#
|
|
# SPDX-License-Identifier: EPL-2.0
|
|
#
|
|
# Contributors:
|
|
# Red Hat, Inc. - initial API and implementation
|
|
#
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
annotations:
|
|
controller-gen.kubebuilder.io/version: v0.4.1
|
|
creationTimestamp: null
|
|
name: checlusterbackups.org.eclipse.che
|
|
spec:
|
|
group: org.eclipse.che
|
|
names:
|
|
kind: CheClusterBackup
|
|
listKind: CheClusterBackupList
|
|
plural: checlusterbackups
|
|
singular: checlusterbackup
|
|
scope: Namespaced
|
|
subresources:
|
|
status: {}
|
|
validation:
|
|
openAPIV3Schema:
|
|
description: The `CheClusterBackup` custom resource allows defining and managing
|
|
Eclipse Che backup
|
|
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: CheClusterBackupSpec defines the desired state of CheClusterBackup
|
|
properties:
|
|
backupServerConfigRef:
|
|
description: Name of custom resource with a backup server configuration
|
|
to use for this backup. Note, UseInternalBackupServer field can configure
|
|
internal backup server automatically.
|
|
type: string
|
|
useInternalBackupServer:
|
|
description: Automatically setup pod with REST backup server and use
|
|
the server in this configuration. Note, this flag takes precedence
|
|
and will overwrite existing backup server configuration.
|
|
type: boolean
|
|
type: object
|
|
status:
|
|
description: CheClusterBackupStatus defines the observed state of CheClusterBackup
|
|
properties:
|
|
cheVersion:
|
|
description: Version that was backed up
|
|
type: string
|
|
message:
|
|
description: Message explaining the state of the backup or an error
|
|
message
|
|
type: string
|
|
snapshotId:
|
|
description: Last backup snapshot ID
|
|
type: string
|
|
stage:
|
|
description: Describes backup progress
|
|
type: string
|
|
state:
|
|
description: 'Backup progress state: InProgress, Failed, Succeeded'
|
|
type: string
|
|
type: object
|
|
version: v1
|
|
versions:
|
|
- name: v1
|
|
served: true
|
|
storage: true
|
|
status:
|
|
acceptedNames:
|
|
kind: ""
|
|
plural: ""
|
|
conditions: []
|
|
storedVersions: []
|