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 b4e4613 commit 56dd166Copy full SHA for 56dd166
examples/operator/run.sh
@@ -18,16 +18,18 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
18
19
$DIR/cleanup.sh
20
21
-sudo mkdir /data
22
-sudo chmod 777 /data
+if [ -d /data ]; then
+ echo "create the HostPath directory"
23
+ sudo mkdir /data
24
+ sudo chmod 777 /data
25
+ echo "create the test PV and PVC using the HostPath dir"
26
+ kubectl create -f $DIR/crunchy-pv.json
27
+ sleep 3
28
+ kubectl create -f $DIR/crunchy-pvc.json
29
30
+fi
31
32
# copy all the operator templates to the PVC location
33
sudo cp -r $COROOT/conf/postgres-operator /data
34
-kubectl create -f $DIR/crunchy-pv.json
-
-sleep 3
-kubectl create -f $DIR/crunchy-pvc.json
35
kubectl create -f $DIR/deployment.json
0 commit comments