Skip to content

Commit

Permalink
K8SPSMDB-921 fix IRSA test
Browse files Browse the repository at this point in the history
  • Loading branch information
nmarukovich committed Jan 10, 2025
1 parent d7b7204 commit 5c4d2a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e-tests/demand-backup-eks-credentials-irsa/run
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ compare_kubectl statefulset/$cluster-rs0

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

kubectl_bin annotate serviceaccount default \
kubectl_bin annotate serviceaccount default \
eks.amazonaws.com/role-arn="$role_arn" \
--overwrite

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

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

kubectl_bin delete pod "$cluster-rs0-0"
kubectl_bin delete pod "$cluster-rs0-1"
Expand Down

0 comments on commit 5c4d2a4

Please sign in to comment.