Skip to content

Commit

Permalink
standardise
Browse files Browse the repository at this point in the history
  • Loading branch information
mackjmr committed Jul 2, 2024
1 parent 6a60b66 commit a2caaa1
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions ci/scripts/ci-deploy-staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,20 @@ install_collector() {
helm --debug repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts
helm repo update open-telemetry

# deploy collector via helm
helm --debug upgrade "${release_name}" -n "${namespace}" open-telemetry/opentelemetry-collector --install \
-f ./ci/values.yaml \
--set-string image.tag="otelcolcontrib-v$CI_COMMIT_SHORT_SHA" \
--set clusterRole.name="${clusterRole}" \
--set clusterRole.clusterRoleBinding.name="${clusterRole}" \
--set-string image.repository="601427279990.dkr.ecr.us-east-1.amazonaws.com/otel-collector-contrib" \
--set nodeSelector.alpha\\.eksctl\\.io/nodegroup-name="${nodegroup}" \
--set mode="${mode}" \
--set replicaCount="${replicaCount}" \
helm_cmd="helm --debug upgrade ${release_name} -n ${namespace} open-telemetry/opentelemetry-collector --install \
-f ./ci/values.yaml \
--set-string image.tag=otelcolcontrib-v$CI_COMMIT_SHORT_SHA \
--set clusterRole.name=${clusterRole} \
--set clusterRole.clusterRoleBinding.name=${clusterRole} \
--set-string image.repository=601427279990.dkr.ecr.us-east-1.amazonaws.com/otel-collector-contrib \
--set mode=${mode} \
--set replicaCount=${replicaCount}"

if [ -n "$nodegroup" ]; then
helm_cmd+=" --set nodeSelector.alpha\\.eksctl\\.io/nodegroup-name=${nodegroup}"
fi

eval $helm_cmd

# only deploy otlp col for otel-ds-gateway
if [ "$namespace" == "otel-ds-gateway" ]; then
Expand Down

0 comments on commit a2caaa1

Please sign in to comment.