Skip to content

Commit

Permalink
add dashboard for mirror-images postsubmit
Browse files Browse the repository at this point in the history
update mirror-images periodics job to postsubmits

update scripts/mirror-images/soure-images.yaml to currently used image
tags

update scripts/mirror-images/sync-upstream-images-with-ecr.sh to correct
aws region
  • Loading branch information
Priyankasaggu11929 committed Mar 31, 2022
1 parent a5fa295 commit 7dc50c9
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 48 deletions.
25 changes: 0 additions & 25 deletions config/jobs/mirror-images/periodics-mirror-images.yaml

This file was deleted.

24 changes: 24 additions & 0 deletions config/jobs/mirror-images/postsubmits-mirror-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
postsubmits:
rajaskakodkar/tanzu-test-infra:
- name: postsubmit-mirror-upstream-images-to-ecr
cluster: test-jobs
decorate: true
max_concurrency: 1
branches:
- ^main$
run_if_changed: '^scripts/mirror-images/source-images.yaml'
annotations:
testgrid-dashboards: mirror-upstream-images
testgrid-tab-name: mirror-upstream-images-postsubmits
labels:
preset-registry-credentials: "true"
preset-aws-credentials: "true"
spec:
containers:
- image: public.ecr.aws/t0q8k6g2/vagator/test-image:v20222903-be6db42
command:
- /usr/local/bin/run.sh
args:
- rajaskakodkar
- tanzu-test-infra
- chmod +x ./scripts/mirror-images/sync-upstream-images-with-ecr.sh && ./scripts/mirror-images/sync-upstream-images-with-ecr.sh
7 changes: 7 additions & 0 deletions config/testgrid/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ dashboard_groups:
dashboard_names:
- test-prow
- build-images
- mirror-upstream-images

dashboards:
- name: test-prow
Expand All @@ -17,6 +18,10 @@ dashboards:
test_group_name: periodic-building-test-images-group
- name: image-builder
test_group_name: push-image-builder
- name: mirror-upstream-images
dashboard_tab:
- name: mirror-upstream-images-postsubmits
test_group_name: mirror-upstream-images-group

test_groups:
- name: test-prow-group
Expand All @@ -27,4 +32,6 @@ test_groups:
gcs_prefix: vagator-prow/logs/periodic-build-test-image
- name: push-image-builder
gcs_prefix: vagator-prow/logs/push-image-builder
- name: mirror-upstream-images-group
gcs_prefix: vagator-prow/logs/mirror-upstream-images-postsubmits

60 changes: 40 additions & 20 deletions scripts/mirror-images/source-images.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,46 @@
gcr.io:
images:
k8s-prow/hook: []
k8s-prow/sinker: []
k8s-prow/deck: []
k8s-prow/horologium: []
k8s-prow/status-reconciler: []
k8s-prow/ghproxy: []
k8s-prow/prow-controller-manager: []
k8s-prow/crier: []
k8s-prow/checkconfig: []
k8s-prow/clonerefs: []
k8s-prow/initupload: []
k8s-prow/entrypoint: []
k8s-prow/sidecar: []
k8s-staging-boskos/boskos: []
k8s-staging-boskos/aws-janitor-boskos: []
k8s-staging-boskos/cleaner: []
k8s-staging-boskos/reaper: []
k8s-testgrid/summarizer: []
k8s-testgrid/updater: []
k8s-prow/hook:
- v20211203-281e29a97a
k8s-prow/sinker:
- v20211203-281e29a97a
k8s-prow/deck:
- v20211203-281e29a97a
k8s-prow/horologium:
- v20211203-281e29a97a
k8s-prow/status-reconciler:
- v20211203-281e29a97a
k8s-prow/ghproxy:
- v20211203-281e29a97a
k8s-prow/prow-controller-manager:
- v20211203-281e29a97a
k8s-prow/crier:
- v20211203-281e29a97a
k8s-prow/checkconfig:
- v20211216-b5865074c4
k8s-prow/clonerefs:
- v20211203-281e29a97a
k8s-prow/initupload:
- v20211203-281e29a97a
k8s-prow/entrypoint:
- v20211203-281e29a97a
k8s-prow/sidecar:
- v20211203-281e29a97a
k8s-staging-boskos/boskos:
- v20211118-344faec
k8s-staging-boskos/aws-janitor-boskos:
- v20211118-344faec
k8s-staging-boskos/cleaner:
- v20211015-2401f5c
k8s-staging-boskos/reaper:
- v20211118-344faec
k8s-testgrid/summarizer:
- v20220112-v0.0.116-4-g8bf7236
k8s-testgrid/updater:
- v20220112-v0.0.116-4-g8bf7236

ghcr.io:
images:
external-secrets/kubernetes-external-secrets: []
external-secrets/kubernetes-external-secrets:
- 6.4.0

5 changes: 2 additions & 3 deletions scripts/mirror-images/sync-upstream-images-with-ecr.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#!/bin/sh

AWS_REGION="us-east-2"
AWS_REGION="us-east-1"
ECR_REGISTRY_TOKEN="t0q8k6g2"

ARTIFACTS="${ARTIFACTS:-${PWD}/_artifacts}"
mkdir -p "$ARTIFACTS/logs/"

# list of image repositories to sync in internal ecr
declare -a images=(
"another-test"
"hook"
"sinker"
"deck"
Expand Down Expand Up @@ -46,6 +45,6 @@ done

# Sync the upstream/third-party image tags with internal ecr images

echo "[INFO] Starting syncing images to ECR..."
echo "[INFO] Starting image sync to ECR ..."
printf '~%.0s' {1..80}; echo
skopeo sync --src yaml source-images.yaml --dest docker public.ecr.aws/${ECR_REGISTRY_TOKEN}/ --keep-going

0 comments on commit 7dc50c9

Please sign in to comment.