Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 10
commands:
- script: |-
set -o errexit
Expand All @@ -24,3 +23,4 @@ commands:
$sed -r 's/^( namespace:).*pgo.*$/\1 \"'$NAMESPACE'\"/g' |
$sed -r 's/^( pgo_operator_namespace:).*pgo.*$/\1 \"'$OPNS'\"/g' |
kubectl -n $NAMESPACE apply -f -
timeout: 10
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 10
commands:
- script: |-
set -o errexit
Expand All @@ -20,3 +19,4 @@ commands:
sed -r 's/^( namespace:).*pgo.*$/\1 \"'$NAMESPACE'\"/g' |
sed -r 's/^( pgo_operator_namespace:).*pgo.*$/\1 \"'$OPNS'\"/g' |
kubectl -n $NAMESPACE delete -f -
timeout: 10
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 10
commands:
- script: |-
set -o errexit
Expand Down Expand Up @@ -35,3 +34,4 @@ commands:
' - |
$sed -r 's/cluster1/'$V1_CLUSTER_NAME'/g' |
kubectl -n $NAMESPACE apply -f -
timeout: 10
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 30
commands:
- script: |-
set -o errexit
Expand All @@ -14,3 +13,4 @@ commands:
data=$(run_psql '\c myapp \\\ SELECT * from myApp;' "postgres://postgres:$POSTGRES_V1_PASS@$POSTGRES_V1_CLUSTER_NAME")

kubectl create configmap -n "$NAMESPACE" 04-read-from-primary --from-literal=data="$data"
timeout: 30
4 changes: 2 additions & 2 deletions e2e-tests/tests/migration-backup-s3/08-deploy-operator.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 10
commands:
- script: |-
set -o errexit
Expand All @@ -9,4 +8,5 @@ commands:
source ../../functions

deploy_operator
deploy_s3_secrets
deploy_s3_secrets
timeout: 10
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 30
commands:
- script: |-
set -o errexit
Expand All @@ -11,3 +10,4 @@ commands:
data=$(run_psql '\c myapp \\\ SELECT * from myApp;' "postgres://postgres:$(get_psql_user_pass migration-backup-s3-pguser-postgres)@$(get_psql_user_host migration-backup-s3-pguser-postgres)")

kubectl create configmap -n "${NAMESPACE}" 11-read-from-primary --from-literal=data="${data}"
timeout: 30
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 30
commands:
- script: |-
set -o errexit
Expand All @@ -11,3 +10,4 @@ commands:
data=$(run_psql '\c myapp \\\ SELECT * from myApp;' "postgres://postgres:$(get_psql_user_pass migration-backup-s3-pguser-postgres)@$(get_psql_user_host migration-backup-s3-pguser-postgres)")

kubectl create configmap -n "${NAMESPACE}" 12-read-from-primary --from-literal=data="${data}"
timeout: 30
Loading