Skip to content

Commit d4e7797

Browse files
committed
bump ocp
1 parent 26612cd commit d4e7797

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

scripts/install-px

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,16 @@ chmod +x /usr/local/bin/pxc-pxctl
144144
echo "alias pxctl='kubectl pxc pxctl'" >>/root/.bashrc
145145
kubectl-pxc config cluster set --portworx-service-namespace=portworx
146146

147+
# Wait for cluster readiness
148+
while ! kubectl get stc -A -n portworx | grep -q 'Running\|Online'; do
149+
echo "Waiting for StorageCluster status online"
150+
sleep 3
151+
done
152+
147153
# Install Grafana
148154
if [ $platform = ocp4 ]; then
155+
kubectl patch StorageCluster px-deploy-$cluster -n portworx --type merge --patch '{"spec": {"monitoring": {"prometheus": {"alertManager": {"enabled": false}}}}}'
156+
kubectl patch StorageCluster px-deploy-$cluster -n portworx --type merge --patch '{"spec": {"monitoring": {"prometheus": {"enabled": false}}}}'
149157
kubectl apply -n portworx -f https://docs.portworx.com/samples/portworx-enterprise/k8s/pxc/grafana-service-account.yaml
150158
oc -n portworx adm policy add-cluster-role-to-user cluster-monitoring-view -z grafana
151159
TOKEN=$(oc -n portworx create token grafana --duration=8760h)
@@ -172,10 +180,10 @@ if [ $platform != eks ] && [ $platform != gke ] && [ $platform != ocp4 ] && [ $p
172180
fi
173181

174182
# Wait for cluster readiness
175-
while ! kubectl get stc -A -n portworx | grep -q 'Running\|Online'; do
176-
echo "Waiting for StorageCluster status online"
177-
sleep 3
178-
done
183+
#while ! kubectl get stc -A -n portworx | grep -q 'Running\|Online'; do
184+
# echo "Waiting for StorageCluster status online"
185+
# sleep 3
186+
#done
179187

180188
# install storkctl
181189
STORK_POD=$(kubectl get pods -n portworx -l name=stork -o jsonpath='{.items[0].metadata.name}')

0 commit comments

Comments
 (0)