From 7057fa422b9752ddb419980ea05fdd7af06c24f8 Mon Sep 17 00:00:00 2001 From: Danny Sauer Date: Thu, 21 Mar 2024 18:41:12 -0500 Subject: [PATCH] ci: tag CI-deployed resources Add the owner and gh_team tags the new tagging policy requires Also add the long_running tag to the long-running instances --- .circleci/real_config.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.circleci/real_config.yml b/.circleci/real_config.yml index a0771b2644b..a788393430b 100644 --- a/.circleci/real_config.yml +++ b/.circleci/real_config.yml @@ -686,6 +686,8 @@ commands: echo "-----END ARGS-----" MAX_RETRIES=6 DET_DEBUG=1 tools/scripts/retry.sh det deploy aws up \ $(< /tmp/det-deploy-extra-args) \ + --add-tag owner=determined_ci \ + --add-tag gh_team=machine-users \ --cluster-id <> \ --det-version <> \ --aux-agent-instance-type <> \ @@ -839,7 +841,7 @@ commands: - set-cluster-id: cluster-id: <> - set-cluster-labels: - labels: <> + labels: owner=determined_ci,gh_team=machine-users,<> - gcloud/install: version: "412.0.0" - kubernetes/install-kubectl @@ -2324,6 +2326,8 @@ jobs: reattach-enabled: type: boolean default: false + extra-tags: + type: string docker: - image: <> steps: @@ -2347,6 +2351,7 @@ jobs: enable-cors: <> reattach-enabled: <> deployment-type: simple + extra-tags: <> - slack/status: fail_only: true failure_message: ':thisisfine: A \`${CIRCLE_JOB}\` job on branch \`${CIRCLE_BRANCH}\` has failed! Author Email: \`${AUTHOR_EMAIL}\`' @@ -2968,9 +2973,10 @@ workflows: - main - deploy: - name: deploy-latest-master-cluster + name: deploy-latest-main-cluster enable-cors: true reattach-enabled: true + extra-tags: "long_running=determined_preview_cluster" context: - aws - aws-ci-cluster-default-user-credentials