-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19789 from justaugustus/cip-to-k8s-infra
releng(image-promoter): Add canary jobs for image promotion
- Loading branch information
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
67 changes: 67 additions & 0 deletions
67
config/jobs/kubernetes/wg-k8s-infra/trusted/releng/releng-trusted.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,71 @@ | ||
postsubmits: | ||
kubernetes/k8s.io: | ||
- name: post-k8sio-image-promo-canary | ||
cluster: k8s-infra-prow-build-trusted | ||
decorate: true | ||
run_if_changed: 'k8s.gcr.io/((images/.*/images\.yaml)|(manifests/.*/promoter-manifest\.yaml))' | ||
# Never run more than 1 job at a time. This is because we don't want to run | ||
# into a case where an older manifest PR merge gets run last (after a newer | ||
# one). | ||
max_concurrency: 1 | ||
branches: | ||
- ^master$ | ||
spec: | ||
serviceAccountName: k8s-infra-gcr-promoter | ||
containers: | ||
- image: us.gcr.io/k8s-artifacts-prod/artifact-promoter/cip:v2.4.1 | ||
command: | ||
- cip | ||
args: | ||
- -thin-manifest-dir=/home/prow/go/src/github.com/kubernetes/k8s.io/k8s.gcr.io | ||
# TODO(releng): Set -dry-run=false once we confirm there is nothing wrong | ||
# with service accounts and the jobs succeed. | ||
- -dry-run=true | ||
annotations: | ||
testgrid-dashboards: sig-release-releng-blocking, wg-k8s-infra-k8sio | ||
testgrid-alert-email: [email protected], [email protected] | ||
testgrid-num-failures-to-alert: '1' | ||
|
||
periodics: | ||
# TODO(releng): Adjust the interval back to 4 hours once we confirm that the | ||
# dry-runs complete without issue. | ||
# ci-k8sio-image-promo-canary runs every 2 hours, to make sure that the | ||
# destination GCRs do not deviate away from the intent of the manifest. | ||
- interval: 2h | ||
cluster: k8s-infra-prow-build-trusted | ||
max_concurrency: 1 | ||
# This name is the "job name", passed in as "--job=NAME" for mkpj. | ||
name: ci-k8sio-image-promo-canary | ||
# Enable Pod Utilities. | ||
# See https://git.k8s.io/test-infra/prow/pod-utilities.md. | ||
decorate: true | ||
extra_refs: | ||
# We clone the below repo automatically (via Pod Utilities), and get dropped | ||
# into /home/prow/go/src/github.com/kubernetes/k8s.io. | ||
- org: kubernetes | ||
repo: k8s.io | ||
base_ref: master | ||
spec: | ||
# The k8s-artifacts-prod name was chosen in | ||
# https://github.com/kubernetes/k8s.io/pull/695. | ||
serviceAccountName: k8s-infra-gcr-promoter | ||
containers: | ||
- image: us.gcr.io/k8s-artifacts-prod/artifact-promoter/cip:v2.4.1 | ||
command: | ||
- cip | ||
args: | ||
- -thin-manifest-dir=/home/prow/go/src/github.com/kubernetes/k8s.io/k8s.gcr.io | ||
# TODO(releng): Set -dry-run=false once we confirm there is nothing wrong | ||
# with service accounts and the jobs succeed. | ||
- -dry-run=true | ||
annotations: | ||
testgrid-dashboards: sig-release-releng-blocking, wg-k8s-infra-k8sio | ||
testgrid-alert-email: [email protected], [email protected] | ||
testgrid-num-failures-to-alert: '1' | ||
rerun_auth_config: | ||
github_team_ids: | ||
- 2241179 # release-managers | ||
|
||
- name: ci-release-vulndash-update | ||
interval: 2h | ||
cluster: k8s-infra-prow-build-trusted | ||
|