File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -141,19 +141,16 @@ if [[ "${runtime}" == "k8s" ]]; then
141
141
echo " Available Kind clusters:"
142
142
kind get clusters || echo " No clusters found"
143
143
144
- # Load into Kind cluster - try with and without cluster name
145
- if kind get clusters | grep -q " kind" ; then
146
- echo " Loading images into 'kind' cluster..."
147
- kind load docker-image jaegertracing/all-in-one:latest --name kind
148
- kind load docker-image jaegertracing/example-hotrod:latest --name kind
144
+ # Get the actual cluster name
145
+ CLUSTER_NAME=$( kind get clusters | head -n1)
146
+ if [[ -n " $CLUSTER_NAME " ]]; then
147
+ echo " Loading images into '$CLUSTER_NAME ' cluster..."
148
+ kind load docker-image jaegertracing/all-in-one:latest --name " $CLUSTER_NAME "
149
+ kind load docker-image jaegertracing/example-hotrod:latest --name " $CLUSTER_NAME "
149
150
else
150
- # Try without specifying cluster name (uses default)
151
- echo " Loading images into default cluster..."
152
- kind load docker-image jaegertracing/all-in-one:latest
153
- kind load docker-image jaegertracing/example-hotrod:latest
151
+ echo " No Kind clusters found!"
152
+ exit 1
154
153
fi
155
- kind load docker-image jaegertracing/all-in-one:latest
156
- kind load docker-image jaegertracing/example-hotrod:latest
157
154
158
155
bash ./examples/oci/deploy-all.sh local
159
156
kubectl wait --for=condition=available --timeout=180s deployment/jaeger-hotrod
You can’t perform that action at this time.
0 commit comments