Skip to content

Commit 8f1bfd3

Browse files
authored
Merge pull request #91817 from amolnar-rh/TELCODOCS-2209
TELCODOCS-2209#Update the OadpBackupStorageLocationStatus.yaml source CR
2 parents 666dad7 + 80dd838 commit 8f1bfd3

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

modules/ztp-image-based-upgrade-installing-oadp.adoc

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ spec:
138138
.. Extract the following CRs from the `ztp-site-generate` container image and push them to the `source-cr` directory:
139139
+
140140
--
141-
.Example `DataProtectionApplication.yaml` file
141+
.Example `OadpDataProtectionApplication.yaml` file
142142
[source,yaml]
143143
----
144144
apiVersion: oadp.openshift.io/v1alpha1
@@ -180,7 +180,7 @@ status:
180180
type: Reconciled
181181
----
182182
<1> The `spec.configuration.restic.enable` field must be set to `false` for an image-based upgrade because persistent volume contents are retained and reused after the upgrade.
183-
<2> The bucket defines the bucket name that is created in S3 backend. The prefix defines the name of the subdirectory that will be automatically created in the bucket. The combination of bucket and prefix must be unique for each target cluster to avoid interference between them. To ensure a unique storage directory for each target cluster, you can use the {rh-rhacm} hub template function, for example, `prefix: {{hub .ManagedClusterName hub}}`.
183+
<2> The bucket defines the bucket name that is created in S3 backend. The prefix defines the name of the subdirectory that will be automatically created in the bucket. The combination of bucket and prefix must be unique for each target cluster to avoid interference between them. To ensure a unique storage directory for each target cluster, you can use the {rh-rhacm-title} hub template function, for example, `prefix: {{hub .ManagedClusterName hub}}`.
184184

185185
.Example `OadpSecret.yaml` file
186186
[source,yaml]
@@ -201,12 +201,14 @@ type: Opaque
201201
apiVersion: velero.io/v1
202202
kind: BackupStorageLocation
203203
metadata:
204+
name: dataprotectionapplication-1 <1>
204205
namespace: openshift-adp
205206
annotations:
206207
ran.openshift.io/ztp-deploy-wave: "100"
207208
status:
208209
phase: Available
209210
----
211+
<1> The `name` value in the `BackupStorageLocation` resource must follow the `<DataProtectionApplication.metadata.name>-<index>` pattern. The `<index>` represents the position of the corresponding `backupLocations` entry in the `spec.backupLocations` field in the `DataProtectionApplication` resource. The position starts from `1`. If the `metadata.name` value of the `DataProtectionApplication` resource is changed in the `OadpDataProtectionApplication.yaml` file, update the `metadata.name` field in the `BackupStorageLocation` resource accordingly.
210212

211213
The `OadpBackupStorageLocationStatus.yaml` CR verifies the availability of backup storage locations created by OADP.
212214
--
@@ -231,14 +233,14 @@ spec:
231233
policyName: "config-policy"
232234
data:
233235
cloud: <your_credentials> <1>
234-
- fileName: DataProtectionApplication.yaml
236+
- fileName: OadpDataProtectionApplication.yaml <2>
235237
policyName: "config-policy"
236238
spec:
237239
backupLocations:
238240
- velero:
239241
config:
240242
region: minio
241-
s3Url: <your_S3_URL> <2>
243+
s3Url: <your_S3_URL> <3>
242244
profile: "default"
243245
insecureSkipTLSVerify: "true"
244246
s3ForcePathStyle: "true"
@@ -248,11 +250,12 @@ spec:
248250
key: cloud
249251
name: cloud-credentials
250252
objectStorage:
251-
bucket: <your_bucket_name> <3>
252-
prefix: <cluster_name> <3>
253+
bucket: <your_bucket_name> <4>
254+
prefix: <cluster_name> <4>
253255
- fileName: OadpBackupStorageLocationStatus.yaml
254256
policyName: "config-policy"
255257
----
256258
<1> Specify your credentials for your S3 storage backend.
257-
<2> Specify the URL for your S3-compatible bucket.
258-
<3> The `bucket` defines the bucket name that is created in S3 backend. The `prefix` defines the name of the subdirectory that will be automatically created in the `bucket`. The combination of `bucket` and `prefix` must be unique for each target cluster to avoid interference between them. To ensure a unique storage directory for each target cluster, you can use the {rh-rhacm} hub template function, for example, `prefix: {{hub .ManagedClusterName hub}}`.
259+
<2> If more than one `backupLocations` entries are defined in the `OadpDataProtectionApplication` CR, ensure that each location has a corresponding `OadpBackupStorageLocation` CR added for status tracking. Ensure that the name of each additional `OadpBackupStorageLocation` CR is overridden with the correct index as described in the example `OadpBackupStorageLocationStatus.yaml` file.
260+
<3> Specify the URL for your S3-compatible bucket.
261+
<4> The `bucket` defines the bucket name that is created in S3 backend. The `prefix` defines the name of the subdirectory that will be automatically created in the `bucket`. The combination of `bucket` and `prefix` must be unique for each target cluster to avoid interference between them. To ensure a unique storage directory for each target cluster, you can use the {rh-rhacm-title} hub template function, for example, `prefix: {{hub .ManagedClusterName hub}}`.

0 commit comments

Comments
 (0)