Skip to content

Commit d671826

Browse files
iQQBotroboquat
authored andcommitted
Extend registry-facade and blobserve probe time period in dev
1 parent cb12a29 commit d671826

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.werft/jobs/build/installer/post-process.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ while [ "$documentIndex" -le "$DOCS" ]; do
5454
if [[ "$SIZE" -ne "0" ]] && [[ "$NAME" == "registry-facade" ]] && [[ "$KIND" == "DaemonSet" ]] ; then
5555
echo "setting $NAME to $REG_DAEMON_PORT"
5656
yq w -i k8s.yaml -d "$documentIndex" spec.template.spec.containers.[0].ports.[0].hostPort "$REG_DAEMON_PORT"
57+
echo "setting $NAME probe period to 120s"
58+
yq w -i k8s.yaml -d "$documentIndex" spec.template.spec.containers.[0].livenessProbe.periodSeconds 120
59+
yq w -i k8s.yaml -d "$documentIndex" spec.template.spec.containers.[0].livenessProbe.initialDelaySeconds 15
60+
yq w -i k8s.yaml -d "$documentIndex" spec.template.spec.containers.[0].readinessProbe.periodSeconds 120
61+
yq w -i k8s.yaml -d "$documentIndex" spec.template.spec.containers.[0].readinessProbe.initialDelaySeconds 15
62+
fi
63+
if [[ "$NAME" == "blobserve" ]] && [[ "$KIND" == "Deployment" ]] ; then
64+
echo "setting $NAME probe period to 120s"
65+
yq w -i k8s.yaml -d "$documentIndex" spec.template.spec.containers.[0].livenessProbe.periodSeconds 120
66+
yq w -i k8s.yaml -d "$documentIndex" spec.template.spec.containers.[0].livenessProbe.initialDelaySeconds 15
67+
yq w -i k8s.yaml -d "$documentIndex" spec.template.spec.containers.[0].readinessProbe.periodSeconds 120
68+
yq w -i k8s.yaml -d "$documentIndex" spec.template.spec.containers.[0].livenessProbe.initialDelaySeconds 15
5769
fi
5870
if [[ "$SIZE" -ne "0" ]] && [[ "$NAME" == "ws-daemon" ]] && [[ "$KIND" == "DaemonSet" ]] ; then
5971
echo "setting $NAME to $WS_DAEMON_PORT"

0 commit comments

Comments
 (0)