Skip to content

Commit

Permalink
Merge pull request #390 from Rajalakshmi-Girish/resource-and-mastergo
Browse files Browse the repository at this point in the history
Set resource limits and enable FORCE_HOST_GO flag for k8s build jobs
  • Loading branch information
ppc64le-cloud-bot committed Jul 7, 2023
2 parents 87e51c2 + 5345dfb commit 947a262
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
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

0 comments on commit 947a262

Please sign in to comment.