github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/helm/crds/dataprotection.kubeblocks.io_backupschedules.yaml (about)

     1  apiVersion: apiextensions.k8s.io/v1
     2  kind: CustomResourceDefinition
     3  metadata:
     4    annotations:
     5      controller-gen.kubebuilder.io/version: v0.12.1
     6    labels:
     7      app.kubernetes.io/name: kubeblocks
     8    name: backupschedules.dataprotection.kubeblocks.io
     9  spec:
    10    group: dataprotection.kubeblocks.io
    11    names:
    12      categories:
    13      - kubeblocks
    14      kind: BackupSchedule
    15      listKind: BackupScheduleList
    16      plural: backupschedules
    17      shortNames:
    18      - bs
    19      singular: backupschedule
    20    scope: Namespaced
    21    versions:
    22    - additionalPrinterColumns:
    23      - jsonPath: .status.phase
    24        name: STATUS
    25        type: string
    26      - jsonPath: .metadata.creationTimestamp
    27        name: AGE
    28        type: date
    29      name: v1alpha1
    30      schema:
    31        openAPIV3Schema:
    32          description: BackupSchedule is the Schema for the backupschedules API.
    33          properties:
    34            apiVersion:
    35              description: 'APIVersion defines the versioned schema of this representation
    36                of an object. Servers should convert recognized schemas to the latest
    37                internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
    38              type: string
    39            kind:
    40              description: 'Kind is a string value representing the REST resource this
    41                object represents. Servers may infer this from the endpoint the client
    42                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    43              type: string
    44            metadata:
    45              type: object
    46            spec:
    47              description: BackupScheduleSpec defines the desired state of BackupSchedule.
    48              properties:
    49                backupPolicyName:
    50                  description: Which backupPolicy is applied to perform this backup.
    51                  pattern: ^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$
    52                  type: string
    53                schedules:
    54                  description: schedules defines the list of backup schedules.
    55                  items:
    56                    properties:
    57                      backupMethod:
    58                        description: backupMethod specifies the backup method name that
    59                          is defined in backupPolicy.
    60                        type: string
    61                      cronExpression:
    62                        description: the cron expression for schedule, the timezone
    63                          is in UTC. see https://en.wikipedia.org/wiki/Cron.
    64                        type: string
    65                      enabled:
    66                        description: enabled specifies whether the backup schedule is
    67                          enabled or not.
    68                        type: boolean
    69                      retentionPeriod:
    70                        default: 7d
    71                        description: "retentionPeriod determines a duration up to which
    72                          the backup should be kept. controller will remove all backups
    73                          that are older than the RetentionPeriod. For example, RetentionPeriod
    74                          of `30d` will keep only the backups of last 30 days. Sample
    75                          duration format: - years: \t2y - months: \t6mo - days: \t\t30d
    76                          - hours: \t12h - minutes: \t30m You can also combine the above
    77                          durations. For example: 30d12h30m"
    78                        type: string
    79                    required:
    80                    - backupMethod
    81                    - cronExpression
    82                    type: object
    83                  minItems: 1
    84                  type: array
    85                startingDeadlineMinutes:
    86                  description: startingDeadlineMinutes defines the deadline in minutes
    87                    for starting the backup workload if it misses scheduled time for
    88                    any reason.
    89                  format: int64
    90                  maximum: 1440
    91                  minimum: 0
    92                  type: integer
    93              required:
    94              - backupPolicyName
    95              - schedules
    96              type: object
    97            status:
    98              description: BackupScheduleStatus defines the observed state of BackupSchedule.
    99              properties:
   100                failureReason:
   101                  description: failureReason is an error that caused the backup to fail.
   102                  type: string
   103                observedGeneration:
   104                  description: observedGeneration is the most recent generation observed
   105                    for this BackupSchedule. It refers to the BackupSchedule's generation,
   106                    which is updated on mutation by the API Server.
   107                  format: int64
   108                  type: integer
   109                phase:
   110                  description: phase describes the phase of the BackupSchedule.
   111                  type: string
   112                schedules:
   113                  additionalProperties:
   114                    description: ScheduleStatus defines the status of each schedule.
   115                    properties:
   116                      failureReason:
   117                        description: failureReason is an error that caused the backup
   118                          to fail.
   119                        type: string
   120                      lastScheduleTime:
   121                        description: lastScheduleTime records the last time the backup
   122                          was scheduled.
   123                        format: date-time
   124                        type: string
   125                      lastSuccessfulTime:
   126                        description: lastSuccessfulTime records the last time the backup
   127                          was successfully completed.
   128                        format: date-time
   129                        type: string
   130                      phase:
   131                        description: phase describes the phase of the schedule.
   132                        type: string
   133                    type: object
   134                  description: schedules describes the status of each schedule.
   135                  type: object
   136              type: object
   137          type: object
   138      served: true
   139      storage: true
   140      subresources:
   141        status: {}