Skip to content
Snippets Groups Projects
Verified Commit 60186ee1 authored by Dominik Kaminski's avatar Dominik Kaminski :fire:
Browse files

fix(sovereign-workplace-jitsi): Fix patchJVB breaking loop and let status field be customized

parent 800c596a
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ data:
maxRetries=30
until [ $counter -gt ${maxRetries} ]; do
echo "Wait for LoadBalancer IP (${counter}/${maxRetries})"
ip=$(kubectl get svc jitsi-jvb -o jsonpath='{.status.loadBalancer.ingress[0].ip}');
ip=$(kubectl get svc jitsi-jvb -o jsonpath='{.status.loadBalancer.ingress[0].{{ .Values.patchJVB.configuration.loadbalancerStatusField }}' || true);
if [ ${ip} ]; then
break;
else
......@@ -38,6 +38,11 @@ data:
sleep 5;
fi
done
if [ $counter -le 0 ]; then
echo "Reached retries limit, exiting..."
exit 1
fi;
echo "Patching JVB to advertise IP: ${ip}"
kubectl patch cm jitsi-jvb --type json --patch \
"[{ \"op\": \"add\", \"path\": \"/data/JVB_ADVERTISE_IPS\", \"value\": \"${ip}\" },
......
......@@ -92,6 +92,11 @@ patchJVB:
# your ingress gateway.
staticLoadbalancerIP: ""
# -- Relevant for LoadBalancer deployment only.
# The IP/DNS of your load-balancer will be fetched from the status entry of service - here you can define which
# field should be taken.
loadbalancerStatusField: "ip"
# Security Context.
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
containerSecurityContext:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.