mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
45 lines
1.9 KiB
Plaintext
45 lines
1.9 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// backup_and_restore/application_backup_and_restore/oadp-self-service/oadp-self-service-cluster-admin-use-cases.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="oadp-self-service-rejecting-nabsl_{context}"]
|
|
= Rejecting a NonAdminBackupStorageLocation request
|
|
|
|
As a cluster administrator, to reject a `NonAdminBackupStorageLocation` (NABSL) custom resource (CR) request, you can edit the `NonAdminBackupStorageLocationRequest` CR and set the `approvalDecision` field to `reject`.
|
|
|
|
.Prerequisites
|
|
|
|
* You are logged in to the cluster with the `cluster-admin` role.
|
|
* You have installed the {oadp-short} Operator.
|
|
* You have enabled {oadp-short} Self-Service in the `DataProtectionApplication` (DPA) CR.
|
|
* You have enabled the NABSL CR approval workflow in the DPA.
|
|
|
|
.Procedure
|
|
|
|
. To see the NABSL CR requests that are in queue for administrator approval, run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc -n openshift-adp get NonAdminBackupStorageLocationRequests
|
|
----
|
|
+
|
|
.Example output
|
|
|
|
[source,terminal]
|
|
----
|
|
$ oc get nabslrequest
|
|
NAME REQUEST-PHASE REQUEST-NAMESPACE REQUEST-NAME AGE
|
|
non-admin-bsl-test-.....175 Approved non-admin-bsl-test incorrect-bucket-nabsl 4m57s
|
|
non-admin-bsl-test-.....196 Approved non-admin-bsl-test perfect-nabsl 5m26s
|
|
non-admin-bsl-test-s....e1a Rejected non-admin-bsl-test suspicious-sample 2m56s
|
|
non-admin-bsl-test-.....5e0 Pending non-admin-bsl-test waitingapproval-nabsl 4m20s
|
|
----
|
|
|
|
. To reject the NABSL CR request, set the `approvalDecision` field to `reject` by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc patch nabslrequest <nabsl_name> -n openshift-adp --type=merge -p '{"spec": {"approvalDecision": "reject"}}' # <1>
|
|
----
|
|
<1> Specify the name of the `NonAdminBackupStorageLocationRequest` CR. |