We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6a65be commit 1ad7f0aCopy full SHA for 1ad7f0a
scripts/deploy-statefulset-test-pods.sh
@@ -11,6 +11,8 @@ mkdir -p ./temp
11
REPLICAS=2
12
# adjust replicas for possible SNO clusters
13
NUM_NODES=$(oc get nodes --no-headers | wc -l)
14
+NUM_NODES="${NUM_NODES#"${NUM_NODES%%[![:space:]]*}"}"
15
+NUM_NODES="${NUM_NODES%"${NUM_NODES##*[![:space:]]}"}"
16
if [[ $NUM_NODES == 1 ]]; then
17
REPLICAS=1
18
fi
scripts/deploy-test-pods.sh
0 commit comments