github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/velero/crds/schedules.yaml (about)

     1  
     2  ---
     3  apiVersion: apiextensions.k8s.io/v1
     4  kind: CustomResourceDefinition
     5  metadata:
     6    labels:
     7      component: velero
     8    annotations:
     9      controller-gen.kubebuilder.io/version: v0.7.0
    10    creationTimestamp: null
    11    name: schedules.velero.io
    12  spec:
    13    group: velero.io
    14    names:
    15      kind: Schedule
    16      listKind: ScheduleList
    17      plural: schedules
    18      singular: schedule
    19    scope: Namespaced
    20    versions:
    21    - additionalPrinterColumns:
    22      - description: Status of the schedule
    23        jsonPath: .status.phase
    24        name: Status
    25        type: string
    26      - description: A Cron expression defining when to run the Backup
    27        jsonPath: .spec.schedule
    28        name: Schedule
    29        type: string
    30      - description: The last time a Backup was run for this schedule
    31        jsonPath: .status.lastBackup
    32        name: LastBackup
    33        type: date
    34      - jsonPath: .metadata.creationTimestamp
    35        name: Age
    36        type: date
    37      name: v1
    38      schema:
    39        openAPIV3Schema:
    40          description: Schedule is a Velero resource that represents a pre-scheduled
    41            or periodic Backup that should be run.
    42          properties:
    43            apiVersion:
    44              description: 'APIVersion defines the versioned schema of this representation
    45                of an object. Servers should convert recognized schemas to the latest
    46                internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
    47              type: string
    48            kind:
    49              description: 'Kind is a string value representing the REST resource this
    50                object represents. Servers may infer this from the endpoint the client
    51                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    52              type: string
    53            metadata:
    54              type: object
    55            spec:
    56              description: ScheduleSpec defines the specification for a Velero schedule
    57              properties:
    58                schedule:
    59                  description: Schedule is a Cron expression defining when to run the
    60                    Backup.
    61                  type: string
    62                template:
    63                  description: Template is the definition of the Backup to be run on
    64                    the provided schedule
    65                  properties:
    66                    defaultVolumesToRestic:
    67                      description: DefaultVolumesToRestic specifies whether restic should
    68                        be used to take a backup of all pod volumes by default.
    69                      type: boolean
    70                    excludedNamespaces:
    71                      description: ExcludedNamespaces contains a list of namespaces
    72                        that are not included in the backup.
    73                      items:
    74                        type: string
    75                      nullable: true
    76                      type: array
    77                    excludedResources:
    78                      description: ExcludedResources is a slice of resource names that
    79                        are not included in the backup.
    80                      items:
    81                        type: string
    82                      nullable: true
    83                      type: array
    84                    hooks:
    85                      description: Hooks represent custom behaviors that should be executed
    86                        at different phases of the backup.
    87                      properties:
    88                        resources:
    89                          description: Resources are hooks that should be executed when
    90                            backing up individual instances of a resource.
    91                          items:
    92                            description: BackupResourceHookSpec defines one or more
    93                              BackupResourceHooks that should be executed based on the
    94                              rules defined for namespaces, resources, and label selector.
    95                            properties:
    96                              excludedNamespaces:
    97                                description: ExcludedNamespaces specifies the namespaces
    98                                  to which this hook spec does not apply.
    99                                items:
   100                                  type: string
   101                                nullable: true
   102                                type: array
   103                              excludedResources:
   104                                description: ExcludedResources specifies the resources
   105                                  to which this hook spec does not apply.
   106                                items:
   107                                  type: string
   108                                nullable: true
   109                                type: array
   110                              includedNamespaces:
   111                                description: IncludedNamespaces specifies the namespaces
   112                                  to which this hook spec applies. If empty, it applies
   113                                  to all namespaces.
   114                                items:
   115                                  type: string
   116                                nullable: true
   117                                type: array
   118                              includedResources:
   119                                description: IncludedResources specifies the resources
   120                                  to which this hook spec applies. If empty, it applies
   121                                  to all resources.
   122                                items:
   123                                  type: string
   124                                nullable: true
   125                                type: array
   126                              labelSelector:
   127                                description: LabelSelector, if specified, filters the
   128                                  resources to which this hook spec applies.
   129                                nullable: true
   130                                properties:
   131                                  matchExpressions:
   132                                    description: matchExpressions is a list of label
   133                                      selector requirements. The requirements are ANDed.
   134                                    items:
   135                                      description: A label selector requirement is a
   136                                        selector that contains values, a key, and an
   137                                        operator that relates the key and values.
   138                                      properties:
   139                                        key:
   140                                          description: key is the label key that the
   141                                            selector applies to.
   142                                          type: string
   143                                        operator:
   144                                          description: operator represents a key's relationship
   145                                            to a set of values. Valid operators are
   146                                            In, NotIn, Exists and DoesNotExist.
   147                                          type: string
   148                                        values:
   149                                          description: values is an array of string
   150                                            values. If the operator is In or NotIn,
   151                                            the values array must be non-empty. If the
   152                                            operator is Exists or DoesNotExist, the
   153                                            values array must be empty. This array is
   154                                            replaced during a strategic merge patch.
   155                                          items:
   156                                            type: string
   157                                          type: array
   158                                      required:
   159                                      - key
   160                                      - operator
   161                                      type: object
   162                                    type: array
   163                                  matchLabels:
   164                                    additionalProperties:
   165                                      type: string
   166                                    description: matchLabels is a map of {key,value}
   167                                      pairs. A single {key,value} in the matchLabels
   168                                      map is equivalent to an element of matchExpressions,
   169                                      whose key field is "key", the operator is "In",
   170                                      and the values array contains only "value". The
   171                                      requirements are ANDed.
   172                                    type: object
   173                                type: object
   174                              name:
   175                                description: Name is the name of this hook.
   176                                type: string
   177                              post:
   178                                description: PostHooks is a list of BackupResourceHooks
   179                                  to execute after storing the item in the backup. These
   180                                  are executed after all "additional items" from item
   181                                  actions are processed.
   182                                items:
   183                                  description: BackupResourceHook defines a hook for
   184                                    a resource.
   185                                  properties:
   186                                    exec:
   187                                      description: Exec defines an exec hook.
   188                                      properties:
   189                                        command:
   190                                          description: Command is the command and arguments
   191                                            to execute.
   192                                          items:
   193                                            type: string
   194                                          minItems: 1
   195                                          type: array
   196                                        container:
   197                                          description: Container is the container in
   198                                            the pod where the command should be executed.
   199                                            If not specified, the pod's first container
   200                                            is used.
   201                                          type: string
   202                                        onError:
   203                                          description: OnError specifies how Velero
   204                                            should behave if it encounters an error
   205                                            executing this hook.
   206                                          enum:
   207                                          - Continue
   208                                          - Fail
   209                                          type: string
   210                                        timeout:
   211                                          description: Timeout defines the maximum amount
   212                                            of time Velero should wait for the hook
   213                                            to complete before considering the execution
   214                                            a failure.
   215                                          type: string
   216                                      required:
   217                                      - command
   218                                      type: object
   219                                  required:
   220                                  - exec
   221                                  type: object
   222                                type: array
   223                              pre:
   224                                description: PreHooks is a list of BackupResourceHooks
   225                                  to execute prior to storing the item in the backup.
   226                                  These are executed before any "additional items" from
   227                                  item actions are processed.
   228                                items:
   229                                  description: BackupResourceHook defines a hook for
   230                                    a resource.
   231                                  properties:
   232                                    exec:
   233                                      description: Exec defines an exec hook.
   234                                      properties:
   235                                        command:
   236                                          description: Command is the command and arguments
   237                                            to execute.
   238                                          items:
   239                                            type: string
   240                                          minItems: 1
   241                                          type: array
   242                                        container:
   243                                          description: Container is the container in
   244                                            the pod where the command should be executed.
   245                                            If not specified, the pod's first container
   246                                            is used.
   247                                          type: string
   248                                        onError:
   249                                          description: OnError specifies how Velero
   250                                            should behave if it encounters an error
   251                                            executing this hook.
   252                                          enum:
   253                                          - Continue
   254                                          - Fail
   255                                          type: string
   256                                        timeout:
   257                                          description: Timeout defines the maximum amount
   258                                            of time Velero should wait for the hook
   259                                            to complete before considering the execution
   260                                            a failure.
   261                                          type: string
   262                                      required:
   263                                      - command
   264                                      type: object
   265                                  required:
   266                                  - exec
   267                                  type: object
   268                                type: array
   269                            required:
   270                            - name
   271                            type: object
   272                          nullable: true
   273                          type: array
   274                      type: object
   275                    includeClusterResources:
   276                      description: IncludeClusterResources specifies whether cluster-scoped
   277                        resources should be included for consideration in the backup.
   278                      nullable: true
   279                      type: boolean
   280                    includedNamespaces:
   281                      description: IncludedNamespaces is a slice of namespace names
   282                        to include objects from. If empty, all namespaces are included.
   283                      items:
   284                        type: string
   285                      nullable: true
   286                      type: array
   287                    includedResources:
   288                      description: IncludedResources is a slice of resource names to
   289                        include in the backup. If empty, all resources are included.
   290                      items:
   291                        type: string
   292                      nullable: true
   293                      type: array
   294                    labelSelector:
   295                      description: LabelSelector is a metav1.LabelSelector to filter
   296                        with when adding individual objects to the backup. If empty
   297                        or nil, all objects are included. Optional.
   298                      nullable: true
   299                      properties:
   300                        matchExpressions:
   301                          description: matchExpressions is a list of label selector
   302                            requirements. The requirements are ANDed.
   303                          items:
   304                            description: A label selector requirement is a selector
   305                              that contains values, a key, and an operator that relates
   306                              the key and values.
   307                            properties:
   308                              key:
   309                                description: key is the label key that the selector
   310                                  applies to.
   311                                type: string
   312                              operator:
   313                                description: operator represents a key's relationship
   314                                  to a set of values. Valid operators are In, NotIn,
   315                                  Exists and DoesNotExist.
   316                                type: string
   317                              values:
   318                                description: values is an array of string values. If
   319                                  the operator is In or NotIn, the values array must
   320                                  be non-empty. If the operator is Exists or DoesNotExist,
   321                                  the values array must be empty. This array is replaced
   322                                  during a strategic merge patch.
   323                                items:
   324                                  type: string
   325                                type: array
   326                            required:
   327                            - key
   328                            - operator
   329                            type: object
   330                          type: array
   331                        matchLabels:
   332                          additionalProperties:
   333                            type: string
   334                          description: matchLabels is a map of {key,value} pairs. A
   335                            single {key,value} in the matchLabels map is equivalent
   336                            to an element of matchExpressions, whose key field is "key",
   337                            the operator is "In", and the values array contains only
   338                            "value". The requirements are ANDed.
   339                          type: object
   340                      type: object
   341                    metadata:
   342                      properties:
   343                        labels:
   344                          additionalProperties:
   345                            type: string
   346                          type: object
   347                      type: object
   348                    orLabelSelectors:
   349                      description: OrLabelSelectors is list of metav1.LabelSelector
   350                        to filter with when adding individual objects to the backup.
   351                        If multiple provided they will be joined by the OR operator.
   352                        LabelSelector as well as OrLabelSelectors cannot co-exist in
   353                        backup request, only one of them can be used.
   354                      items:
   355                        description: A label selector is a label query over a set of
   356                          resources. The result of matchLabels and matchExpressions
   357                          are ANDed. An empty label selector matches all objects. A
   358                          null label selector matches no objects.
   359                        properties:
   360                          matchExpressions:
   361                            description: matchExpressions is a list of label selector
   362                              requirements. The requirements are ANDed.
   363                            items:
   364                              description: A label selector requirement is a selector
   365                                that contains values, a key, and an operator that relates
   366                                the key and values.
   367                              properties:
   368                                key:
   369                                  description: key is the label key that the selector
   370                                    applies to.
   371                                  type: string
   372                                operator:
   373                                  description: operator represents a key's relationship
   374                                    to a set of values. Valid operators are In, NotIn,
   375                                    Exists and DoesNotExist.
   376                                  type: string
   377                                values:
   378                                  description: values is an array of string values.
   379                                    If the operator is In or NotIn, the values array
   380                                    must be non-empty. If the operator is Exists or
   381                                    DoesNotExist, the values array must be empty. This
   382                                    array is replaced during a strategic merge patch.
   383                                  items:
   384                                    type: string
   385                                  type: array
   386                              required:
   387                              - key
   388                              - operator
   389                              type: object
   390                            type: array
   391                          matchLabels:
   392                            additionalProperties:
   393                              type: string
   394                            description: matchLabels is a map of {key,value} pairs.
   395                              A single {key,value} in the matchLabels map is equivalent
   396                              to an element of matchExpressions, whose key field is
   397                              "key", the operator is "In", and the values array contains
   398                              only "value". The requirements are ANDed.
   399                            type: object
   400                        type: object
   401                      nullable: true
   402                      type: array
   403                    orderedResources:
   404                      additionalProperties:
   405                        type: string
   406                      description: OrderedResources specifies the backup order of resources
   407                        of specific Kind. The map key is the Kind name and value is
   408                        a list of resource names separated by commas. Each resource
   409                        name has format "namespace/resourcename".  For cluster resources,
   410                        simply use "resourcename".
   411                      nullable: true
   412                      type: object
   413                    snapshotVolumes:
   414                      description: SnapshotVolumes specifies whether to take cloud snapshots
   415                        of any PV's referenced in the set of objects included in the
   416                        Backup.
   417                      nullable: true
   418                      type: boolean
   419                    storageLocation:
   420                      description: StorageLocation is a string containing the name of
   421                        a BackupStorageLocation where the backup should be stored.
   422                      type: string
   423                    ttl:
   424                      description: TTL is a time.Duration-parseable string describing
   425                        how long the Backup should be retained for.
   426                      type: string
   427                    volumeSnapshotLocations:
   428                      description: VolumeSnapshotLocations is a list containing names
   429                        of VolumeSnapshotLocations associated with this backup.
   430                      items:
   431                        type: string
   432                      type: array
   433                  type: object
   434                useOwnerReferencesInBackup:
   435                  description: UseOwnerReferencesBackup specifies whether to use OwnerReferences
   436                    on backups created by this Schedule.
   437                  nullable: true
   438                  type: boolean
   439              required:
   440              - schedule
   441              - template
   442              type: object
   443            status:
   444              description: ScheduleStatus captures the current state of a Velero schedule
   445              properties:
   446                lastBackup:
   447                  description: LastBackup is the last time a Backup was run for this
   448                    Schedule schedule
   449                  format: date-time
   450                  nullable: true
   451                  type: string
   452                phase:
   453                  description: Phase is the current phase of the Schedule
   454                  enum:
   455                  - New
   456                  - Enabled
   457                  - FailedValidation
   458                  type: string
   459                validationErrors:
   460                  description: ValidationErrors is a slice of all validation errors
   461                    (if applicable)
   462                  items:
   463                    type: string
   464                  type: array
   465              type: object
   466          type: object
   467      served: true
   468      storage: true
   469      subresources: {}
   470  status:
   471    acceptedNames:
   472      kind: ""
   473      plural: ""
   474    conditions: []
   475    storedVersions: []