k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/jobs/kubernetes-sigs/vsphere-csi-driver/vsphere-csi-driver.yaml (about)

     1  presubmits:
     2    kubernetes-sigs/vsphere-csi-driver:
     3  
     4    - name: pull-vsphere-csi-driver-verify-fmt
     5      cluster: eks-prow-build-cluster
     6      always_run: false
     7      run_if_changed: '\.go$|hack\/check-format\.sh'
     8      decorate: true
     9      path_alias: sigs.k8s.io/vsphere-csi-driver
    10      spec:
    11        containers:
    12        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
    13          command:
    14          - make
    15          args:
    16          - fmt
    17          resources:
    18            limits:
    19              cpu: 2
    20              memory: 4Gi
    21            requests:
    22              cpu: 2
    23              memory: 4Gi
    24      annotations:
    25        testgrid-dashboards: vmware-presubmits-vsphere-csi-driver
    26        testgrid-alert-email: k8s-testing-cloud-provider-vsphere+alerts@groups.vmware.com
    27        testgrid-tab-name: pr-verify-fmt
    28        description: Verifies the Golang sources have been formatted
    29  
    30  
    31    - name: pull-vsphere-csi-driver-verify-vet
    32      cluster: eks-prow-build-cluster
    33      always_run: false
    34      run_if_changed: '\.go$|hack\/check-vet\.sh'
    35      decorate: true
    36      path_alias: sigs.k8s.io/vsphere-csi-driver
    37      spec:
    38        containers:
    39        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
    40          command:
    41          - make
    42          args:
    43          - vet
    44          resources:
    45            limits:
    46              cpu: 2
    47              memory: 4Gi
    48            requests:
    49              cpu: 2
    50              memory: 4Gi
    51      annotations:
    52        testgrid-dashboards: vmware-presubmits-vsphere-csi-driver
    53        testgrid-alert-email: k8s-testing-cloud-provider-vsphere+alerts@groups.vmware.com
    54        testgrid-tab-name: pr-verify-vet
    55        description: Vets the Golang sources have been vetted
    56  
    57    - name: pull-vsphere-csi-driver-verify-golangci-lint
    58      cluster: eks-prow-build-cluster
    59      always_run: false
    60      run_if_changed: '\.go'
    61      decorate: true
    62      path_alias: sigs.k8s.io/vsphere-csi-driver
    63      spec:
    64        containers:
    65          - image: golangci/golangci-lint:v1.55.1
    66            command:
    67              - make
    68            args:
    69              - golangci-lint
    70            resources:
    71              limits:
    72                cpu: 4
    73                memory: 6Gi
    74              requests:
    75                cpu: 4
    76                memory: 6Gi
    77      annotations:
    78        testgrid-dashboards: vmware-presubmits-vsphere-csi-driver
    79        testgrid-alert-email: k8s-testing-cloud-provider-vsphere+alerts@groups.vmware.com
    80        testgrid-tab-name: pr-verify-golangci-lint
    81        description: Verifies the Golang sources are verified with golangci-lint
    82  
    83    # Runs 'shellcheck' on appropriate sources
    84    - name: pull-vsphere-csi-driver-verify-shell
    85      cluster: eks-prow-build-cluster
    86      always_run: false
    87      run_if_changed: '.*\.\w*sh$'
    88      decorate: true
    89      path_alias: sigs.k8s.io/vsphere-csi-driver
    90      spec:
    91        containers:
    92        - image: gcr.io/cluster-api-provider-vsphere/extra/shellcheck:v0.7.1
    93          command:
    94          - /bin/shellcheck.sh
    95          resources:
    96            limits:
    97              cpu: 2
    98              memory: 4Gi
    99            requests:
   100              cpu: 2
   101              memory: 4Gi
   102      annotations:
   103        testgrid-dashboards: vmware-presubmits-vsphere-csi-driver
   104        testgrid-tab-name: pr-verify-shell
   105        testgrid-alert-email: k8s-testing-cloud-provider-vsphere+alerts@groups.vmware.com
   106        description: Verifies the shell scripts have been linted
   107  
   108    # Runs 'mdlint' on appropriate sources
   109    - name: pull-vsphere-csi-driver-verify-markdown
   110      cluster: eks-prow-build-cluster
   111      always_run: false
   112      run_if_changed: '.*\.md$'
   113      decorate: true
   114      path_alias: sigs.k8s.io/vsphere-csi-driver
   115      spec:
   116        containers:
   117        - image: gcr.io/cluster-api-provider-vsphere/extra/mdlint:0.17.0
   118          command:
   119          - /nodejs/bin/node
   120          args:
   121          - /md/lint
   122          - .
   123          resources:
   124            limits:
   125              cpu: 2
   126              memory: 4Gi
   127            requests:
   128              cpu: 2
   129              memory: 4Gi
   130      annotations:
   131        testgrid-dashboards: vmware-presubmits-vsphere-csi-driver
   132        testgrid-tab-name: pr-verify-markdown
   133        testgrid-alert-email: k8s-testing-cloud-provider-vsphere+alerts@groups.vmware.com
   134        description: Verifies the markdown has been linted
   135  
   136    # Runs 'staticcheck' on appropriate sources
   137    - name: pull-vsphere-csi-driver-verify-staticcheck
   138      cluster: eks-prow-build-cluster
   139      always_run: false
   140      run_if_changed: '\.go$|hack\/check-staticcheck\.sh'
   141      decorate: true
   142      path_alias: sigs.k8s.io/vsphere-csi-driver
   143      spec:
   144        containers:
   145        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
   146          command:
   147          - make
   148          args:
   149          - staticcheck
   150          resources:
   151            limits:
   152              cpu: 2
   153              memory: 4Gi
   154            requests:
   155              cpu: 2
   156              memory: 4Gi
   157      annotations:
   158        testgrid-dashboards: vmware-presubmits-vsphere-csi-driver
   159        testgrid-tab-name: pr-verify-staticcheck
   160        testgrid-alert-email: k8s-testing-cloud-provider-vsphere+alerts@groups.vmware.com
   161        description: Verifies Go sources pass a static source checker
   162  
   163    # Builds the CSI binary
   164    - name: pull-vsphere-csi-driver-build
   165      labels:
   166        preset-dind-enabled: "true"
   167      cluster: eks-prow-build-cluster
   168      always_run: false
   169      run_if_changed: '^(cmd|pkg|go.mod)'
   170      decorate: true
   171      path_alias: sigs.k8s.io/vsphere-csi-driver
   172      skip_submodules: true
   173      skip_report: false
   174      spec:
   175        containers:
   176        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
   177          command:
   178          - runner.sh
   179          args:
   180          - make
   181          - build
   182          resources:
   183            limits:
   184              cpu: 2
   185              memory: 4Gi
   186            requests:
   187              cpu: 2
   188              memory: 4Gi
   189      annotations:
   190        testgrid-dashboards: vmware-presubmits-vsphere-csi-driver
   191        testgrid-alert-email: k8s-testing-cloud-provider-vsphere+alerts@groups.vmware.com
   192  
   193    # Executes the unit tests.
   194    - name: pull-vsphere-csi-driver-unit-test
   195      cluster: eks-prow-build-cluster
   196      always_run: false
   197      run_if_changed: '\.go$|go\.mod'
   198      decorate: true
   199      path_alias: sigs.k8s.io/vsphere-csi-driver
   200      skip_submodules: true
   201      skip_report: false
   202      spec:
   203        containers:
   204        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
   205          command:
   206          - "make"
   207          args:
   208          - "unit-test"
   209          resources:
   210            limits:
   211              cpu: 2
   212              memory: 4Gi
   213            requests:
   214              cpu: 2
   215              memory: 4Gi
   216      annotations:
   217        testgrid-dashboards: vmware-presubmits-vsphere-csi-driver
   218        testgrid-alert-email: k8s-testing-cloud-provider-vsphere+alerts@groups.vmware.com
   219  
   220  postsubmits:
   221    kubernetes-sigs/vsphere-csi-driver:
   222  
   223    # Deploys the CSI image after all merges to master
   224    - name: post-vsphere-csi-driver-deploy
   225      cluster: default
   226      decorate: true
   227      labels:
   228        preset-dind-enabled: "true"
   229        preset-kind-volume-mounts: "true"
   230        preset-cloud-provider-vsphere-e2e-config: "true"
   231      max_concurrency: 1
   232      branches:
   233      - ^master$
   234      path_alias: sigs.k8s.io/vsphere-csi-driver
   235      skip_submodules: true
   236      spec:
   237        containers:
   238        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
   239          command:
   240          - runner.sh
   241          args:
   242          - make
   243          - deploy
   244          securityContext:
   245            privileged: true
   246          resources:
   247            limits:
   248              cpu: 2
   249              memory: 4Gi
   250            requests:
   251              cpu: 2
   252              memory: 4Gi
   253      annotations:
   254        testgrid-dashboards: vmware-postsubmits-vsphere-csi-driver
   255        testgrid-num-columns-recent: '20'
   256        testgrid-alert-email: k8s-testing-cloud-provider-vsphere+alerts@groups.vmware.com
   257  
   258    # Deploys the CSI image for tagged releases
   259    - name: post-vsphere-csi-driver-release
   260      cluster: default
   261      decorate: true
   262      labels:
   263        preset-dind-enabled: "true"
   264        preset-cloud-provider-vsphere-e2e-config: "true"
   265      max_concurrency: 1
   266      branches:
   267      - ^v(\d)+\.(\d)+\.(\d)+(-(alpha|beta|rc)\.(\d)+)?$
   268      path_alias: sigs.k8s.io/vsphere-csi-driver
   269      skip_submodules: true
   270      spec:
   271        containers:
   272        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
   273          command:
   274          - runner.sh
   275          args:
   276          - make
   277          - push-images
   278          securityContext:
   279            privileged: true
   280          resources:
   281            limits:
   282              cpu: 2
   283              memory: 4Gi
   284            requests:
   285              cpu: 2
   286              memory: 4Gi
   287      rerun_auth_config:
   288        github_users:
   289        - codenrhoden
   290      annotations:
   291        testgrid-dashboards: vmware-postsubmits-vsphere-csi-driver
   292        testgrid-num-columns-recent: '20'
   293        testgrid-alert-email: k8s-testing-cloud-provider-vsphere+alerts@groups.vmware.com