Skip to content

Commit

Permalink
K8SPSMDB-1109: Fix demand-backup-fs in Azure (#1784)
Browse files Browse the repository at this point in the history
* K8SPSMDB-1109: Fix demand-backup-fs in Azure

* Change conditional syntax
  • Loading branch information
jvpasinatto authored Jan 11, 2025
1 parent 1d46187 commit 8481dc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e-tests/demand-backup-fs/run
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ create_infra ${namespace}

kubectl_bin delete ns storage || :

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

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

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

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

0 comments on commit 8481dc9

Please sign in to comment.