Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mackjmr committed Jul 3, 2024
1 parent 3a5e1f2 commit 5289b40
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 40 deletions.
10 changes: 4 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ variables:
DEMO_CLUSTER_NAME: prod-eks-otel-a-us-east-1
SANDBOX_CLUSTER_ARN: "arn:aws:eks:us-east-1:601427279990:cluster/dd-otel"
DEMO_CLUSTER_ARN: "arn:aws:eks:us-east-1:172597598159:cluster/prod-eks-otel-a-us-east-1"
DEPLOY_SCRIPT: "./ci/scripts/ci-deploy.sh"


# BUILD STAGES
stages:
Expand Down Expand Up @@ -79,14 +81,13 @@ push-collector-image-staging:
TEMP_AWS_SECRET_ACCESS_KEY=$(aws ssm get-parameter --region us-east-1 --name ci.opentelemetry-collector-contrib.sand-eks-deploy-access-key --with-decryption --query Parameter.Value --out text)
- export AWS_ACCESS_KEY_ID=$TEMP_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$TEMP_AWS_SECRET_ACCESS_KEY
- bash $SCRIPT
- bash $DEPLOY_SCRIPT
#env:otel-staging
staging-deploy:
!!merge <<: *staging-deploy
variables:
CLUSTER_NAME: $SANDBOX_CLUSTER_NAME
CLUSTER_ARN: $SANDBOX_CLUSTER_ARN
SCRIPT: ./ci/scripts/ci-deploy-staging.sh
NAMESPACE: otel-staging
NODE_GROUP: ng-3
MODE: daemonset
Expand All @@ -98,7 +99,6 @@ staging-deploy-gateway:
variables:
CLUSTER_NAME: $SANDBOX_CLUSTER_NAME
CLUSTER_ARN: $SANDBOX_CLUSTER_ARN
SCRIPT: ./ci/scripts/ci-deploy-staging.sh
NAMESPACE: otel-gateway
NODE_GROUP: ng-5
MODE: deployment
Expand All @@ -110,7 +110,6 @@ staging-deploy-ds-gateway:
variables:
CLUSTER_NAME: $SANDBOX_CLUSTER_NAME
CLUSTER_ARN: $SANDBOX_CLUSTER_ARN
SCRIPT: ./ci/scripts/ci-deploy-staging.sh
NAMESPACE: otel-ds-gateway
NODE_GROUP: ng-6
MODE: deployment
Expand All @@ -135,14 +134,13 @@ staging-deploy-ds-gateway:
TEMP_AWS_SECRET_ACCESS_KEY=$(aws ssm get-parameter --region us-east-1 --name ci.opentelemetry-collector-contrib.eks_secret_access_key --with-decryption --query Parameter.Value --out text)
- export AWS_ACCESS_KEY_ID=$TEMP_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$TEMP_AWS_SECRET_ACCESS_KEY
- bash $SCRIPT
- bash $DEPLOY_SCRIPT
#env:otel
prod-deploy:
!!merge <<: *prod-deploy-demo-eks
variables:
CLUSTER_NAME: $DEMO_CLUSTER_NAME
CLUSTER_ARN: $DEMO_CLUSTER_ARN
SCRIPT: ./ci/scripts/ci-deploy-staging.sh
NAMESPACE: otel
NODE_GROUP:
MODE: daemonset
Expand Down
33 changes: 0 additions & 33 deletions ci/scripts/ci-deploy-demo.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ install_collector() {
--set replicaCount=${replicaCount}"

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

eval $helm_cmd
Expand Down

0 comments on commit 5289b40

Please sign in to comment.