@@ -133,10 +133,22 @@ if [[ "${runtime}" == "k8s" ]]; then
133
133
134
134
echo ' ::group:: run on Kubernetes'
135
135
echo ' ::group:: Loading images into Kind cluster'
136
- docker pull localhost:5000/jaegertracing/all-in-one:${GITHUB_SHA}
136
+
137
+ # Check available Kind clusters
138
+ echo " Available Kind clusters:"
139
+ kind get clusters || echo " No clusters found"
140
+
141
+ if [[ " $jaeger_version " == " v1" ]]; then
142
+ JAEGER_IMAGE_NAME=" jaegertracing/all-in-one"
143
+ else
144
+ JAEGER_IMAGE_NAME=" jaegertracing/jaeger"
145
+ fi
146
+
147
+ docker pull localhost:5000/${JAEGER_IMAGE_NAME} :${GITHUB_SHA}
137
148
docker pull localhost:5000/jaegertracing/example-hotrod:${GITHUB_SHA}
138
- docker tag localhost:5000/jaegertracing/all-in-one :${GITHUB_SHA} jaegertracing/all-in-one :latest
149
+ docker tag localhost:5000/${JAEGER_IMAGE_NAME} :${GITHUB_SHA} ${JAEGER_IMAGE_NAME} :latest
139
150
docker tag localhost:5000/jaegertracing/example-hotrod:${GITHUB_SHA} jaegertracing/example-hotrod:latest
151
+
140
152
# Check available Kind clusters
141
153
echo " Available Kind clusters:"
142
154
kind get clusters || echo " No clusters found"
@@ -145,7 +157,7 @@ if [[ "${runtime}" == "k8s" ]]; then
145
157
CLUSTER_NAME=$( kind get clusters | head -n1)
146
158
if [[ -n " $CLUSTER_NAME " ]]; then
147
159
echo " Loading images into '$CLUSTER_NAME ' cluster..."
148
- kind load docker-image jaegertracing/all-in-one :latest --name " $CLUSTER_NAME "
160
+ kind load docker-image ${JAEGER_IMAGE_NAME} :latest --name " $CLUSTER_NAME "
149
161
kind load docker-image jaegertracing/example-hotrod:latest --name " $CLUSTER_NAME "
150
162
else
151
163
echo " No Kind clusters found!"
0 commit comments