From e40c394a096152132c4589ff8a6ebe4491b46255 Mon Sep 17 00:00:00 2001 From: Danny Rorabaugh Date: Fri, 18 Oct 2024 08:12:13 -0400 Subject: [PATCH] Update ecr repo cleanup --- .github/workflows/deploy_qa.yml | 4 ++-- docs/deploy/kubernetes_design/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy_qa.yml b/.github/workflows/deploy_qa.yml index c3aba569b5..fd62c81704 100644 --- a/.github/workflows/deploy_qa.yml +++ b/.github/workflows/deploy_qa.yml @@ -65,8 +65,8 @@ jobs: clean_ecr_repo: needs: build env: - RM_PATTERN_1: \d+\.\d+\.\d+-master\.\d+ - RM_PATTERN_2: \d+\.\d+\.\d+-[a-z]+\.\d+-master\.\d+ + RM_PATTERN_1: v1\.\d+\.\d+-.* + RM_PATTERN_2: v2\.0\.\d+-.* runs-on: ubuntu-latest steps: # See https://docs.stepsecurity.io/harden-runner/getting-started/ for instructions on diff --git a/docs/deploy/kubernetes_design/README.md b/docs/deploy/kubernetes_design/README.md index 2b47a6e635..3969fe6a6e 100644 --- a/docs/deploy/kubernetes_design/README.md +++ b/docs/deploy/kubernetes_design/README.md @@ -120,7 +120,7 @@ resources are installed or reconfigured, the following jobs are created: - `ecr-cred-helper` is a one-time Job that is run to create the `aws-ecr-credentials` Secret. The Secret type is `kubernetes.io/dockerconfigjson` and can be used by the deployments to pull the required images from AWS ECR. -- `ecr-cred-helper-cron` refreshes the `aws-logon-credentials` periodically. The current configuration refreshes them +- `ecr-cred-helper-cron` refreshes the `aws-ecr-credentials` periodically. The current configuration refreshes them every 8 hours. The reason that both a one-time Job and a CronJob is so that when the cluster is first created, the pull secrets are