Skip to content

Commit

Permalink
jobs: use k8s-infra image for wg-k8s-infra jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
spiffxp committed Jun 7, 2021
1 parent 2223218 commit fa35473
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 27 deletions.
22 changes: 12 additions & 10 deletions config/jobs/kubernetes/wg-k8s-infra/k8sio-presubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ presubmits:
- ^main$
spec:
containers:
- image: golang:1.13
- image: gcr.io/k8s-staging-infra-tools/k8s-infra:latest
command:
- bash
- make
args:
- -c
- "cd groups && go test"
- -C
- ./groups
- test
env:
- name: GO111MODULE
value: "on"
Expand All @@ -37,9 +38,10 @@ presubmits:
- ^main$
spec:
containers:
- image: gcr.io/k8s-testimages/gcb-docker-gcloud:v20210331-c732583
- image: gcr.io/k8s-staging-infra-tools/k8s-infra:latest
command:
- hack/verify-terraform.sh
args:
- infra/gcp/clusters/projects/kubernetes-public/aaa
resources:
limits:
Expand All @@ -65,9 +67,10 @@ presubmits:
- ^main$
spec:
containers:
- image: gcr.io/k8s-testimages/gcb-docker-gcloud:v20210331-c732583
- image: gcr.io/k8s-staging-infra-tools/k8s-infra:latest
command:
- hack/verify-terraform.sh
args:
- infra/gcp/clusters/projects/k8s-infra-prow-build/prow-build
resources:
limits:
Expand All @@ -93,9 +96,10 @@ presubmits:
- ^main$
spec:
containers:
- image: gcr.io/k8s-testimages/gcb-docker-gcloud:v20210331-c732583
- image: gcr.io/k8s-staging-infra-tools/k8s-infra:latest
command:
- hack/verify-terraform.sh
args:
- infra/gcp/clusters/projects/k8s-infra-prow-build-trusted/prow-build-trusted
resources:
limits:
Expand All @@ -112,8 +116,6 @@ presubmits:
decorate: true
spec:
containers:
- image: gcr.io/k8s-testimages/kubekins-e2e:v20210601-ea6aa4e-master
- image: gcr.io/k8s-staging-infra-tools/k8s-infra:latest
command:
- runner.sh
args:
- ./hack/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ periodics:
spec:
serviceAccountName: gsuite-groups-manager
containers:
- image: golang:1.13
- image: gcr.io/k8s-staging-infra-tools/k8s-infra:latest
command:
- bash
- make
args:
- -c
- "cd groups && make run -- --confirm"
- -C
- groups
- run
- --
- --confirm
- name: ci-k8sio-audit
interval: 6h
cluster: k8s-infra-prow-build-trusted
Expand All @@ -46,7 +49,7 @@ periodics:
spec:
serviceAccountName: k8s-infra-gcp-auditor
containers:
- image: gcr.io/k8s-staging-releng/releng-ci:latest-go1.16
- image: gcr.io/k8s-staging-infra-tools/k8s-infra:latest
imagePullPolicy: Always
command:
- ./audit/create-or-update-audit-pr.sh
Expand Down Expand Up @@ -82,12 +85,15 @@ postsubmits:
spec:
serviceAccountName: gsuite-groups-manager
containers:
- image: golang:1.13
- image: gcr.io/k8s-staging-infra-tools/k8s-infra:latest
command:
- bash
- make
args:
- -c
- "cd groups && make run -- --confirm"
- -C
- groups
- run
- --
- --confirm
- name: post-k8sio-dns-update
cluster: k8s-infra-prow-build-trusted
decorate: true
Expand Down Expand Up @@ -134,7 +140,7 @@ postsubmits:
spec:
serviceAccountName: prow-deployer
containers:
- image: gcr.io/k8s-testimages/gcloud-in-go:v20200824-5d057db
- image: gcr.io/k8s-staging-infra-tools/k8s-infra:latest
command:
- bash
args:
Expand All @@ -144,9 +150,16 @@ postsubmits:
if [[ -x ./deploy.sh ]]; then
./deploy.sh
else
gcloud container clusters get-credentials prow-build --project=k8s-infra-prow-build --region=us-central1
kubectl --context=gke_k8s-infra-prow-build_us-central1_prow-build \
apply -f ./prow-build/resources --recursive
gcloud \
container clusters get-credentials \
--project=k8s-infra-prow-build \
--region=us-central1 \
prow-build
kubectl \
--context=gke_k8s-infra-prow-build_us-central1_prow-build \
apply \
-f ./prow-build/resources \
--recursive
fi
- name: post-k8sio-deploy-prow-build-trusted-resources
cluster: k8s-infra-prow-build-trusted
Expand All @@ -169,7 +182,7 @@ postsubmits:
spec:
serviceAccountName: prow-deployer
containers:
- image: gcr.io/k8s-testimages/gcloud-in-go:v20200824-5d057db
- image: gcr.io/k8s-staging-infra-tools/k8s-infra:latest
command:
- bash
args:
Expand All @@ -179,7 +192,14 @@ postsubmits:
if [[ -x ./deploy.sh ]]; then
./deploy.sh
else
gcloud container clusters get-credentials prow-build-trusted --project=k8s-infra-prow-build-trusted --region=us-central1
kubectl --context=gke_k8s-infra-prow-build-trusted_us-central1_prow-build-trusted \
apply -f ./prow-build-trusted/resources --recursive
gcloud \
container clusters get-credentials \
--project=k8s-infra-prow-build-trusted \
--region=us-central1 \
prow-build-trusted
kubectl \
--context=gke_k8s-infra-prow-build-trusted_us-central1_prow-build-trusted \
apply \
-f ./prow-build-trusted/resources \
--recursive
fi

0 comments on commit fa35473

Please sign in to comment.