formol/config/crd/bases/formol.desmojim.fr_backupconfigurations.yaml
Jean-Marc ANDRE 005d02e891 Missing files
2023-04-17 23:00:59 +02:00

184 lines
6.0 KiB
YAML

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
name: backupconfigurations.formol.desmojim.fr
spec:
group: formol.desmojim.fr
names:
kind: BackupConfiguration
listKind: BackupConfigurationList
plural: backupconfigurations
shortNames:
- bc
singular: backupconfiguration
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .spec.suspend
name: Suspended
type: boolean
- jsonPath: .spec.schedule
name: Schedule
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: BackupConfiguration is the Schema for the backupconfigurations
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: BackupConfigurationSpec defines the desired state of BackupConfiguration
properties:
image:
type: string
keep:
properties:
daily:
format: int32
type: integer
last:
format: int32
type: integer
monthly:
format: int32
type: integer
weekly:
format: int32
type: integer
yearly:
format: int32
type: integer
required:
- daily
- last
- monthly
- weekly
- yearly
type: object
repository:
type: string
schedule:
type: string
suspend:
default: false
type: boolean
targets:
items:
properties:
backupType:
enum:
- Online
- Snapshot
- Job
type: string
containers:
items:
properties:
job:
items:
properties:
backup:
type: string
finalize:
type: string
initialize:
type: string
restore:
type: string
type: object
type: array
name:
type: string
paths:
items:
type: string
type: array
sharePath:
default: /formol-shared
type: string
steps:
items:
properties:
backup:
type: string
finalize:
type: string
initialize:
type: string
restore:
type: string
type: object
type: array
required:
- name
- sharePath
type: object
type: array
retry:
default: 2
type: integer
targetKind:
enum:
- Deployment
- StatefulSet
- Pod
type: string
targetName:
type: string
volumeSnapshotClass:
type: string
required:
- backupType
- containers
- retry
- targetKind
- targetName
type: object
type: array
required:
- image
- keep
- repository
- schedule
- suspend
- targets
type: object
status:
description: BackupConfigurationStatus defines the observed state of BackupConfiguration
properties:
activeCronJob:
type: boolean
activeSidecar:
type: boolean
lastBackupTime:
format: date-time
type: string
suspended:
type: boolean
required:
- activeCronJob
- activeSidecar
- suspended
type: object
type: object
served: true
storage: true
subresources:
status: {}