Skip to content

Commit

Permalink
Adding a Kops test for eks-distro (#542)
Browse files Browse the repository at this point in the history
* first round of adding a kops test for eks-distro

* add kops script presumbit

* make kops-build-presubmits for each kops version

* add tests for new kops-prow-nobuild make targets

* update kops presubmits with new make target

* image build false

* remove unused env

* run templater

* update kops presubmits after merging upstream

* update to include make build

* fix template to run if changed
  • Loading branch information
rcrozean authored Oct 11, 2023
1 parent 8d529d1 commit ff11e45
Show file tree
Hide file tree
Showing 7 changed files with 426 additions and 0 deletions.
68 changes: 68 additions & 0 deletions jobs/aws/eks-distro/kops-build-1-23-presubmits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# 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: kops-build-1-23-presubmits
always_run: false
run_if_changed: "development/kops/.*"
max_concurrency: 10
cluster: "prow-presubmits-cluster"
skip_report: false
decoration_config:
timeout: 6h
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-8042657cbe43028869ba34e8f4366674765ec7b3.2
command:
- bash
- -c
- >
trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT
&&
make build kops
env:
- name: PROJECT_PATH
value: "development/kops"
- name: ARTIFACT_BUCKET
value: "eks-d-postsubmit-artifacts"
- name: RELEASE_BRANCH
value: "1-23"
- name: IMAGE_REPO
value: "public.ecr.aws/h1r8a7l5"
resources:
requests:
memory: "8Gi"
cpu: "2"
- command:
- sh
args:
- /disk-usage-script/entrypoint.sh
image: public.ecr.aws/amazonlinux/amazonlinux:2
name: disk-monitor
68 changes: 68 additions & 0 deletions jobs/aws/eks-distro/kops-build-1-24-presubmits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# 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: kops-build-1-24-presubmits
always_run: false
run_if_changed: "development/kops/.*"
max_concurrency: 10
cluster: "prow-presubmits-cluster"
skip_report: false
decoration_config:
timeout: 6h
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-8042657cbe43028869ba34e8f4366674765ec7b3.2
command:
- bash
- -c
- >
trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT
&&
make build kops
env:
- name: PROJECT_PATH
value: "development/kops"
- name: ARTIFACT_BUCKET
value: "eks-d-postsubmit-artifacts"
- name: RELEASE_BRANCH
value: "1-24"
- name: IMAGE_REPO
value: "public.ecr.aws/h1r8a7l5"
resources:
requests:
memory: "8Gi"
cpu: "2"
- command:
- sh
args:
- /disk-usage-script/entrypoint.sh
image: public.ecr.aws/amazonlinux/amazonlinux:2
name: disk-monitor
68 changes: 68 additions & 0 deletions jobs/aws/eks-distro/kops-build-1-25-presubmits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# 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: kops-build-1-25-presubmits
always_run: false
run_if_changed: "development/kops/.*"
max_concurrency: 10
cluster: "prow-presubmits-cluster"
skip_report: false
decoration_config:
timeout: 6h
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-8042657cbe43028869ba34e8f4366674765ec7b3.2
command:
- bash
- -c
- >
trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT
&&
make build kops
env:
- name: PROJECT_PATH
value: "development/kops"
- name: ARTIFACT_BUCKET
value: "eks-d-postsubmit-artifacts"
- name: RELEASE_BRANCH
value: "1-25"
- name: IMAGE_REPO
value: "public.ecr.aws/h1r8a7l5"
resources:
requests:
memory: "8Gi"
cpu: "2"
- command:
- sh
args:
- /disk-usage-script/entrypoint.sh
image: public.ecr.aws/amazonlinux/amazonlinux:2
name: disk-monitor
68 changes: 68 additions & 0 deletions jobs/aws/eks-distro/kops-build-1-26-presubmits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# 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: kops-build-1-26-presubmits
always_run: false
run_if_changed: "development/kops/.*"
max_concurrency: 10
cluster: "prow-presubmits-cluster"
skip_report: false
decoration_config:
timeout: 6h
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-8042657cbe43028869ba34e8f4366674765ec7b3.2
command:
- bash
- -c
- >
trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT
&&
make build kops
env:
- name: PROJECT_PATH
value: "development/kops"
- name: ARTIFACT_BUCKET
value: "eks-d-postsubmit-artifacts"
- name: RELEASE_BRANCH
value: "1-26"
- name: IMAGE_REPO
value: "public.ecr.aws/h1r8a7l5"
resources:
requests:
memory: "8Gi"
cpu: "2"
- command:
- sh
args:
- /disk-usage-script/entrypoint.sh
image: public.ecr.aws/amazonlinux/amazonlinux:2
name: disk-monitor
68 changes: 68 additions & 0 deletions jobs/aws/eks-distro/kops-build-1-27-presubmits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# 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: kops-build-1-27-presubmits
always_run: false
run_if_changed: "development/kops/.*"
max_concurrency: 10
cluster: "prow-presubmits-cluster"
skip_report: false
decoration_config:
timeout: 6h
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-8042657cbe43028869ba34e8f4366674765ec7b3.2
command:
- bash
- -c
- >
trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT
&&
make build kops
env:
- name: PROJECT_PATH
value: "development/kops"
- name: ARTIFACT_BUCKET
value: "eks-d-postsubmit-artifacts"
- name: RELEASE_BRANCH
value: "1-27"
- name: IMAGE_REPO
value: "public.ecr.aws/h1r8a7l5"
resources:
requests:
memory: "8Gi"
cpu: "2"
- command:
- sh
args:
- /disk-usage-script/entrypoint.sh
image: public.ecr.aws/amazonlinux/amazonlinux:2
name: disk-monitor
Loading

0 comments on commit ff11e45

Please sign in to comment.