From f5d4231dab6ff15063190cd3687db91fb5fb44ef Mon Sep 17 00:00:00 2001 From: Praveen M Date: Wed, 7 May 2025 14:33:06 +0530 Subject: [PATCH] add new e2e job for snapshot-metadata in KIND cluster Signed-off-by: Praveen M --- .../sig-storage/sig-storage-kind.yaml | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/config/jobs/kubernetes/sig-storage/sig-storage-kind.yaml b/config/jobs/kubernetes/sig-storage/sig-storage-kind.yaml index 2858d00f4471..7ab55920fe13 100644 --- a/config/jobs/kubernetes/sig-storage/sig-storage-kind.yaml +++ b/config/jobs/kubernetes/sig-storage/sig-storage-kind.yaml @@ -145,6 +145,49 @@ presubmits: cpu: "2" memory: "6Gi" + - name: pull-kubernetes-e2e-storage-kind-snapshot-metadata + always_run: false + optional: true + decorate: true + path_alias: k8s.io/kubernetes + cluster: eks-prow-build-cluster + skip_branches: + - release-\d+\.\d+ + annotations: + testgrid-dashboards: presubmits-kubernetes-nonblocking + testgrid-tab-name: pull-kubernetes-e2e-storage-kind-snapshot-metadata + testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com + description: Run storage tests snapshot metadata in a KIND cluster. + labels: + preset-service-account: "true" + preset-dind-enabled: "true" + preset-kind-volume-mounts: "true" + spec: + containers: + - image: gcr.io/k8s-staging-test-infra/krte:v20250422-9d0e6fd518-master + command: + - wrapper.sh + - bash + - -c + - curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && test/e2e/testing-manifests/storage-csi/external-snapshot-metadata/run_snapshot_metadata_e2e.sh + env: + - name: RUNTIME_CONFIG + value: '{"api/ga":"true", "storage.k8s.io/v1alpha1":"true", "storage.k8s.io/v1beta1":"true"}' + - name: FOCUS + value: \[Feature:snapshotmetadata\] + - name: PARALLEL + value: "true" + # we need privileged mode in order to do docker in docker + securityContext: + privileged: true + resources: + requests: + cpu: "2" + memory: "6Gi" + limits: + cpu: "2" + memory: "6Gi" + periodics: # This jobs runs storage tests that need Kubernetes In Docker (kind). - name: ci-kubernetes-e2e-storage-kind-disruptive @@ -284,3 +327,42 @@ periodics: limits: cpu: "2" memory: "6Gi" + + - name: ci-kubernetes-e2e-storage-kind-snapshot-metadata + interval: 12h + annotations: + testgrid-dashboards: sig-storage-kubernetes + testgrid-tab-name: storage-kind-snapshot-metadata + testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com + description: Run storage tests snapshot metadata in a KIND cluster. + decorate: true + cluster: eks-prow-build-cluster + labels: + preset-service-account: "true" + preset-dind-enabled: "true" + preset-kind-volume-mounts: "true" + spec: + containers: + - image: gcr.io/k8s-staging-test-infra/krte:v20250422-9d0e6fd518-master + command: + - wrapper.sh + - bash + - -c + - curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && test/e2e/testing-manifests/storage-csi/external-snapshot-metadata/run_snapshot_metadata_e2e.sh + env: + - name: RUNTIME_CONFIG + value: '{"api/ga":"true", "storage.k8s.io/v1alpha1":"true", "storage.k8s.io/v1beta1":"true"}' + - name: FOCUS + value: \[Feature:snapshotmetadata\] + - name: PARALLEL + value: "true" + # we need privileged mode in order to do docker in docker + securityContext: + privileged: true + resources: + requests: + cpu: "2" + memory: "6Gi" + limits: + cpu: "2" + memory: "6Gi"