Skip to content

Commit 6afa402

Browse files
Adding documentation for secret watches (#541)
* Adding documentation for secret watches * Adding feedback * Adding quotes to tags
1 parent c3ba571 commit 6afa402

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/design/watches.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Watching Secrets
2+
3+
The provider secret gets created independently by the user, and it is not part of the operator lifecyle itself. In order for the operator to update the current state of its operands in the case where the provider secrets get deleted or updated, the secret object needs to be watched as a part of the reconcile loop. To achieve this, the secrets are labeled with the following:
4+
5+
```
6+
1. oadpApi.OadpOperatorLabel: "True"
7+
2. <namespace>.dataprotectionapplication: <name>
8+
```
9+
10+
where `<namespace>` is the namespace where OADP operator is installed and `<name>` is the name of the DPA instance
11+
12+
# Current State
13+
14+
When the labeled secret objects get deleted, the operator status gets updated accordingly. Once that happens, if a new secret gets created in the place of original secret, it does not get labeled as of now. There are plans in the future to automatically label the incoming secrets and add it to the reconcile loop. For now, in order to trigger the DPA CR status update, we suggest recreating the operator pod.

0 commit comments

Comments
 (0)