Skip to content

Commit 5c4d2a4

Browse files
committed
K8SPSMDB-921 fix IRSA test
1 parent d7b7204 commit 5c4d2a4

File tree

1 file changed

+3
-3
lines changed
  • e2e-tests/demand-backup-eks-credentials-irsa

1 file changed

+3
-3
lines changed

e2e-tests/demand-backup-eks-credentials-irsa/run

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ compare_kubectl statefulset/$cluster-rs0
6666

6767
desc "update service accounts for operator and default (our cluster uses this one)"
6868

69-
kubectl_bin annotate serviceaccount default \
69+
kubectl_bin annotate serviceaccount default \
7070
eks.amazonaws.com/role-arn="$role_arn" \
7171
--overwrite
7272

73-
kubectl_bin annotate serviceaccount percona-server-mongodb-operator \
73+
kubectl_bin ${OPERATOR_NS:+-n $OPERATOR_NS} annotate serviceaccount percona-server-mongodb-operator \
7474
eks.amazonaws.com/role-arn="$role_arn" \
7575
--overwrite
7676

7777
desc "restart operator and cluster"
7878
operator_pod=$(get_operator_pod)
79-
kubectl_bin delete pod $operator_pod
79+
kubectl_bin ${OPERATOR_NS:+-n $OPERATOR_NS} delete pod $operator_pod
8080

8181
kubectl_bin delete pod "$cluster-rs0-0"
8282
kubectl_bin delete pod "$cluster-rs0-1"

0 commit comments

Comments
 (0)