-
Notifications
You must be signed in to change notification settings - Fork 1.8k
dita-vale-oadp-api-4.18 #100507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
shdeshpa07
merged 1 commit into
openshift:enterprise-4.18
from
shdeshpa07:4.18-dita-oadp-api
Oct 15, 2025
Merged
dita-vale-oadp-api-4.18 #100507
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
262 changes: 35 additions & 227 deletions
262
backup_and_restore/application_backup_and_restore/oadp-api.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,254 +1,62 @@ | ||
|
|
||
| :_mod-docs-content-type: ASSEMBLY | ||
| [id="oadp-api"] | ||
| = APIs used with OADP | ||
| :toc: | ||
|
|
||
| include::_attributes/common-attributes.adoc[] | ||
| :context: oadp-api | ||
| :namespace: openshift-adp | ||
| :local-product: OADP | ||
| :velero-domain: velero.io | ||
|
|
||
| toc::[] | ||
|
|
||
| The document provides information about the following APIs that you can use with OADP: | ||
|
|
||
| * Velero API | ||
| * OADP API | ||
|
|
||
| [id="velero-api"] | ||
| == Velero API | ||
|
|
||
| Velero API documentation is maintained by Velero, not by Red Hat. It can be found at link:https://velero.io/docs/main/api-types/[Velero API types]. | ||
|
|
||
| [id="oadp-api-tables"] | ||
| == OADP API | ||
|
|
||
| The following tables provide the structure of the OADP API: | ||
|
|
||
| .DataProtectionApplicationSpec | ||
| [options="header"] | ||
| |=== | ||
| |Property|Type|Description | ||
|
|
||
| |`backupLocations` | ||
| |[] link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#BackupLocation[`BackupLocation`] | ||
| |Defines the list of configurations to use for `BackupStorageLocations`. | ||
|
|
||
| |`snapshotLocations` | ||
| |[] link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#SnapshotLocation[`SnapshotLocation`] | ||
| |Defines the list of configurations to use for `VolumeSnapshotLocations`. | ||
|
|
||
| |`unsupportedOverrides` | ||
| |map [ link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#UnsupportedImageKey[UnsupportedImageKey] ] link:https://pkg.go.dev/builtin#string[string] | ||
| |Can be used to override the deployed dependent images for development. Options are `veleroImageFqin`, `awsPluginImageFqin`, `openshiftPluginImageFqin`, `azurePluginImageFqin`, `gcpPluginImageFqin`, `csiPluginImageFqin`, `dataMoverImageFqin`, `resticRestoreImageFqin`, `kubevirtPluginImageFqin`, and `operator-type`. | ||
|
|
||
| |`podAnnotations` | ||
| |map [ link:https://pkg.go.dev/builtin#string[string] ] link:https://pkg.go.dev/builtin#string[string] | ||
| |Used to add annotations to pods deployed by Operators. | ||
|
|
||
| |`podDnsPolicy` | ||
| |link:https://pkg.go.dev/k8s.io/api/core/v1#DNSPolicy[`DNSPolicy`] | ||
| |Defines the configuration of the DNS of a pod. | ||
|
|
||
| |`podDnsConfig` | ||
| |link:https://pkg.go.dev/k8s.io/api/core/v1#PodDNSConfig[`PodDNSConfig`] | ||
| |Defines the DNS parameters of a pod in addition to those generated from `DNSPolicy`. | ||
|
|
||
| |`backupImages` | ||
| |*link:https://pkg.go.dev/builtin#bool[bool] | ||
| |Used to specify whether or not you want to deploy a registry for enabling backup and restore of images. | ||
|
|
||
| |`configuration` | ||
| |*link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#ApplicationConfig[`ApplicationConfig`] | ||
| |Used to define the data protection application's server configuration. | ||
|
|
||
| |`features` | ||
| |*link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#Features[`Features`] | ||
| |Defines the configuration for the DPA to enable the Technology Preview features. | ||
| |=== | ||
|
|
||
| link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#DataProtectionApplicationSpec[Complete schema definitions for the OADP API]. | ||
|
|
||
| .BackupLocation | ||
| [options="header"] | ||
| |=== | ||
| |Property|Type|Description | ||
|
|
||
| |`velero` | ||
| |*link:https://pkg.go.dev/github.com/vmware-tanzu/velero/pkg/apis/velero/v1#BackupStorageLocationSpec[velero.BackupStorageLocationSpec] | ||
| |Location to store volume snapshots, as described in link:https://pkg.go.dev/github.com/vmware-tanzu/velero/pkg/apis/velero/v1#BackupStorageLocation[Backup Storage Location]. | ||
|
|
||
| |`bucket` | ||
| | *link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#CloudStorageLocation[CloudStorageLocation] | ||
| | [Technology Preview] Automates creation of a bucket at some cloud storage providers for use as a backup storage location. | ||
| |=== | ||
|
|
||
| :FeatureName: The `bucket` parameter | ||
| include::snippets/technology-preview.adoc[leveloffset=+1] | ||
|
|
||
| link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#BackupLocation[Complete schema definitions for the type `BackupLocation`]. | ||
|
|
||
| .SnapshotLocation | ||
| [options="header"] | ||
| |=== | ||
| |Property|Type|Description | ||
|
|
||
| |`velero` | ||
| |*link:https://pkg.go.dev/github.com/vmware-tanzu/velero/pkg/apis/velero/v1#VolumeSnapshotLocationSpec[VolumeSnapshotLocationSpec] | ||
| |Location to store volume snapshots, as described in link:https://pkg.go.dev/github.com/vmware-tanzu/velero/pkg/apis/velero/v1#VolumeSnapshotLocation[Volume Snapshot Location]. | ||
| |=== | ||
|
|
||
| link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#SnapshotLocation[Complete schema definitions for the type `SnapshotLocation`]. | ||
|
|
||
| .ApplicationConfig | ||
| [options="header"] | ||
| |=== | ||
| |Property|Type|Description | ||
|
|
||
| |`velero` | ||
| |*link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#VeleroConfig[VeleroConfig] | ||
| |Defines the configuration for the Velero server. | ||
|
|
||
| |`restic` | ||
| |*link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#ResticConfig[ResticConfig] | ||
| |Defines the configuration for the Restic server. | ||
| |=== | ||
|
|
||
| link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#ApplicationConfig[Complete schema definitions for the type `ApplicationConfig`]. | ||
|
|
||
| .VeleroConfig | ||
| [options="header"] | ||
| |=== | ||
| |Property|Type|Description | ||
|
|
||
| |`featureFlags` | ||
| |[] link:https://pkg.go.dev/builtin#string[string] | ||
| |Defines the list of features to enable for the Velero instance. | ||
|
|
||
| |`defaultPlugins` | ||
| |[] link:https://pkg.go.dev/builtin#string[string] | ||
| |The following types of default Velero plugins can be installed: `aws`,`azure`, `csi`, `gcp`, `kubevirt`, and `openshift`. | ||
|
|
||
| |`customPlugins` | ||
| |[]link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#CustomPlugin[CustomPlugin] | ||
| |Used for installation of custom Velero plugins. | ||
|
|
||
| Default and custom plugins are described in xref:../../backup_and_restore/application_backup_and_restore/oadp-features-plugins#oadp-features-plugins[OADP plugins] | ||
|
|
||
| |`restoreResourcesVersionPriority` | ||
| |link:https://pkg.go.dev/builtin#string[string] | ||
| |Represents a config map that is created if defined for use in conjunction with the `EnableAPIGroupVersions` feature flag. Defining this field automatically adds `EnableAPIGroupVersions` to the Velero server feature flag. | ||
|
|
||
| |`noDefaultBackupLocation` | ||
| |link:https://pkg.go.dev/builtin#bool[bool] | ||
| |To install Velero without a default backup storage location, you must set the `noDefaultBackupLocation` flag in order to confirm installation. | ||
|
|
||
| |`podConfig` | ||
| |*link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#PodConfig[`PodConfig`] | ||
| |Defines the configuration of the `Velero` pod. | ||
|
|
||
| |`logLevel` | ||
| |link:https://pkg.go.dev/builtin#string[string] | ||
| |Velero server’s log level (use `debug` for the most granular logging, leave unset for Velero default). Valid options are `trace`, `debug`, `info`, `warning`, `error`, `fatal`, and `panic`. | ||
| |=== | ||
|
|
||
| link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#VeleroConfig[Complete schema definitions for the type `VeleroConfig`]. | ||
|
|
||
| .CustomPlugin | ||
| [options="header"] | ||
| |=== | ||
| |Property|Type|Description | ||
|
|
||
| |`name` | ||
| |link:https://pkg.go.dev/builtin#string[string] | ||
| |Name of custom plugin. | ||
|
|
||
| |`image` | ||
| |link:https://pkg.go.dev/builtin#string[string] | ||
| |Image of custom plugin. | ||
| |=== | ||
|
|
||
| link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#CustomPlugin[Complete schema definitions for the type `CustomPlugin`]. | ||
|
|
||
| .ResticConfig | ||
| [options="header"] | ||
| |=== | ||
| |Property|Type|Description | ||
|
|
||
| |`enable` | ||
| |*link:https://pkg.go.dev/builtin#bool[bool] | ||
| |If set to `true`, enables backup and restore using Restic. If set to `false`, snapshots are needed. | ||
|
|
||
| |`supplementalGroups` | ||
| |[]link:https://pkg.go.dev/builtin#int64[int64] | ||
| |Defines the Linux groups to be applied to the `Restic` pod. | ||
|
|
||
| |`timeout` | ||
| |link:https://pkg.go.dev/builtin#string[string] | ||
| |A user-supplied duration string that defines the Restic timeout. Default value is `1hr` (1 hour). A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as `300ms`, -1.5h` or `2h45m`. Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, and `h`. | ||
|
|
||
| |`podConfig` | ||
| |*link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#PodConfig[`PodConfig`] | ||
| |Defines the configuration of the `Restic` pod. | ||
| |=== | ||
|
|
||
| link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#ResticConfig[Complete schema definitions for the type `ResticConfig`]. | ||
| [role="_abstract"] | ||
| You can use the following APIs with {oadp-short}: | ||
|
|
||
| .PodConfig | ||
| [options="header"] | ||
| |=== | ||
| |Property|Type|Description | ||
| Velero API:: | ||
| Velero API documentation is maintained by Velero and is not maintained by Red{nbsp}Hat. For more information, see link:https://velero.io/docs/main/api-types/[API types] (Velero documentation). | ||
|
|
||
| |`nodeSelector` | ||
| |map [ link:https://pkg.go.dev/builtin#string[string] ] link:https://pkg.go.dev/builtin#string[string] | ||
| |Defines the `nodeSelector` to be supplied to a `Velero` `podSpec` or a `Restic` `podSpec`. | ||
| For more details, see xref:../../backup_and_restore/application_backup_and_restore/oadp-api.adoc#oadp-configuring-node-agents_oadp-api[Configuring node agents and node labels]. | ||
| OADP API:: | ||
|
|
||
| |`tolerations` | ||
| |[]link:https://pkg.go.dev/k8s.io/api/core/v1#Toleration[Toleration] | ||
| |Defines the list of tolerations to be applied to a Velero deployment or a Restic `daemonset`. | ||
| The following are the {oadp-short} APIs: | ||
|
|
||
| |`resourceAllocations` | ||
| |link:https://pkg.go.dev/k8s.io/api/core/v1#ResourceRequirements[ResourceRequirements] | ||
| |Set specific resource `limits` and `requests` for a `Velero` pod or a `Restic` pod as described in xref:../../backup_and_restore/application_backup_and_restore/installing/installing-oadp-aws.adoc#oadp-setting-resource-limits-and-requests_installing-oadp-aws[Setting Velero CPU and memory resource allocations]. | ||
| * `DataProtectionApplicationSpec` | ||
| * `BackupLocation` | ||
| * `SnapshotLocation` | ||
| * `ApplicationConfig` | ||
| * `VeleroConfig` | ||
| * `CustomPlugin` | ||
| * `ResticConfig` | ||
| * `PodConfig` | ||
| * `Features` | ||
| * `DataMover` | ||
| + | ||
| For more information, see in link:https://pkg.go.dev/github.com/openshift/oadp-operator[OADP Operator](Go documentation). | ||
|
|
||
| |`labels` | ||
| |map [ link:https://pkg.go.dev/builtin#string[string] ] link:https://pkg.go.dev/builtin#string[string] | ||
| |Labels to add to pods. | ||
| |=== | ||
| include::modules/dataprotectionapplicationspec-type.adoc[leveloffset=+1] | ||
|
|
||
| include::modules/oadp-configuring-node-agents.adoc[leveloffset=+2] | ||
| include::modules/backuplocation-type.adoc[leveloffset=+1] | ||
|
|
||
| link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#PodConfig[Complete schema definitions for the type `PodConfig`]. | ||
| include::modules/snapshotlocation-type.adoc[leveloffset=+1] | ||
|
|
||
| .Features | ||
| [options="header"] | ||
| |=== | ||
| |Property|Type|Description | ||
| include::modules/applicationconfig-type.adoc[leveloffset=+1] | ||
|
|
||
| |`dataMover` | ||
| |*link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#DataMover[`DataMover`] | ||
| |Defines the configuration of the Data Mover. | ||
| |=== | ||
| include::modules/veleroconfig-type.adoc[leveloffset=+1] | ||
|
|
||
| link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#Features[Complete schema definitions for the type `Features`]. | ||
| include::modules/customplugin-type.adoc[leveloffset=+1] | ||
|
|
||
| .DataMover | ||
| [options="header"] | ||
| |=== | ||
| |Property|Type|Description | ||
| include::modules/resticconfig-type.adoc[leveloffset=+1] | ||
|
|
||
| |`enable` | ||
| |link:https://pkg.go.dev/builtin#bool[bool] | ||
| |If set to `true`, deploys the volume snapshot mover controller and a modified CSI Data Mover plugin. If set to `false`, these are not deployed. | ||
| include::modules/podconfig-type.adoc[leveloffset=+1] | ||
|
|
||
| |`credentialName` | ||
| |link:https://pkg.go.dev/builtin#string[string] | ||
| |User-supplied Restic `Secret` name for Data Mover. | ||
| [role="_additional-resources"] | ||
| .Additional resources | ||
|
|
||
| |`timeout` | ||
| |link:https://pkg.go.dev/builtin#string[string] | ||
| |A user-supplied duration string for `VolumeSnapshotBackup` and `VolumeSnapshotRestore` to complete. Default is `10m` (10 minutes). A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as `300ms`, -1.5h` or `2h45m`. Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, and `h`. | ||
| |=== | ||
| * xref:../../backup_and_restore/application_backup_and_restore/oadp-features-plugins#oadp-features-plugins[OADP plugins] | ||
| * link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#PodConfig[Complete schema definitions for the type `PodConfig`](Go documentation) | ||
|
|
||
| The OADP API is more fully detailed in link:https://pkg.go.dev/github.com/openshift/oadp-operator[OADP Operator]. | ||
| include::modules/features-type.adoc[leveloffset=+1] | ||
|
|
||
| include::modules/datamover-type.adoc[leveloffset=+1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
|
|
||
| // Module included in the following assemblies: | ||
| // | ||
| // backup_and_restore/application_backup_and_restore/oadp-api.adoc | ||
| :_mod-docs-content-type: REFERENCE | ||
|
|
||
| [id="applicationconfig-type_{context}"] | ||
| = ApplicationConfig type | ||
|
|
||
| [role="_abstract"] | ||
| The following are `ApplicationConfig` {oadp-short} APIs: | ||
|
|
||
| .ApplicationConfig | ||
| [options="header"] | ||
| |=== | ||
| |Property|Type|Description | ||
|
|
||
| |`velero` | ||
| |*link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#VeleroConfig[VeleroConfig] | ||
| |Defines the configuration for the Velero server. | ||
|
|
||
| |`restic` | ||
| |*link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#ResticConfig[ResticConfig] | ||
| |Defines the configuration for the Restic server. | ||
| |=== | ||
|
|
||
|
|
||
| [role="_additional-resources"] | ||
| .Additional resources | ||
| * link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#ApplicationConfig[Complete schema definitions for the type `ApplicationConfig`] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
|
|
||
| // Module included in the following assemblies: | ||
| // | ||
| // backup_and_restore/application_backup_and_restore/oadp-api.adoc | ||
| :_mod-docs-content-type: REFERENCE | ||
|
|
||
| [id="backuplocation-type_{context}"] | ||
| = BackupLocation type | ||
|
|
||
| [role="_abstract"] | ||
| The following are `BackupLocation` {oadp-short} APIs: | ||
|
|
||
| .BackupLocation | ||
| [options="header"] | ||
| |=== | ||
| |Property|Type|Description | ||
|
|
||
| |`velero` | ||
| |*link:https://pkg.go.dev/github.com/vmware-tanzu/velero/pkg/apis/velero/v1#BackupStorageLocationSpec[velero.BackupStorageLocationSpec] | ||
| |Location to store volume snapshots, as described in link:https://pkg.go.dev/github.com/vmware-tanzu/velero/pkg/apis/velero/v1#BackupStorageLocation[Backup Storage Location]. | ||
|
|
||
| |`bucket` | ||
| | *link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#CloudStorageLocation[CloudStorageLocation] | ||
| | Automates creation of a bucket at some cloud storage providers for use as a backup storage location. | ||
| |=== | ||
|
|
||
| :FeatureName: The `bucket` parameter | ||
| include::snippets/technology-preview.adoc[leveloffset=+1] | ||
|
|
||
|
|
||
| [role="_additional-resources"] | ||
| .Additional resources | ||
| * link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#BackupLocation[Complete schema definitions for the type `BackupLocation`] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
|
|
||
| // Module included in the following assemblies: | ||
| // | ||
| // backup_and_restore/application_backup_and_restore/oadp-api.adoc | ||
| :_mod-docs-content-type: REFERENCE | ||
|
|
||
| [id="customplugin-type_{context}"] | ||
| = CustomPlugin type | ||
|
|
||
| [role="_abstract"] | ||
| The following are `CustomPlugin` {oadp-short} APIs: | ||
|
|
||
| .CustomPlugin | ||
| [options="header"] | ||
| |=== | ||
| |Property|Type|Description | ||
|
|
||
| |`name` | ||
| |link:https://pkg.go.dev/builtin#string[string] | ||
| |Name of custom plugin. | ||
|
|
||
| |`image` | ||
| |link:https://pkg.go.dev/builtin#string[string] | ||
| |Image of custom plugin. | ||
| |=== | ||
|
|
||
| [role="_additional-resources"] | ||
| .Additional resources | ||
| * link:https://pkg.go.dev/github.com/openshift/oadp-operator/api/v1alpha1#CustomPlugin[Complete schema definitions for the type `CustomPlugin`] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.