{
  "description": "Schedule is a Velero resource that represents a pre-scheduled or\nperiodic Backup that should be run.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "description": "ScheduleSpec defines the specification for a Velero schedule",
      "properties": {
        "paused": {
          "description": "Paused specifies whether the schedule is paused or not",
          "type": [
            "boolean",
            "null"
          ]
        },
        "schedule": {
          "description": "Schedule is a Cron expression defining when to run\nthe Backup.",
          "type": "string"
        },
        "skipImmediately": {
          "description": "SkipImmediately specifies whether to skip backup if schedule is due immediately from `schedule.status.lastBackup` timestamp when schedule is unpaused or if schedule is new.\nIf true, backup will be skipped immediately when schedule is unpaused if it is due based on .Status.LastBackupTimestamp or schedule is new, and will run at next schedule time.\nIf false, backup will not be skipped immediately when schedule is unpaused, but will run at next schedule time.\nIf empty, will follow server configuration (default: false).",
          "type": [
            "boolean",
            "null"
          ]
        },
        "template": {
          "additionalProperties": false,
          "description": "Template is the definition of the Backup to be run\non the provided schedule",
          "properties": {
            "csiSnapshotTimeout": {
              "description": "CSISnapshotTimeout specifies the time used to wait for CSI VolumeSnapshot status turns to\nReadyToUse during creation, before returning error as timeout.\nThe default value is 10 minute.",
              "type": [
                "string",
                "null"
              ]
            },
            "datamover": {
              "description": "DataMover specifies the data mover to be used by the backup.\nIf DataMover is \"\" or \"velero\", the built-in data mover will be used.",
              "type": [
                "string",
                "null"
              ]
            },
            "defaultVolumesToFsBackup": {
              "description": "DefaultVolumesToFsBackup specifies whether pod volume file system backup should be used\nfor all volumes by default.",
              "nullable": true,
              "type": [
                "boolean",
                "null"
              ]
            },
            "defaultVolumesToRestic": {
              "description": "DefaultVolumesToRestic specifies whether restic should be used to take a\nbackup of all pod volumes by default.\n\nDeprecated: this field is no longer used and will be removed entirely in future. Use DefaultVolumesToFsBackup instead.",
              "nullable": true,
              "type": [
                "boolean",
                "null"
              ]
            },
            "excludedClusterScopedResources": {
              "description": "ExcludedClusterScopedResources is a slice of cluster-scoped\nresource type names to exclude from the backup.\nIf set to \"*\", all cluster-scoped resource types are excluded.\nThe default value is empty.",
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": [
                "array",
                "null"
              ]
            },
            "excludedNamespaceScopedResources": {
              "description": "ExcludedNamespaceScopedResources is a slice of namespace-scoped\nresource type names to exclude from the backup.\nIf set to \"*\", all namespace-scoped resource types are excluded.\nThe default value is empty.",
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": [
                "array",
                "null"
              ]
            },
            "excludedNamespaces": {
              "description": "ExcludedNamespaces contains a list of namespaces that are not\nincluded in the backup.",
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": [
                "array",
                "null"
              ]
            },
            "excludedResources": {
              "description": "ExcludedResources is a slice of resource names that are not\nincluded in the backup.",
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": [
                "array",
                "null"
              ]
            },
            "hooks": {
              "additionalProperties": false,
              "description": "Hooks represent custom behaviors that should be executed at different phases of the backup.",
              "properties": {
                "resources": {
                  "description": "Resources are hooks that should be executed when backing up individual instances of a resource.",
                  "items": {
                    "additionalProperties": false,
                    "description": "BackupResourceHookSpec defines one or more BackupResourceHooks that should be executed based on\nthe rules defined for namespaces, resources, and label selector.",
                    "properties": {
                      "excludedNamespaces": {
                        "description": "ExcludedNamespaces specifies the namespaces to which this hook spec does not apply.",
                        "items": {
                          "type": "string"
                        },
                        "nullable": true,
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "excludedResources": {
                        "description": "ExcludedResources specifies the resources to which this hook spec does not apply.",
                        "items": {
                          "type": "string"
                        },
                        "nullable": true,
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "includedNamespaces": {
                        "description": "IncludedNamespaces specifies the namespaces to which this hook spec applies. If empty, it applies\nto all namespaces.",
                        "items": {
                          "type": "string"
                        },
                        "nullable": true,
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "includedResources": {
                        "description": "IncludedResources specifies the resources to which this hook spec applies. If empty, it applies\nto all resources.",
                        "items": {
                          "type": "string"
                        },
                        "nullable": true,
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "labelSelector": {
                        "additionalProperties": false,
                        "description": "LabelSelector, if specified, filters the resources to which this hook spec applies.",
                        "nullable": true,
                        "properties": {
                          "matchExpressions": {
                            "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                            "items": {
                              "additionalProperties": false,
                              "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
                              "properties": {
                                "key": {
                                  "description": "key is the label key that the selector applies to.",
                                  "type": "string"
                                },
                                "operator": {
                                  "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.",
                                  "type": "string"
                                },
                                "values": {
                                  "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "x-kubernetes-list-type": "atomic"
                                }
                              },
                              "required": [
                                "key",
                                "operator"
                              ],
                              "type": "object"
                            },
                            "type": [
                              "array",
                              "null"
                            ],
                            "x-kubernetes-list-type": "atomic"
                          },
                          "matchLabels": {
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                            "type": [
                              "object",
                              "null"
                            ]
                          }
                        },
                        "type": [
                          "object",
                          "null"
                        ],
                        "x-kubernetes-map-type": "atomic"
                      },
                      "name": {
                        "description": "Name is the name of this hook.",
                        "type": "string"
                      },
                      "post": {
                        "description": "PostHooks is a list of BackupResourceHooks to execute after storing the item in the backup.\nThese are executed after all \"additional items\" from item actions are processed.",
                        "items": {
                          "additionalProperties": false,
                          "description": "BackupResourceHook defines a hook for a resource.",
                          "properties": {
                            "exec": {
                              "additionalProperties": false,
                              "description": "Exec defines an exec hook.",
                              "properties": {
                                "command": {
                                  "description": "Command is the command and arguments to execute.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "minItems": 1,
                                  "type": "array"
                                },
                                "container": {
                                  "description": "Container is the container in the pod where the command should be executed. If not specified,\nthe pod's first container is used.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "onError": {
                                  "description": "OnError specifies how Velero should behave if it encounters an error executing this hook.",
                                  "enum": [
                                    "Continue",
                                    "Fail"
                                  ],
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "timeout": {
                                  "description": "Timeout defines the maximum amount of time Velero should wait for the hook to complete before\nconsidering the execution a failure.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "command"
                              ],
                              "type": "object"
                            }
                          },
                          "required": [
                            "exec"
                          ],
                          "type": "object"
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "pre": {
                        "description": "PreHooks is a list of BackupResourceHooks to execute prior to storing the item in the backup.\nThese are executed before any \"additional items\" from item actions are processed.",
                        "items": {
                          "additionalProperties": false,
                          "description": "BackupResourceHook defines a hook for a resource.",
                          "properties": {
                            "exec": {
                              "additionalProperties": false,
                              "description": "Exec defines an exec hook.",
                              "properties": {
                                "command": {
                                  "description": "Command is the command and arguments to execute.",
                                  "items": {
                                    "type": "string"
                                  },
                                  "minItems": 1,
                                  "type": "array"
                                },
                                "container": {
                                  "description": "Container is the container in the pod where the command should be executed. If not specified,\nthe pod's first container is used.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "onError": {
                                  "description": "OnError specifies how Velero should behave if it encounters an error executing this hook.",
                                  "enum": [
                                    "Continue",
                                    "Fail"
                                  ],
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "timeout": {
                                  "description": "Timeout defines the maximum amount of time Velero should wait for the hook to complete before\nconsidering the execution a failure.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "command"
                              ],
                              "type": "object"
                            }
                          },
                          "required": [
                            "exec"
                          ],
                          "type": "object"
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "type": "object"
                  },
                  "nullable": true,
                  "type": [
                    "array",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "includeClusterResources": {
              "description": "IncludeClusterResources specifies whether cluster-scoped resources\nshould be included for consideration in the backup.",
              "nullable": true,
              "type": [
                "boolean",
                "null"
              ]
            },
            "includedClusterScopedResources": {
              "description": "IncludedClusterScopedResources is a slice of cluster-scoped\nresource type names to include in the backup.\nIf set to \"*\", all cluster-scoped resource types are included.\nThe default value is empty, which means only related\ncluster-scoped resources are included.",
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": [
                "array",
                "null"
              ]
            },
            "includedNamespaceScopedResources": {
              "description": "IncludedNamespaceScopedResources is a slice of namespace-scoped\nresource type names to include in the backup.\nThe default value is \"*\".",
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": [
                "array",
                "null"
              ]
            },
            "includedNamespaces": {
              "description": "IncludedNamespaces is a slice of namespace names to include objects\nfrom. If empty, all namespaces are included.",
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": [
                "array",
                "null"
              ]
            },
            "includedResources": {
              "description": "IncludedResources is a slice of resource names to include\nin the backup. If empty, all resources are included.",
              "items": {
                "type": "string"
              },
              "nullable": true,
              "type": [
                "array",
                "null"
              ]
            },
            "itemOperationTimeout": {
              "description": "ItemOperationTimeout specifies the time used to wait for asynchronous BackupItemAction operations\nThe default value is 4 hour.",
              "type": [
                "string",
                "null"
              ]
            },
            "labelSelector": {
              "additionalProperties": false,
              "description": "LabelSelector is a metav1.LabelSelector to filter with\nwhen adding individual objects to the backup. If empty\nor nil, all objects are included. Optional.",
              "nullable": true,
              "properties": {
                "matchExpressions": {
                  "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                  "items": {
                    "additionalProperties": false,
                    "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
                    "properties": {
                      "key": {
                        "description": "key is the label key that the selector applies to.",
                        "type": "string"
                      },
                      "operator": {
                        "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.",
                        "type": "string"
                      },
                      "values": {
                        "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.",
                        "items": {
                          "type": "string"
                        },
                        "type": [
                          "array",
                          "null"
                        ],
                        "x-kubernetes-list-type": "atomic"
                      }
                    },
                    "required": [
                      "key",
                      "operator"
                    ],
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ],
                  "x-kubernetes-list-type": "atomic"
                },
                "matchLabels": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                  "type": [
                    "object",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ],
              "x-kubernetes-map-type": "atomic"
            },
            "metadata": {
              "additionalProperties": false,
              "properties": {
                "labels": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "orLabelSelectors": {
              "description": "OrLabelSelectors is list of metav1.LabelSelector to filter with\nwhen adding individual objects to the backup. If multiple provided\nthey will be joined by the OR operator. LabelSelector as well as\nOrLabelSelectors cannot co-exist in backup request, only one of them\ncan be used.",
              "items": {
                "additionalProperties": false,
                "description": "A label selector is a label query over a set of resources. The result of matchLabels and\nmatchExpressions are ANDed. An empty label selector matches all objects. A null\nlabel selector matches no objects.",
                "properties": {
                  "matchExpressions": {
                    "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                    "items": {
                      "additionalProperties": false,
                      "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
                      "properties": {
                        "key": {
                          "description": "key is the label key that the selector applies to.",
                          "type": "string"
                        },
                        "operator": {
                          "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.",
                          "type": "string"
                        },
                        "values": {
                          "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.",
                          "items": {
                            "type": "string"
                          },
                          "type": [
                            "array",
                            "null"
                          ],
                          "x-kubernetes-list-type": "atomic"
                        }
                      },
                      "required": [
                        "key",
                        "operator"
                      ],
                      "type": "object"
                    },
                    "type": [
                      "array",
                      "null"
                    ],
                    "x-kubernetes-list-type": "atomic"
                  },
                  "matchLabels": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                    "type": [
                      "object",
                      "null"
                    ]
                  }
                },
                "type": "object",
                "x-kubernetes-map-type": "atomic"
              },
              "nullable": true,
              "type": [
                "array",
                "null"
              ]
            },
            "orderedResources": {
              "additionalProperties": {
                "type": "string"
              },
              "description": "OrderedResources specifies the backup order of resources of specific Kind.\nThe map key is the resource name and value is a list of object names separated by commas.\nEach resource name has format \"namespace/objectname\".  For cluster resources, simply use \"objectname\".",
              "nullable": true,
              "type": [
                "object",
                "null"
              ]
            },
            "resourcePolicy": {
              "additionalProperties": false,
              "description": "ResourcePolicy specifies the referenced resource policies that backup should follow",
              "properties": {
                "apiGroup": {
                  "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "kind": {
                  "description": "Kind is the type of resource being referenced",
                  "type": "string"
                },
                "name": {
                  "description": "Name is the name of resource being referenced",
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "name"
              ],
              "type": [
                "object",
                "null"
              ],
              "x-kubernetes-map-type": "atomic"
            },
            "snapshotMoveData": {
              "description": "SnapshotMoveData specifies whether snapshot data should be moved",
              "nullable": true,
              "type": [
                "boolean",
                "null"
              ]
            },
            "snapshotVolumes": {
              "description": "SnapshotVolumes specifies whether to take snapshots\nof any PV's referenced in the set of objects included\nin the Backup.",
              "nullable": true,
              "type": [
                "boolean",
                "null"
              ]
            },
            "storageLocation": {
              "description": "StorageLocation is a string containing the name of a BackupStorageLocation where the backup should be stored.",
              "type": [
                "string",
                "null"
              ]
            },
            "ttl": {
              "description": "TTL is a time.Duration-parseable string describing how long\nthe Backup should be retained for.",
              "type": [
                "string",
                "null"
              ]
            },
            "uploaderConfig": {
              "additionalProperties": false,
              "description": "UploaderConfig specifies the configuration for the uploader.",
              "nullable": true,
              "properties": {
                "parallelFilesUpload": {
                  "description": "ParallelFilesUpload is the number of files parallel uploads to perform when using the uploader.",
                  "type": [
                    "integer",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "volumeGroupSnapshotLabelKey": {
              "description": "VolumeGroupSnapshotLabelKey specifies the label key to group PVCs under a VGS.",
              "type": [
                "string",
                "null"
              ]
            },
            "volumeSnapshotLocations": {
              "description": "VolumeSnapshotLocations is a list containing names of VolumeSnapshotLocations associated with this backup.",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            }
          },
          "type": "object"
        },
        "useOwnerReferencesInBackup": {
          "description": "UseOwnerReferencesBackup specifies whether to use\nOwnerReferences on backups created by this Schedule.",
          "nullable": true,
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "required": [
        "schedule",
        "template"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "ScheduleStatus captures the current state of a Velero schedule",
      "properties": {
        "lastBackup": {
          "description": "LastBackup is the last time a Backup was run for this\nSchedule schedule",
          "format": "date-time",
          "nullable": true,
          "type": [
            "string",
            "null"
          ]
        },
        "lastSkipped": {
          "description": "LastSkipped is the last time a Schedule was skipped",
          "format": "date-time",
          "nullable": true,
          "type": [
            "string",
            "null"
          ]
        },
        "phase": {
          "description": "Phase is the current phase of the Schedule",
          "enum": [
            "New",
            "Enabled",
            "FailedValidation"
          ],
          "type": [
            "string",
            "null"
          ]
        },
        "validationErrors": {
          "description": "ValidationErrors is a slice of all validation errors (if\napplicable)",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}