k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/jobs/kubernetes/sig-storage/sig-storage-kind.yaml (about)

     1  presubmits:
     2    kubernetes/kubernetes:
     3    - name: pull-kubernetes-e2e-storage-kind-disruptive
     4      always_run: false
     5      optional: true
     6      decorate: true
     7      path_alias: k8s.io/kubernetes
     8      cluster: eks-prow-build-cluster
     9      # All the files owned by sig-storage. Keep in sync across
    10      # all sig-storage-jobs
    11      #
    12      # pkg/controller/volume
    13      # pkg/kubelet/volumemanager
    14      # pkg/volume
    15      # pkg/util/mount
    16      # test/e2e/storage
    17      # test/e2e/testing-manifests/storage-csi
    18      run_if_changed: '^(pkg\/controller\/volume|pkg\/kubelet\/volumemanager|pkg\/volume|pkg\/util\/mount|test\/e2e\/storage|test\/e2e\/testing-manifests\/storage-csi)'
    19      skip_branches:
    20        - release-\d+\.\d+
    21      annotations:
    22        testgrid-dashboards: presubmits-kubernetes-nonblocking
    23        testgrid-tab-name: pull-kubernetes-e2e-storage-kind-disruptive
    24        testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com
    25        description: Run storage tests that need disruption of the API server in a KIND cluster.
    26      labels:
    27        preset-service-account: "true"
    28        preset-k8s-ssh: "true"
    29        preset-dind-enabled: "true"
    30      spec:
    31        containers:
    32        - image: gcr.io/k8s-staging-test-infra/krte:v20240515-17c6d50e24-master
    33          command:
    34          - wrapper.sh
    35          args:
    36          - /bin/sh
    37          - -xc
    38          - >
    39            make WHAT="github.com/onsi/ginkgo/v2/ginkgo k8s.io/kubernetes/test/e2e/e2e.test k8s.io/kubernetes/cmd/kubectl" &&
    40            curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" kind &&
    41            kind build node-image --image node:latest &&
    42            trap 'kind export logs "${ARTIFACTS}/kind"; kind delete cluster' EXIT &&
    43            kind create cluster --retain --image node:latest &&
    44            KUBERNETES_PROVIDER=local KUBECONFIG=${HOME}/.kube/config GINKGO_PARALLEL_NODES=1 E2E_REPORT_DIR=${ARTIFACTS} hack/ginkgo-e2e.sh -ginkgo.focus="\[sig-storage\].*\[Feature:Kind\].*\[Disruptive\]"
    45  
    46          # docker-in-docker needs privileged mode
    47          securityContext:
    48            privileged: true
    49          resources:
    50            requests:
    51              cpu: "2"
    52              memory: "6Gi"
    53            limits:
    54              cpu: "2"
    55              memory: "6Gi"
    56  
    57    # This jobs runs e2e.test with a focus on tests for all alpha storage features on a kind cluster
    58    - name: pull-kubernetes-e2e-storage-kind-alpha-features
    59      always_run: false
    60      optional: true
    61      decorate: true
    62      path_alias: k8s.io/kubernetes
    63      cluster: eks-prow-build-cluster
    64      skip_branches:
    65      - release-\d+\.\d+
    66      annotations:
    67        testgrid-dashboards: presubmits-kubernetes-nonblocking
    68        testgrid-tab-name: pull-kubernetes-e2e-storage-kind-alpha-features
    69        testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com
    70        description: Run storage tests for alpha features in a KIND cluster.
    71      labels:
    72        preset-service-account: "true"
    73        preset-dind-enabled: "true"
    74        preset-kind-volume-mounts: "true"
    75      spec:
    76        containers:
    77        - image: gcr.io/k8s-staging-test-infra/krte:v20240515-17c6d50e24-master
    78          command:
    79          - wrapper.sh
    80          - bash
    81          - -c
    82          - curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && e2e-k8s.sh
    83          env:
    84          - name: FEATURE_GATES
    85            value: '{"VolumeAttributesClass":true, "HonorPVReclaimPolicy": true}'
    86          - name: RUNTIME_CONFIG
    87            value: '{"api/ga":"true", "storage.k8s.io/v1alpha1":"true"}'
    88          - name: FOCUS
    89            value: \[Feature:VolumeAttributesClass\]|\[Feature:HonorPVReclaimPolicy\]
    90          - name: PARALLEL
    91            value: "true"
    92          # we need privileged mode in order to do docker in docker
    93          securityContext:
    94            privileged: true
    95          resources:
    96            requests:
    97              cpu: "2"
    98              memory: "6Gi"
    99            limits:
   100              cpu: "2"
   101              memory: "6Gi"
   102  
   103  periodics:
   104    # This jobs runs storage tests that need Kubernetes In Docker (kind).
   105    - name: ci-kubernetes-e2e-storage-kind-disruptive
   106      interval: 12h
   107      annotations:
   108        testgrid-dashboards: sig-storage-kubernetes
   109        testgrid-tab-name: kind-disruptive
   110        testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com
   111        description: Run storage tests that need disruption of the API server in a KIND cluster.
   112      decorate: true
   113      cluster: eks-prow-build-cluster
   114      extra_refs:
   115      - org: kubernetes
   116        repo: kubernetes
   117        base_ref: master
   118        path_alias: k8s.io/kubernetes
   119      labels:
   120        preset-service-account: "true"
   121        preset-dind-enabled: "true"
   122        preset-kind-volume-mounts: "true"
   123      spec:
   124        containers:
   125        - image: gcr.io/k8s-staging-test-infra/krte:v20240515-17c6d50e24-master
   126          command:
   127          - wrapper.sh
   128          args:
   129          - /bin/sh
   130          - -xc
   131          - >
   132            make WHAT="github.com/onsi/ginkgo/v2/ginkgo k8s.io/kubernetes/test/e2e/e2e.test k8s.io/kubernetes/cmd/kubectl" &&
   133            curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" kind &&
   134            kind build node-image --image node:latest &&
   135            trap 'kind export logs "${ARTIFACTS}/kind"; kind delete cluster' EXIT &&
   136            kind create cluster --retain --image node:latest &&
   137            KUBERNETES_PROVIDER=local KUBECONFIG=${HOME}/.kube/config GINKGO_PARALLEL_NODES=1 E2E_REPORT_DIR=${ARTIFACTS} hack/ginkgo-e2e.sh -ginkgo.focus="\[sig-storage\].*\[Feature:Kind\].*\[Disruptive\]"
   138  
   139          # docker-in-docker needs privileged mode
   140          securityContext:
   141            privileged: true
   142          resources:
   143            requests:
   144              cpu: "2"
   145              memory: "6Gi"
   146            limits:
   147              cpu: "2"
   148              memory: "6Gi"
   149  
   150    # This jobs runs e2e.test with a focus on tests for all alpha storage features on a kind cluster
   151    - name: ci-kubernetes-e2e-storage-kind-alpha-features
   152      interval: 12h
   153      annotations:
   154        testgrid-dashboards: sig-storage-kubernetes
   155        testgrid-tab-name: kind-alpha-features
   156        testgrid-alert-email: kubernetes-sig-storage-test-failures@googlegroups.com
   157        description: Run storage tests for alpha features in a KIND cluster.
   158      decorate: true
   159      extra_refs:
   160      - org: kubernetes
   161        repo: kubernetes
   162        base_ref: master
   163        path_alias: k8s.io/kubernetes
   164      cluster: eks-prow-build-cluster
   165      labels:
   166        preset-service-account: "true"
   167        preset-dind-enabled: "true"
   168        preset-kind-volume-mounts: "true"
   169      spec:
   170        containers:
   171        - image: gcr.io/k8s-staging-test-infra/krte:v20240515-17c6d50e24-master
   172          command:
   173          - wrapper.sh
   174          - bash
   175          - -c
   176          - curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && e2e-k8s.sh
   177          env:
   178          - name: FEATURE_GATES
   179            value: '{"VolumeAttributesClass":true, "HonorPVReclaimPolicy": true}'
   180          - name: RUNTIME_CONFIG
   181            value: '{"api/ga":"true", "storage.k8s.io/v1alpha1":"true"}'
   182          - name: FOCUS
   183            value: \[Feature:VolumeAttributesClass\]|\[Feature:HonorPVReclaimPolicy\]
   184          - name: PARALLEL
   185            value: "true"
   186          # we need privileged mode in order to do docker in docker
   187          securityContext:
   188            privileged: true
   189          resources:
   190            requests:
   191              cpu: "2"
   192              memory: "6Gi"
   193            limits:
   194              cpu: "2"
   195              memory: "6Gi"