You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/deployment.sh
+40-2Lines changed: 40 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -98,10 +98,48 @@ stac-auth-proxy:
98
98
initContainers:
99
99
- name: wait-for-mock-oidc
100
100
image: busybox:1.35
101
-
command: ['sh', '-c', 'until nc -z ${RELEASE_NAME}-mock-oidc-server.${NAMESPACE}.svc.cluster.local 8080; do echo waiting for mock-oidc; sleep 2; done']
101
+
command: ['sh', '-c']
102
+
args:
103
+
- |
104
+
echo "Waiting for mock OIDC server to be ready..."
105
+
timeout=300
106
+
elapsed=0
107
+
while [ \$elapsed -lt \$timeout ]; do
108
+
if nc -z ${RELEASE_NAME}-mock-oidc-server.${NAMESPACE}.svc.cluster.local 8080; then
109
+
echo "Mock OIDC server port is open, checking health endpoint..."
110
+
if wget -q --spider --timeout=5 "http://${RELEASE_NAME}-mock-oidc-server.${NAMESPACE}.svc.cluster.local:8080/.well-known/openid-configuration" 2>/dev/null; then
111
+
echo "Mock OIDC server is ready!"
112
+
exit 0
113
+
else
114
+
echo "Mock OIDC port open but health check failed, retrying..."
115
+
fi
116
+
else
117
+
echo "Mock OIDC server not ready, waiting..."
118
+
fi
119
+
sleep 5
120
+
elapsed=\$((elapsed + 5))
121
+
done
122
+
echo "Timeout waiting for mock OIDC server after \${timeout}s"
123
+
exit 1
102
124
- name: wait-for-stac
103
125
image: busybox:1.35
104
-
command: ['sh', '-c', 'until nc -z ${RELEASE_NAME}-stac.${NAMESPACE}.svc.cluster.local 8080; do echo waiting for stac service; sleep 2; done']
126
+
command: ['sh', '-c']
127
+
args:
128
+
- |
129
+
echo "Waiting for STAC service to be ready..."
130
+
timeout=300
131
+
elapsed=0
132
+
while [ \$elapsed -lt \$timeout ]; do
133
+
if nc -z ${RELEASE_NAME}-stac.${NAMESPACE}.svc.cluster.local 8080; then
134
+
echo "STAC service is ready!"
135
+
exit 0
136
+
fi
137
+
echo "STAC service not ready, waiting..."
138
+
sleep 3
139
+
elapsed=\$((elapsed + 3))
140
+
done
141
+
echo "Timeout waiting for STAC service after \${timeout}s"
142
+
exit 1
105
143
EOF
106
144
helm_cmd="$helm_cmd -f $temp_values"
107
145
# Configure STAC service to run without root path when behind auth proxy
0 commit comments