Skip to content

Commit

Permalink
Fix tempo (#7358)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrfox committed May 15, 2024
1 parent df1ae0f commit 49b1567
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion hack/istio/install-istio-via-istioctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,12 @@ if [ "${NETWORK}" != "" ]; then
NETWORK_OPTION="--set values.global.network=${NETWORK}"
fi

ZIPKIN_SERVICE_OPTION="--set values.meshConfig.extensionProviders[0].zipkin.service=zipkin.${NAMESPACE}.svc.cluster.local"
if [[ "${CUSTOM_INSTALL_SETTINGS}" == *"values.meshConfig.extensionProviders[0].zipkin.service"* ]]; then
echo "Custom settings are set: ${CUSTOM_INSTALL_SETTINGS}"
ZIPKIN_SERVICE_OPTION=""
fi

for s in \
"${IMAGE_HUB_OPTION}" \
"${IMAGE_TAG_OPTION}" \
Expand All @@ -484,7 +490,7 @@ for s in \
"--set values.gateways.istio-ingressgateway.enabled=${ISTIO_INGRESSGATEWAY_ENABLED}" \
"--set values.meshConfig.enableTracing=true" \
"--set values.meshConfig.extensionProviders[0].name=zipkin" \
"--set values.meshConfig.extensionProviders[0].zipkin.service=zipkin.${NAMESPACE}.svc.cluster.local" \
"${ZIPKIN_SERVICE_OPTION}" \
"--set values.meshConfig.extensionProviders[0].zipkin.port=9411" \
"--set values.meshConfig.accessLogFile=/dev/stdout" \
"${CNI_OPTIONS}" \
Expand Down
2 changes: 1 addition & 1 deletion hack/setup-kind-in-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ setup_kind_tempo() {
local hub_arg="--image-hub default"
fi

"${SCRIPT_DIR}"/istio/install-istio-via-istioctl.sh --reduce-resources true --client-exe-path "$(which kubectl)" -cn "cluster-default" -mid "mesh-default" -net "network-default" -gae "true" ${hub_arg:-} -a "prometheus grafana" -s values.meshConfig.defaultConfig.tracing.zipkin.address="tempo-cr-distributor.tempo:9411"
"${SCRIPT_DIR}"/istio/install-istio-via-istioctl.sh --reduce-resources true --client-exe-path "$(which kubectl)" -cn "cluster-default" -mid "mesh-default" -net "network-default" -gae "true" ${hub_arg:-} -a "prometheus grafana" -s values.meshConfig.extensionProviders[0].zipkin.service="tempo-cr-distributor.tempo.svc.cluster.local"

infomsg "Pushing the images into the cluster..."
make -e DORP="${DORP}" -e CLUSTER_TYPE="kind" -e KIND_NAME="ci" cluster-push-kiali
Expand Down

0 comments on commit 49b1567

Please sign in to comment.