Skip to content

Commit

Permalink
add registry
Browse files Browse the repository at this point in the history
  • Loading branch information
mackjmr committed Jul 3, 2024
1 parent bd936c0 commit 228038f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ staging-deploy:
MODE: daemonset
REPLICA_COUNT: 1
CLUSTER_ROLE: opentelemetry-collector
REGISTRY: $BUILD_SANDBOX_REGISTRY

#env:otel-gateway
staging-deploy-gateway:
!!merge <<: *staging-deploy
Expand All @@ -104,6 +106,8 @@ staging-deploy-gateway:
MODE: deployment
REPLICA_COUNT: 3
CLUSTER_ROLE: opentelemetry-collector-gateway
REGISTRY: $BUILD_SANDBOX_REGISTRY

#env:otel-ds-gateway
staging-deploy-ds-gateway:
!!merge <<: *staging-deploy
Expand All @@ -115,6 +119,7 @@ staging-deploy-ds-gateway:
MODE: deployment
REPLICA_COUNT: 3
CLUSTER_ROLE: opentelemetry-collector-ds-gateway
REGISTRY: $BUILD_SANDBOX_REGISTRY

# DEPLOY COLLECTOR PROD
.prod-deploy: &prod-deploy-demo-eks
Expand Down Expand Up @@ -145,4 +150,5 @@ prod-deploy:
NODE_GROUP:
MODE: daemonset
REPLICA_COUNT: 1
CLUSTER_ROLE: opentelemetry-collector
CLUSTER_ROLE: opentelemetry-collector
REGISTRY: $BUILD_DEMO_REGISTRY
6 changes: 4 additions & 2 deletions ci/scripts/ci-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ replicaCount=$REPLICA_COUNT
clusterRole=$CLUSTER_ROLE
clusterName=$CLUSTER_NAME
clusterArn=$CLUSTER_ARN
registry=$REGISTRY

install_collector() {
release_name="opentelemetry-collector"
Expand All @@ -25,8 +26,9 @@ install_collector() {
helm repo update open-telemetry

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 \
-f ./ci/values.yaml ${registry}\
--set-string image.repository= \
--set-string image.tag=otelcolcontrib-v$CI_COMMIT_SHORT_SHA \
--set clusterRole.name=${clusterRole} \
--set clusterRole.clusterRoleBinding.name=${clusterRole} \
--set-string image.repository=${clusterArn} \
Expand Down

0 comments on commit 228038f

Please sign in to comment.