Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

releng: Enable building kubepkg image and fix commands for deb/rpm jobs #15871

Merged
merged 1 commit into from
Jan 13, 2020
Merged
Show file tree
Hide file tree
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
37 changes: 3 additions & 34 deletions config/jobs/image-pushing/k8s-staging-release-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,12 @@ postsubmits:
- name: creds
secret:
secretName: deployer-service-account
- name: post-release-push-image-deb-builder
- name: post-release-push-image-kubepkg
cluster: test-infra-trusted
annotations:
testgrid-dashboards: sig-release-image-pushes, sig-release-master-informing
testgrid-alert-email: release-managers@kubernetes.io
decorate: true
run_if_changed: '^build\/'
branches:
- ^master$
spec:
Expand All @@ -161,38 +160,8 @@ postsubmits:
- --project=k8s-staging-release-test
- --scratch-bucket=gs://k8s-staging-release-test-gcb
- --env-passthrough=PULL_BASE_REF
- build/debs
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /creds/service-account.json
- name: LOG_TO_STDOUT
value: "y"
volumeMounts:
- name: creds
mountPath: /creds
volumes:
- name: creds
secret:
secretName: deployer-service-account
- name: post-release-push-image-rpm-builder
cluster: test-infra-trusted
annotations:
testgrid-dashboards: sig-release-image-pushes, sig-release-master-informing
testgrid-alert-email: release-managers@kubernetes.io
decorate: true
run_if_changed: '^build\/'
branches:
- ^master$
spec:
containers:
- image: gcr.io/k8s-testimages/image-builder:v20200107-6bdb17e
command:
- /run.sh
args:
- --project=k8s-staging-release-test
- --scratch-bucket=gs://k8s-staging-release-test-gcb
- --env-passthrough=PULL_BASE_REF
- build/rpms
- --gcb-config=./cloudbuild-kubepkg.yaml
- .
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /creds/service-account.json
Expand Down
16 changes: 7 additions & 9 deletions config/jobs/kubernetes/sig-release/kubernetes-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,12 @@ periodics:
decorate: true
spec:
containers:
- image: gcr.io/k8s-staging-release-test/deb-builder:latest
- image: gcr.io/k8s-staging-release-test/kubepkg:latest
imagePullPolicy: Always
command:
- ./debs
- ./kubepkg
args:
# We explicitly don't build the cri-tools package as the tooling will attempt to
# fetch a release version of cri-tools from GitHub before it exists.
#
# ref: https://github.com/kubernetes/kubernetes/issues/84548
- -packages=kubelet,kubectl,kubeadm,kubernetes-cni
- debs
resources:
requests:
cpu: 4
Expand All @@ -123,10 +119,12 @@ periodics:
decorate: true
spec:
containers:
- image: gcr.io/k8s-staging-release-test/rpm-builder:latest
- image: gcr.io/k8s-staging-release-test/kubepkg-rpm:latest
imagePullPolicy: Always
command:
- ./build.sh
- ./kubepkg
args:
- rpms
resources:
requests:
cpu: 4
Expand Down