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

Set resource limits and enable FORCE_HOST_GO flag for k8s build jobs #390

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
12 changes: 12 additions & 0 deletions config/jobs/ppc64le-cloud/builds/kubernetes-postsubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ postsubmits:
spec:
containers:
- image: quay.io/powercloud/all-in-one:0.5
resources:
requests:
cpu: "3000m"
limits:
cpu: "3000m"
command:
- /bin/bash
args:
Expand All @@ -30,6 +35,7 @@ postsubmits:
rm -rf /usr/local/go
tar -C /usr/local -xzf /tmp/golang.tar.gz
export PATH=/usr/local/go/bin:$PATH
export FORCE_HOST_GO=y
KUBE_BUILD_PLATFORMS=linux/ppc64le make cross

GITCOMMIT=$(git rev-parse --short HEAD)
Expand Down Expand Up @@ -58,6 +64,11 @@ postsubmits:
spec:
containers:
- image: quay.io/powercloud/all-in-one:0.5
resources:
requests:
cpu: "3000m"
limits:
cpu: "3000m"
command:
- /bin/bash
args:
Expand Down Expand Up @@ -87,6 +98,7 @@ postsubmits:
GO111MODULE=on go install gotest.tools/gotestsum
popd

export FORCE_HOST_GO=y
make test
- name: postsubmit-master-golang-kubernetes-conformance-test-ppc64le
cluster: k8s-ppc64le-cluster
Expand Down
6 changes: 6 additions & 0 deletions config/jobs/ppc64le-cloud/builds/openshift-postsubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ postsubmits:
spec:
containers:
- image: quay.io/powercloud/all-in-one:0.5
resources:
requests:
cpu: "3000m"
limits:
cpu: "3000m"
command:
- /bin/bash
args:
Expand All @@ -30,6 +35,7 @@ postsubmits:
rm -rf /usr/local/go
tar -C /usr/local -xzf /tmp/golang.tar.gz
export PATH=/usr/local/go/bin:$PATH
export FORCE_HOST_GO=y
KUBE_BUILD_PLATFORMS=linux/ppc64le make cross
for server in kubectl kube-apiserver kube-controller-manager kube-scheduler kubelet kube-proxy kubeadm
do
Expand Down