Skip to content

Commit

Permalink
Refine kubeadm CI frequency (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
efiacor authored Dec 6, 2024
1 parent b1d8d2b commit 876b395
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .prow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ presubmits:
- name: e2e-kubeadm-ubuntu-jammy
annotations:
labels:
run_if_changed: '^e2e/'
run_if_changed: '^e2e/provision/playbooks/roles/kubeadm'
skip_report: false
optional: true
decorate: true
Expand Down Expand Up @@ -335,7 +335,7 @@ presubmits:
- name: e2e-kubeadm-fedora-38
annotations:
labels:
run_if_changed: '^e2e/'
run_if_changed: '^e2e/provision/playbooks/roles/kubeadm'
skip_report: false
optional: true
decorate: true
Expand Down
96 changes: 95 additions & 1 deletion prow/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1907,7 +1907,7 @@ periodics:
path: id_rsa
- key: id_rsa.pub
path: id_rsa.pub
- name: e2e-daily-oai-fedora-34
- name: e2e-daily-fedora-34-oai
annotations:
labels:
cron: "0 15 * * 1-6"
Expand Down Expand Up @@ -1954,3 +1954,97 @@ periodics:
path: id_rsa
- key: id_rsa.pub
path: id_rsa.pub
- name: e2e-daily-ubuntu-jammy-kubeadm
annotations:
labels:
cron: "0 15 * * 1-6"
skip_report: false
decorate: true
cluster: default
extra_refs:
- org: nephio-project
repo: test-infra
base_ref: main
path_alias: nephio_repo/test-infra
spec:
containers:
- image: "nephio/e2e:latest"
command:
- "/bin/sh"
args:
- "-c"
- |
set -eE; cd "$(git rev-parse --show-toplevel)/e2e/terraform"; trap 'terraform destroy -target module.gcp-ubuntu-jammy -auto-approve' EXIT;
terraform init && timeout 120m terraform apply -target module.gcp-ubuntu-jammy -var="fail_fast=true" -var="mgmt_cluster_type=kubeadm" -auto-approve
volumeMounts:
- name: satoken
mountPath: "/etc/satoken"
- name: ssh-key-vol
mountPath: "/etc/ssh-key"
resources:
requests:
cpu: 2
memory: 2Gi
volumes:
- name: satoken
secret:
secretName: satoken
items:
- key: satoken
path: satoken
- name: ssh-key-vol
secret:
secretName: ssh-key-e2e
defaultMode: 256
items:
- key: id_rsa
path: id_rsa
- key: id_rsa.pub
path: id_rsa.pub
- name: e2e-daily-fedora-38-kubeadm
annotations:
labels:
cron: "0 15 * * 1-6"
skip_report: false
decorate: true
cluster: default
extra_refs:
- org: nephio-project
repo: test-infra
base_ref: main
path_alias: nephio_repo/test-infra
spec:
containers:
- image: "nephio/e2e:latest"
command:
- "/bin/sh"
args:
- "-c"
- |
set -eE; cd "$(git rev-parse --show-toplevel)/e2e/terraform"; trap 'terraform destroy -target module.gcp-fedora-38 -auto-approve' EXIT;
terraform init && timeout 120m terraform apply -target module.gcp-fedora-38 -var="fail_fast=true" -var="mgmt_cluster_type=kubeadm" -auto-approve
volumeMounts:
- name: satoken
mountPath: "/etc/satoken"
- name: ssh-key-vol
mountPath: "/etc/ssh-key"
resources:
requests:
cpu: 2
memory: 2Gi
volumes:
- name: satoken
secret:
secretName: satoken
items:
- key: satoken
path: satoken
- name: ssh-key-vol
secret:
secretName: ssh-key-e2e
defaultMode: 256
items:
- key: id_rsa
path: id_rsa
- key: id_rsa.pub
path: id_rsa.pub

0 comments on commit 876b395

Please sign in to comment.