Skip to content

Commit

Permalink
Copy release branch unit and integration presubmits to -go-compatibil…
Browse files Browse the repository at this point in the history
…ity variants
  • Loading branch information
liggitt committed Feb 3, 2023
1 parent 72d0fa5 commit 95e1014
Show file tree
Hide file tree
Showing 6 changed files with 279 additions and 0 deletions.
54 changes: 54 additions & 0 deletions config/jobs/kubernetes/sig-release/release-branch-jobs/1.23.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,34 @@ presubmits:
memory: 15Gi
securityContext:
privileged: true
- always_run: true
branches:
- release-1.23
cluster: k8s-infra-prow-build
context: pull-kubernetes-integration-go-compatibility
decorate: true
labels:
preset-dind-enabled: "true"
preset-service-account: "true"
name: pull-kubernetes-integration-go-compatibility
path_alias: k8s.io/kubernetes
spec:
containers:
- args:
- ./hack/jenkins/test-dockerized.sh
command:
- runner.sh
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-1.23
name: ""
resources:
limits:
cpu: "6"
memory: 15Gi
requests:
cpu: "6"
memory: 15Gi
securityContext:
privileged: true
- always_run: true
branches:
- release-1.23
Expand Down Expand Up @@ -1748,6 +1776,32 @@ presubmits:
memory: 36Gi
securityContext:
runAsUser: 2000
- always_run: true
branches:
- release-1.23
cluster: k8s-infra-prow-build
context: pull-kubernetes-unit-go-compatibility
decorate: true
labels:
preset-service-account: "true"
name: pull-kubernetes-unit-go-compatibility
path_alias: k8s.io/kubernetes
spec:
containers:
- command:
- make
- test
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-1.23
name: ""
resources:
limits:
cpu: "4"
memory: 36Gi
requests:
cpu: "4"
memory: 36Gi
securityContext:
runAsUser: 2000
- always_run: true
branches:
- release-1.23
Expand Down
54 changes: 54 additions & 0 deletions config/jobs/kubernetes/sig-release/release-branch-jobs/1.24.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,34 @@ presubmits:
memory: 15Gi
securityContext:
privileged: true
- always_run: true
branches:
- release-1.24
cluster: k8s-infra-prow-build
context: pull-kubernetes-integration-go-compatibility
decorate: true
labels:
preset-dind-enabled: "true"
preset-service-account: "true"
name: pull-kubernetes-integration-go-compatibility
path_alias: k8s.io/kubernetes
spec:
containers:
- args:
- ./hack/jenkins/test-dockerized.sh
command:
- runner.sh
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-1.24
name: ""
resources:
limits:
cpu: "6"
memory: 15Gi
requests:
cpu: "6"
memory: 15Gi
securityContext:
privileged: true
- always_run: true
branches:
- release-1.24
Expand Down Expand Up @@ -1568,6 +1596,32 @@ presubmits:
memory: 36Gi
securityContext:
runAsUser: 2000
- always_run: true
branches:
- release-1.24
cluster: k8s-infra-prow-build
context: pull-kubernetes-unit-go-compatibility
decorate: true
labels:
preset-service-account: "true"
name: pull-kubernetes-unit-go-compatibility
path_alias: k8s.io/kubernetes
spec:
containers:
- command:
- make
- test
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-1.24
name: ""
resources:
limits:
cpu: "4"
memory: 36Gi
requests:
cpu: "4"
memory: 36Gi
securityContext:
runAsUser: 2000
- always_run: true
branches:
- release-1.24
Expand Down
54 changes: 54 additions & 0 deletions config/jobs/kubernetes/sig-release/release-branch-jobs/1.25.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,34 @@ presubmits:
memory: 15Gi
securityContext:
privileged: true
- always_run: true
branches:
- release-1.25
cluster: k8s-infra-prow-build
context: pull-kubernetes-integration-go-compatibility
decorate: true
labels:
preset-dind-enabled: "true"
preset-service-account: "true"
name: pull-kubernetes-integration-go-compatibility
path_alias: k8s.io/kubernetes
spec:
containers:
- args:
- ./hack/jenkins/test-dockerized.sh
command:
- runner.sh
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-1.25
name: ""
resources:
limits:
cpu: "6"
memory: 15Gi
requests:
cpu: "6"
memory: 15Gi
securityContext:
privileged: true
- always_run: true
branches:
- release-1.25
Expand Down Expand Up @@ -1578,6 +1606,32 @@ presubmits:
memory: 36Gi
securityContext:
runAsUser: 2000
- always_run: true
branches:
- release-1.25
cluster: k8s-infra-prow-build
context: pull-kubernetes-unit-go-compatibility
decorate: true
labels:
preset-service-account: "true"
name: pull-kubernetes-unit-go-compatibility
path_alias: k8s.io/kubernetes
spec:
containers:
- command:
- make
- test
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-1.25
name: ""
resources:
limits:
cpu: "4"
memory: 36Gi
requests:
cpu: "4"
memory: 36Gi
securityContext:
runAsUser: 2000
- always_run: true
branches:
- release-1.25
Expand Down
52 changes: 52 additions & 0 deletions config/jobs/kubernetes/sig-release/release-branch-jobs/1.26.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1458,6 +1458,34 @@ presubmits:
memory: 15Gi
securityContext:
privileged: true
- always_run: true
branches:
- release-1.26
cluster: k8s-infra-prow-build
context: pull-kubernetes-integration-go-compatibility
decorate: true
labels:
preset-dind-enabled: "true"
preset-service-account: "true"
name: pull-kubernetes-integration-go-compatibility
path_alias: k8s.io/kubernetes
spec:
containers:
- args:
- ./hack/jenkins/test-dockerized.sh
command:
- runner.sh
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-1.26
name: ""
resources:
limits:
cpu: "6"
memory: 15Gi
requests:
cpu: "6"
memory: 15Gi
securityContext:
privileged: true
- always_run: true
branches:
- release-1.26
Expand Down Expand Up @@ -1604,6 +1632,30 @@ presubmits:
requests:
cpu: "4"
memory: 36Gi
- always_run: true
branches:
- release-1.26
cluster: k8s-infra-prow-build
context: pull-kubernetes-unit-go-compatibility
decorate: true
labels:
preset-service-account: "true"
name: pull-kubernetes-unit-go-compatibility
path_alias: k8s.io/kubernetes
spec:
containers:
- command:
- make
- test
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-1.26
name: ""
resources:
limits:
cpu: "4"
memory: 36Gi
requests:
cpu: "4"
memory: 36Gi
- always_run: true
branches:
- release-1.26
Expand Down
30 changes: 30 additions & 0 deletions config/jobs/kubernetes/sig-testing/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,36 @@ presubmits:
requests:
cpu: 6
memory: 15Gi
- name: pull-kubernetes-integration-go-compatibility
cluster: k8s-infra-prow-build
always_run: true
decorate: true
skip_branches:
- release-\d+.\d+ # per-release job
annotations:
fork-per-release: "true"
testgrid-dashboards: sig-testing-canaries
path_alias: k8s.io/kubernetes
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-master
command:
- runner.sh
args:
- ./hack/jenkins/test-dockerized.sh
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
limits:
cpu: 6
memory: 15Gi
requests:
cpu: 6
memory: 15Gi
- name: pull-kubernetes-integration-go-canary
cluster: k8s-infra-prow-build
always_run: false
Expand Down
35 changes: 35 additions & 0 deletions config/jobs/kubernetes/sig-testing/make-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,41 @@ presubmits:
requests:
cpu: 4
memory: "36Gi"
- name: pull-kubernetes-unit-go-compatibility
annotations:
fork-per-release: "true"
testgrid-dashboards: sig-testing-canaries
decorate: true
cluster: k8s-infra-prow-build
skip_branches:
- release-\d+.\d+ # per-release job
labels:
preset-service-account: "true"
optional: false
always_run: true
path_alias: k8s.io/kubernetes
spec:
# unit tests have no business requiring root or doing privileged operations
securityContext:
# NOTE: these are arbitrary non-root values. They don't exist in the
# image and don't need to, the unit tests should only write to TMPDIR
runAsUser: 2001
runAsGroup: 2010
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-master
securityContext:
allowPrivilegeEscalation: false
command:
- make
- test
# TODO: direct copy from pull-kubernetes-bazel-test, tune these
resources:
limits:
cpu: 4
memory: "36Gi"
requests:
cpu: 4
memory: "36Gi"
- name: pull-kubernetes-unit-experimental
# try clonerefs with preclone
decoration_config:
Expand Down

0 comments on commit 95e1014

Please sign in to comment.