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

Add 1.23 presubmits #575

Merged
merged 2 commits into from
Dec 5, 2023
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
100 changes: 100 additions & 0 deletions jobs/aws/eks-distro/kubernetes-1-23-presubmits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################
# IMPORTANT: This Prowjob was generated by running `make prowjobs -C templater`.
# DO NOT EDIT THIS FILE BY HAND! Refer to docs/prowjobs.md for instructions on
# how to add a new Prowjob or update an existing Prowjob.
################################################################################

presubmits:
aws/eks-distro:
- name: kubernetes-1-23-presubmit
always_run: false
run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|EKS_DISTRO_MINIMAL_BASE_IPTABLES_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes/kubernetes/(build|docker|Makefile|1-23)"
max_concurrency: 10
cluster: "prow-presubmits-cluster"
skip_report: false
decoration_config:
gcs_configuration:
bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp
path_strategy: explicit
s3_credentials_secret: s3-credentials
labels:
image-build: "true"
local-registry: "true"
disk-usage: "true"
spec:
serviceaccountName: presubmits-build-account
automountServiceAccountToken: false
containers:
- name: build-container
image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-d7e2e97ffdb76507c54160927bfe5f711f3e2642.2
command:
- bash
- -c
- >
trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT
&&
build/lib/buildkit_check.sh
&&
build/lib/local_registry_check.sh
&&
make build clean-go-cache clean -C $RELEASE_PROJECT_PATH IMAGE_OUTPUT_TYPE=image IMAGE_OUTPUT=push=true
&&
make build -C $PROJECT_PATH
&&
mv ./projects/kubernetes/kubernetes/_output/${RELEASE_BRANCH}/* /logs/artifacts
&&
make clean-go-cache clean -C $PROJECT_PATH
env:
- name: PROJECT_PATH
value: "projects/kubernetes/kubernetes"
- name: RELEASE_PROJECT_PATH
value: "projects/kubernetes/release"
- name: RELEASE_BRANCH
value: "1-23"
- name: IMAGE_REPO
value: "localhost:5000"
resources:
requests:
memory: "32Gi"
cpu: "16"
- name: buildkitd
image: moby/buildkit:v0.12.3-rootless
command:
- sh
args:
- /script/entrypoint.sh
securityContext:
runAsUser: 1000
runAsGroup: 1000
- name: registry
image: public.ecr.aws/docker/library/registry:2
command:
- sh
args:
- /registry-script/entrypoint.sh
readinessProbe:
httpGet:
path: /
port: 5000
initialDelaySeconds: 5
periodSeconds: 3
- command:
- sh
args:
- /disk-usage-script/entrypoint.sh
image: public.ecr.aws/amazonlinux/amazonlinux:2
name: disk-monitor
63 changes: 63 additions & 0 deletions jobs/aws/eks-distro/kubernetes-1-23-test-presubmits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################
# IMPORTANT: This Prowjob was generated by running `make prowjobs -C templater`.
# DO NOT EDIT THIS FILE BY HAND! Refer to docs/prowjobs.md for instructions on
# how to add a new Prowjob or update an existing Prowjob.
################################################################################

presubmits:
aws/eks-distro:
- name: kubernetes-1-23-test-presubmit
always_run: false
run_if_changed: "projects/kubernetes/kubernetes/1-23/(GIT_TAG|patches)"
max_concurrency: 10
cluster: "prow-presubmits-cluster"
skip_report: false
decoration_config:
gcs_configuration:
bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp
path_strategy: explicit
s3_credentials_secret: s3-credentials
labels:
disk-usage: "true"
spec:
serviceaccountName: presubmits-build-account
automountServiceAccountToken: false
containers:
- name: build-container
image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-d7e2e97ffdb76507c54160927bfe5f711f3e2642.2
command:
- bash
- -c
- >
trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT
&&
make test -C $PROJECT_PATH
env:
- name: PROJECT_PATH
value: "projects/kubernetes/kubernetes"
- name: RELEASE_BRANCH
value: "1-23"
resources:
requests:
memory: "32Gi"
cpu: "16"
- command:
- sh
args:
- /disk-usage-script/entrypoint.sh
image: public.ecr.aws/amazonlinux/amazonlinux:2
name: disk-monitor