Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions config/jobs/image-pushing/k8s-staging-service-apis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
postsubmits:
# this is the github repo we'll build from; this block needs to be repeated for each repo.
kubernetes-sigs/k8s-container-image-promoter:
- name: service-apis-postsubmit-push-to-staging
cluster: test-infra-trusted
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jobs that run in the trusted cluster need to be defined in the trusted file

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've followed the instructions from https://github.com/kubernetes/test-infra/blob/master/config/jobs/image-pushing/README.md

How do I add the job to the "trusted" file 😅 ?

annotations:
# this is the name of some testgrid dashboard to report to.
testgrid-dashboards: sig-network-service-apis
decorate: true
branches:
- ^master$
spec:
containers:
- image: gcr.io/k8s-testimages/image-builder:v20200107-6bdb17e
command:
- /run.sh
args:
# this is the project GCB will run in, which is the same as the GCR images are pushed to.
- --project=k8s-staging-service-apis
- --scratch-bucket=gs://k8s-staging-service-apis
- --env-passthrough=PULL_BASE_REF
- .
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /creds/service-account.json
volumeMounts:
- name: creds
mountPath: /creds
volumes:
- name: creds
secret:
secretName: deployer-service-account