Skip to content

Commit 8481dc9

Browse files
authored
K8SPSMDB-1109: Fix demand-backup-fs in Azure (#1784)
* K8SPSMDB-1109: Fix demand-backup-fs in Azure * Change conditional syntax
1 parent 1d46187 commit 8481dc9

File tree

1 file changed

+4
-4
lines changed
  • e2e-tests/demand-backup-fs

1 file changed

+4
-4
lines changed

e2e-tests/demand-backup-fs/run

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ create_infra ${namespace}
5050

5151
kubectl_bin delete ns storage || :
5252

53-
if [[ $EKS == 1 || -n ${OPENSHIFT} ]]; then
54-
sc=$(kubectl_bin get storageclass | tail -1 | awk '{print $1}')
53+
if [[ $GKE != 1 ]]; then
54+
sc=$(kubectl_bin get storageclass | tail -1 | awk '{print $1}')
5555
kubectl_bin annotate storageclass ${sc} storageclass.kubernetes.io/is-default-class=true
5656
fi
5757

@@ -64,7 +64,7 @@ kubectl_bin apply \
6464
-f "${conf_dir}/client.yml"
6565

6666
log "creating PSMDB cluster ${cluster}"
67-
if [[ $EKS == 1 || -n ${OPENSHIFT} ]]; then
67+
if [[ $GKE != 1 ]]; then
6868
nfs_ip=$(kubectl_bin -n storage get svc nfs-service -o jsonpath={.spec.clusterIP})
6969
sed "s/nfs-service.storage.svc.cluster.local/${nfs_ip}/g" ${test_dir}/conf/${cluster}.yaml \
7070
| kubectl_bin apply -f -
@@ -75,7 +75,7 @@ fi
7575
log 'wait for all 3 pods to start'
7676
wait_for_running ${cluster}-rs0 3
7777

78-
if [[ $EKS -ne 1 && -z ${OPENSHIFT} ]]; then
78+
if [[ $GKE == 1 ]]; then
7979
log 'checking if statefulset created with expected config'
8080
compare_kubectl statefulset/${cluster}-rs0
8181
fi

0 commit comments

Comments
 (0)