Skip to content

Commit

Permalink
kubernetes-csi: test snapshotter, resizer and liveness with different…
Browse files Browse the repository at this point in the history
… Kubernetes versions

All are now part of all csi-driver-host-path deployments for
Kubernetes 1.13 and later and their functionality may differ depending
on the Kubernetes version. Therefore it makes sense to enable the full
test matrix instead of testing with just one Kubernetes version.
  • Loading branch information
pohly committed Sep 23, 2019
1 parent 16de144 commit a5f8662
Show file tree
Hide file tree
Showing 4 changed files with 589 additions and 40 deletions.
204 changes: 193 additions & 11 deletions config/jobs/kubernetes-csi/external-resizer/external-resizer-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

presubmits:
kubernetes-csi/external-resizer:
- name: pull-kubernetes-csi-external-resizer
- name: pull-kubernetes-csi-external-resizer-1-14-on-kubernetes-1-14
always_run: true
optional: false
decorate: true
Expand All @@ -14,8 +14,8 @@ presubmits:
preset-kind-volume-mounts: "true"
annotations:
testgrid-dashboards: sig-storage-csi
testgrid-tab-name: pull-kubernetes-csi-external-resizer
description: Kubernetes-CSI pull non-alpha job in external-resizer
testgrid-tab-name: pull-kubernetes-csi-external-resizer-1-14-on-kubernetes-1-14
description: Kubernetes-CSI pull non-alpha job in external-resizer, using deployment 1.14 on Kubernetes 1.14.0
spec:
containers:
# We need this image because it has Docker in Docker and go.
Expand All @@ -25,6 +25,15 @@ presubmits:
args:
- ./.prow.sh
env:
# We pick some version for which there are pre-built images for kind.
# Update only when the newer version is known to not cause issues,
# otherwise presubmit jobs may start to fail for reasons that are
# unrelated to the PR. Testing against the latest Kubernetes is covered
# by periodic jobs (see https://k8s-testgrid.appspot.com/sig-storage-csi#Summary).
- name: CSI_PROW_KUBERNETES_VERSION
value: "1.14.0"
- name: CSI_PROW_KUBERNETES_DEPLOYMENT
value: "1.14"
- name: CSI_PROW_TESTS
value: "sanity serial parallel"
# docker-in-docker needs privileged mode
Expand All @@ -33,7 +42,47 @@ presubmits:
resources:
requests:
cpu: 2000m
- name: pull-kubernetes-csi-external-resizer-unit
- name: pull-kubernetes-csi-external-resizer-1-14-on-kubernetes-master
# Explicitly needs to be started with /test.
# This cannot be enabled by default because there's always the risk
# that something changes in master which breaks the pre-merge check.
always_run: false
optional: true
decorate: true
skip_report: false
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-bazel-remote-cache-enabled: "true"
preset-kind-volume-mounts: "true"
annotations:
testgrid-dashboards: sig-storage-csi
testgrid-tab-name: pull-kubernetes-csi-external-resizer-1-14-on-kubernetes-master
description: Kubernetes-CSI pull non-alpha job in external-resizer, using deployment 1.14 on Kubernetes master
spec:
containers:
# We need this image because it has Docker in Docker and go.
- image: gcr.io/k8s-testimages/kubekins-e2e:v20190917-d326d2a-master
command:
- runner.sh
args:
- ./.prow.sh
env:
- name: CSI_PROW_KUBERNETES_VERSION
value: "latest"
- name: CSI_PROW_TESTS
value: "sanity serial parallel"
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
# these are both a bit below peak usage during build
# this is mostly for building kubernetes
memory: "9000Mi"
# during the tests more like 3-20m is used
cpu: 2000m
- name: pull-kubernetes-csi-external-resizer-1-15-on-kubernetes-1-15
always_run: true
optional: false
decorate: true
Expand All @@ -45,8 +94,8 @@ presubmits:
preset-kind-volume-mounts: "true"
annotations:
testgrid-dashboards: sig-storage-csi
testgrid-tab-name: pull-kubernetes-csi-external-resizer-unit
description: Kubernetes-CSI pull unit job in external-resizer
testgrid-tab-name: pull-kubernetes-csi-external-resizer-1-15-on-kubernetes-1-15
description: Kubernetes-CSI pull non-alpha job in external-resizer, using deployment 1.15 on Kubernetes 1.15.0
spec:
containers:
# We need this image because it has Docker in Docker and go.
Expand All @@ -56,16 +105,65 @@ presubmits:
args:
- ./.prow.sh
env:
# We pick some version for which there are pre-built images for kind.
# Update only when the newer version is known to not cause issues,
# otherwise presubmit jobs may start to fail for reasons that are
# unrelated to the PR. Testing against the latest Kubernetes is covered
# by periodic jobs (see https://k8s-testgrid.appspot.com/sig-storage-csi#Summary).
- name: CSI_PROW_KUBERNETES_VERSION
value: "1.15.0"
- name: CSI_PROW_KUBERNETES_DEPLOYMENT
value: "1.15"
- name: CSI_PROW_TESTS
value: "unit"
value: "sanity serial parallel"
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
cpu: 2000m
- name: pull-kubernetes-csi-external-resizer-alpha
always_run: true
- name: pull-kubernetes-csi-external-resizer-1-15-on-kubernetes-master
# Explicitly needs to be started with /test.
# This cannot be enabled by default because there's always the risk
# that something changes in master which breaks the pre-merge check.
always_run: false
optional: true
decorate: true
skip_report: false
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-bazel-remote-cache-enabled: "true"
preset-kind-volume-mounts: "true"
annotations:
testgrid-dashboards: sig-storage-csi
testgrid-tab-name: pull-kubernetes-csi-external-resizer-1-15-on-kubernetes-master
description: Kubernetes-CSI pull non-alpha job in external-resizer, using deployment 1.15 on Kubernetes master
spec:
containers:
# We need this image because it has Docker in Docker and go.
- image: gcr.io/k8s-testimages/kubekins-e2e:v20190917-d326d2a-master
command:
- runner.sh
args:
- ./.prow.sh
env:
- name: CSI_PROW_KUBERNETES_VERSION
value: "latest"
- name: CSI_PROW_TESTS
value: "sanity serial parallel"
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
# these are both a bit below peak usage during build
# this is mostly for building kubernetes
memory: "9000Mi"
# during the tests more like 3-20m is used
cpu: 2000m
- name: pull-kubernetes-csi-external-resizer-alpha-1-15-on-kubernetes-1-15
always_run: false
optional: true
decorate: true
skip_report: false
Expand All @@ -76,8 +174,8 @@ presubmits:
preset-kind-volume-mounts: "true"
annotations:
testgrid-dashboards: sig-storage-csi
testgrid-tab-name: pull-kubernetes-csi-external-resizer-alpha
description: Kubernetes-CSI pull alpha job in external-resizer
testgrid-tab-name: pull-kubernetes-csi-external-resizer-alpha-1-15-on-kubernetes-1-15
description: Kubernetes-CSI pull alpha job in external-resizer, using deployment 1.15 on Kubernetes 1.15.0
spec:
containers:
# We need this image because it has Docker in Docker and go.
Expand All @@ -87,6 +185,15 @@ presubmits:
args:
- ./.prow.sh
env:
# We pick some version for which there are pre-built images for kind.
# Update only when the newer version is known to not cause issues,
# otherwise presubmit jobs may start to fail for reasons that are
# unrelated to the PR. Testing against the latest Kubernetes is covered
# by periodic jobs (see https://k8s-testgrid.appspot.com/sig-storage-csi#Summary).
- name: CSI_PROW_KUBERNETES_VERSION
value: "1.15.0"
- name: CSI_PROW_KUBERNETES_DEPLOYMENT
value: "1.15"
- name: CSI_PROW_TESTS
value: "serial-alpha parallel-alpha"
# docker-in-docker needs privileged mode
Expand All @@ -95,3 +202,78 @@ presubmits:
resources:
requests:
cpu: 2000m
- name: pull-kubernetes-csi-external-resizer-alpha-1-15-on-kubernetes-master
# Explicitly needs to be started with /test.
# This cannot be enabled by default because there's always the risk
# that something changes in master which breaks the pre-merge check.
always_run: false
optional: true
decorate: true
skip_report: false
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-bazel-remote-cache-enabled: "true"
preset-kind-volume-mounts: "true"
annotations:
testgrid-dashboards: sig-storage-csi
testgrid-tab-name: pull-kubernetes-csi-external-resizer-alpha-1-15-on-kubernetes-master
description: Kubernetes-CSI pull alpha job in external-resizer, using deployment 1.15 on Kubernetes master
spec:
containers:
# We need this image because it has Docker in Docker and go.
- image: gcr.io/k8s-testimages/kubekins-e2e:v20190917-d326d2a-master
command:
- runner.sh
args:
- ./.prow.sh
env:
- name: CSI_PROW_KUBERNETES_VERSION
value: "latest"
- name: CSI_PROW_TESTS
value: "serial-alpha parallel-alpha"
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
# these are both a bit below peak usage during build
# this is mostly for building kubernetes
memory: "9000Mi"
# during the tests more like 3-20m is used
cpu: 2000m
- name: pull-kubernetes-csi-external-resizer-unit
always_run: true
decorate: true
skip_report: false
skip_branches: []
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-bazel-remote-cache-enabled: "true"
preset-kind-volume-mounts: "true"
annotations:
testgrid-dashboards: sig-storage-csi
testgrid-tab-name: pull-kubernetes-csi-external-resizer-unit
description: Kubernetes-CSI pull unit job in external-resizer
spec:
containers:
# We need this image because it has Docker in Docker and go.
- image: gcr.io/k8s-testimages/kubekins-e2e:v20190917-d326d2a-master
command:
- runner.sh
args:
- ./.prow.sh
env:
- name: CSI_PROW_TESTS
value: "unit"
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
# these are both a bit below peak usage during build
# this is mostly for building kubernetes
memory: "9000Mi"
# during the tests more like 3-20m is used
cpu: 2000m
Loading

0 comments on commit a5f8662

Please sign in to comment.