-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
archive-async by default with spool-path (#3962)
* archive-async by default with spool-path Issue: PGO-1371 PGO-1142
- Loading branch information
1 parent
5f07d66
commit 9aa988c
Showing
7 changed files
with
62 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
17 changes: 17 additions & 0 deletions
17
testing/kuttl/e2e/pgbackrest-init/06--check-spool-path.yaml
This file contains 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,17 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
PRIMARY=$( | ||
kubectl get pod --namespace "${NAMESPACE}" \ | ||
--output name --selector ' | ||
postgres-operator.crunchydata.com/role=master' | ||
) | ||
LIST=$( | ||
kubectl exec --namespace "${NAMESPACE}" -c database "${PRIMARY}" -- \ | ||
ls -l /pgdata | ||
) | ||
contains() { bash -ceu '[[ "$1" == *"$2"* ]]' - "$@"; } | ||
contains "$LIST" "pgbackrest-spool" || exit 1 |
19 changes: 19 additions & 0 deletions
19
testing/kuttl/e2e/wal-pvc-pgupgrade/06--check-spool-path.yaml
This file contains 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,19 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
PRIMARY=$( | ||
kubectl get pod --namespace "${NAMESPACE}" \ | ||
--output name --selector ' | ||
postgres-operator.crunchydata.com/role=master' | ||
) | ||
LIST=$( | ||
kubectl exec --namespace "${NAMESPACE}" -c database "${PRIMARY}" -- \ | ||
ls -l /pgdata | ||
) | ||
contains() { bash -ceu '[[ "$1" == *"$2"* ]]' - "$@"; } | ||
# Confirm that the pgbackrest spool-path has been symlinked to the wal volume. | ||
contains "$LIST" "pgbackrest-spool -> /pgwal/pgbackrest-spool" || exit 1 |