Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

master: update release-tools #359

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
e4b15f0
Add error checks
chethanv28 Sep 27, 2020
fb30afa
Merge commit 'b3f73ef5bd3d0538562dbbcf7db946e9a136e498' into release_…
xing-yang Nov 19, 2020
b3f73ef
Squashed 'release-tools/' changes from 4aff857..c6a88c6
xing-yang Nov 19, 2020
2ab100f
Merge pull request #312 from kubernetes-csi/release_tools2
k8s-ci-robot Nov 19, 2020
9d58f02
update klog to v2.4.0
pohly Nov 23, 2020
701d229
Merge pull request #313 from pohly/klog-v2
k8s-ci-robot Nov 25, 2020
6f40ae0
dependency update
pohly Dec 10, 2020
0549802
Merge pull request #315 from pohly/dependencies
k8s-ci-robot Dec 16, 2020
64dae77
Prevent plugin from returning in-use error for source volumes
timoreimann Sep 29, 2020
f7d344b
Clean up resources in LIFO order
timoreimann Oct 4, 2020
3ba1762
Remove VolumeID from VolumeInfo and unexport variable
timoreimann Oct 4, 2020
9a905e4
Retype resourceInfos to slice
timoreimann Oct 29, 2020
8ceb1a4
Add debug log messages
timoreimann Oct 29, 2020
537f237
Replace custom logger by klog
timoreimann Jan 20, 2021
10dd452
optimize/reduce logs
timoreimann Jan 20, 2021
9a31fca
Merge commit '1096dc3073f8e5f1741495847a4a0118d35a35a4' into prow-upd…
pohly Jan 26, 2021
1096dc3
Squashed 'release-tools/' changes from c6a88c6..1d60e77
pohly Jan 26, 2021
3b65873
Merge pull request #317 from pohly/prow-update-master
k8s-ci-robot Jan 27, 2021
660acd6
Add external-attacher to mock CSI driver deployment
chrishenzie Jan 28, 2021
ebcc37e
Merge pull request #318 from chrishenzie/add-external-attacher
k8s-ci-robot Jan 29, 2021
ea2d97f
do best effort cleanup
timoreimann Jan 30, 2021
44a7535
Merge pull request #297 from timoreimann/prevent-plugin-from-returnin…
k8s-ci-robot Feb 2, 2021
edf7fcf
Squashed 'release-tools/' changes from 1d60e77..7bc70e5
pohly Feb 3, 2021
c42ed8b
Merge commit 'edf7fcfd60afe640ede4e305988cbadb2040fad6' into prow-upd…
pohly Feb 3, 2021
1173afa
Enable attachment in mock driver deployment and bump attach limit
chrishenzie Feb 4, 2021
ef07baf
mock: act as proxy
pohly Dec 4, 2020
98ed4b7
Merge pull request #320 from pohly/prow-update-master
k8s-ci-robot Feb 4, 2021
9e6af2d
CSI mock driver: fix faulty error message
pohly Dec 4, 2020
255f49f
Merge pull request #296 from chethanv28/handle_errors
k8s-ci-robot Feb 8, 2021
20d5af0
Merge pull request #314 from pohly/proxy
k8s-ci-robot Feb 9, 2021
1b32db5
Donate csi-test to the CNCF/Kubernetes foundation
lpabon Feb 9, 2021
828bcfd
Fix headers according to release tool
lpabon Feb 19, 2021
ddc3352
sanity: fix copyright header
pohly Feb 19, 2021
e9ee49f
Merge pull request #327 from pohly/header-fix
k8s-ci-robot Feb 19, 2021
596b877
Merge pull request #324 from lpabon/donate
k8s-ci-robot Feb 20, 2021
30c44b9
Merge pull request #321 from chrishenzie/bump-attach-limit
k8s-ci-robot Feb 20, 2021
671f8fc
Add kubelet directories to mock driver manifest, fix bug in
msau42 Nov 12, 2020
1085a56
Merge pull request #322 from pohly/fix-type-error
k8s-ci-robot Feb 23, 2021
6eaeb93
Merge pull request #308 from msau42/example
k8s-ci-robot Feb 23, 2021
a3b6347
release v4.1.0
pohly Feb 23, 2021
1337ff9
docs: update for release v4.1.0
pohly Feb 23, 2021
c4bffc1
Merge pull request #328 from pohly/release-4.1.0
k8s-ci-robot Feb 23, 2021
62e4b59
Fix error message for snapshot cleanup
avorima Mar 10, 2021
a941ddd
Squashed 'release-tools/' changes from 7bc70e5..1748b16
pohly Mar 18, 2021
41fab83
Merge commit 'a941dddf346dd6d85dca4ff8fe7eea2e7e921d03' into prow-upd…
pohly Mar 18, 2021
b82e996
refresh vendor dir
pohly Mar 18, 2021
cb70b30
go.mod: bump Go features to 1.16
pohly Mar 18, 2021
f63b49d
Merge commit 'c5e5dd1970c6bc0303ffc07cdaf5fd5ad0fbfc23' into prow-upd…
pohly Mar 18, 2021
c5e5dd1
Squashed 'release-tools/' changes from 1748b16..95eac33
pohly Mar 18, 2021
e7ae15f
Merge pull request #330 from pohly/prow-update-master
k8s-ci-robot Mar 18, 2021
cc625c8
Squashed 'release-tools/' changes from 95eac33..a1e1127
pohly Mar 24, 2021
94a8d2e
Merge commit 'cc625c8b4617f6bb220cba1af8e0662ae12adecc' into prow-upd…
pohly Mar 24, 2021
31df058
Merge pull request #332 from pohly/prow-update-master
k8s-ci-robot Apr 7, 2021
6d79aac
Merge pull request #329 from avorima/fix-error-msg
k8s-ci-robot Apr 7, 2021
df74ae0
Provide more context for status code mismatch errors
avorima Apr 13, 2021
bb5ec31
More error context in controller and identity sanity tests
avorima Apr 14, 2021
a251c44
Merge pull request #334 from avorima/error-context
k8s-ci-robot Apr 14, 2021
ea17833
Squashed 'release-tools/' changes from a1e1127..6616a6b
pohly May 5, 2021
cfffb60
Merge commit 'e39918098410e65e37509fc7043ea11a0ef51066' into prow-upd…
pohly May 5, 2021
f531b5b
Extend NodeUnpublish test to verify cleanup of TargetPath (#336)
dobsonj Apr 27, 2021
f2a4ecd
Merge pull request #338 from dobsonj/336-NodeUnpublish-test
k8s-ci-robot May 5, 2021
ea8e78f
changelog for v4.2.0
pohly May 7, 2021
bc457f9
Merge pull request #340 from pohly/changelog-4.2.0
k8s-ci-robot May 7, 2021
26def6c
Merge pull request #339 from pohly/prow-update-master
k8s-ci-robot May 7, 2021
1f48da1
Merge commit '02da3556ad91514c27944d7cdd81f9da185aa809' into update-r…
dobsonj May 13, 2021
5f08f0c
Squashed 'release-tools/' changes from 6616a6b..7b96bea
dobsonj May 13, 2021
d362e2d
Merge pull request #341 from dobsonj/update-release-tools
k8s-ci-robot May 15, 2021
6477e45
Squashed 'release-tools/' changes from 7b96bea..f325590
pohly May 21, 2021
2c125ce
Merge commit 'b421c07275c9ede8871b81dd8ae04f16c9702a9d' into prow-upd…
pohly May 21, 2021
4b4f280
OWNERS update with aliases
pohly May 21, 2021
e2e9edf
Merge pull request #343 from pohly/prow-update-master
k8s-ci-robot May 22, 2021
99aa179
Use CSI spec v1.5.0
chrishenzie Mar 10, 2021
2168f5e
Advertise SINGLE_NODE_MULTI_WRITER capabilities
chrishenzie Mar 11, 2021
3de1c6c
Merge pull request #342 from chrishenzie/single-node-access-modes
k8s-ci-robot Jun 14, 2021
a385581
Squashed 'release-tools/' changes from f325590..c0a4fb1
pohly Aug 2, 2021
a12d9bb
Merge commit '427c08071bd6d69309c03512f8ef95f08d58fbf6' into prow-upd…
pohly Aug 2, 2021
c5c0c94
Merge pull request #348 from pohly/prow-update-master
k8s-ci-robot Aug 4, 2021
99a191a
support node VOLUME_MOUNT_GROUP cap
andyzhangx Aug 19, 2021
fbf2080
Merge pull request #349 from andyzhangx/patch-1
k8s-ci-robot Aug 19, 2021
b0995d6
Squashed 'release-tools/' changes from c0a4fb1..5489de6
mauriciopoppe Sep 10, 2021
c9714d5
Merge commit 'def789af9a9e5a8b5d0a34f5ea9ee3e9f15abe71' into prow-upd…
mauriciopoppe Sep 10, 2021
1f60fc5
Merge pull request #350 from mauriciopoppe/prow-update-master
k8s-ci-robot Sep 10, 2021
a4185b3
remove obsolete mock driver
pohly Sep 27, 2021
3f1ac79
Merge pull request #351 from pohly/remove-mock-driver
k8s-ci-robot Sep 27, 2021
5aec50e
changelog for v4.3.0
pohly Oct 7, 2021
b9a7786
Merge pull request #352 from pohly/release-4.3.0
k8s-ci-robot Oct 8, 2021
3e4de3e
Squashed 'release-tools/' changes from 5489de6..5b9a1e0
pohly Oct 15, 2021
a46e409
Merge commit 'a1ec1746776eb3dcacff853a0ee1b38f69c9210f' into prow-upd…
pohly Oct 15, 2021
7339a45
Merge pull request #355 from pohly/prow-update-master
k8s-ci-robot Nov 9, 2021
55c7bc4
Squashed 'release-tools/' changes from 5b9a1e0..a6a1a79
pohly Nov 16, 2021
31c0514
Merge commit '09f485f461232953c41e57a21a2a6b50c14afd50' into prow-upd…
pohly Nov 16, 2021
db65255
Merge pull request #357 from pohly/prow-update-master
k8s-ci-robot Nov 16, 2021
d7989f4
feat(ListSnapshotsSecret): csi-sanity test suite now passes secrets t…
jskazinski Nov 18, 2021
5b2556c
Merge pull request #358 from jskazinski/test/listsnapshot-secrets
k8s-ci-robot Dec 8, 2021
67ea86c
Squashed 'release-tools/' changes from a6a1a79..31aa44d
chrishenzie Jan 13, 2022
3b28517
Merge commit 'c70241367e2dc569da47c3c74ddca177c052ac28' into prow-upd…
chrishenzie Jan 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .prow.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#! /bin/bash -e
# Copyright 2021 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# A Prow job can override these defaults, but this shouldn't be necessary.

Expand Down
54 changes: 54 additions & 0 deletions CHANGELOG/CHANGELOG-4.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Release notes for v4.1.0

# Changelog since v4.0.2

## Changes by Kind

### Feature
- Mock driver: optionally proxy connections instead of handling them directly ([#314](https://github.com/kubernetes-csi/csi-test/pull/314), [@pohly](https://github.com/pohly))
- csi-sanity: clean up sourced volumes prior to deleting sourcing resources ([#297](https://github.com/kubernetes-csi/csi-test/pull/297), [@timoreimann](https://github.com/timoreimann))

### Bug or Regression
- Add kubelet pod and csi plugin directories to mock driver manifest ([#308](https://github.com/kubernetes-csi/csi-test/pull/308), [@msau42](https://github.com/msau42))
- Log output from klog/v2 at higher log levels is now available ([#313](https://github.com/kubernetes-csi/csi-test/pull/313), [@pohly](https://github.com/pohly))
- Mock driver: fix formatting of error message for invalid starting token ([#322](https://github.com/kubernetes-csi/csi-test/pull/322), [@pohly](https://github.com/pohly))
- Updates the mock driver to create the target directory in `NodePublishVolume`, and remove it in `NodeUnpublishVolume`. ([#303](https://github.com/kubernetes-csi/csi-test/pull/303), [@huffmanca](https://github.com/huffmanca))

### Other (Cleanup or Flake)
- Updated dependencies ([#315](https://github.com/kubernetes-csi/csi-test/pull/315), [@pohly](https://github.com/pohly))

## Dependencies

### Added
- github.com/nxadm/tail: [v1.4.5](https://github.com/nxadm/tail/tree/v1.4.5)
- golang.org/x/term: 7de9c90
- golang.org/x/xerrors: 5ec99f8
- google.golang.org/protobuf: v1.25.0
- k8s.io/klog/v2: v2.4.0

### Changed
- github.com/cncf/udpa/go: [269d4d4 → efcf912](https://github.com/cncf/udpa/go/compare/269d4d4...efcf912)
- github.com/envoyproxy/go-control-plane: [v0.9.4 → v0.9.7](https://github.com/envoyproxy/go-control-plane/compare/v0.9.4...v0.9.7)
- github.com/fsnotify/fsnotify: [v1.4.7 → v1.4.9](https://github.com/fsnotify/fsnotify/compare/v1.4.7...v1.4.9)
- github.com/go-logr/logr: [v0.1.0 → v0.3.0](https://github.com/go-logr/logr/compare/v0.1.0...v0.3.0)
- github.com/golang/mock: [v1.3.1 → v1.4.4](https://github.com/golang/mock/compare/v1.3.1...v1.4.4)
- github.com/golang/protobuf: [v1.3.3 → v1.4.3](https://github.com/golang/protobuf/compare/v1.3.3...v1.4.3)
- github.com/google/go-cmp: [v0.2.0 → v0.5.0](https://github.com/google/go-cmp/compare/v0.2.0...v0.5.0)
- github.com/google/uuid: [v1.1.1 → v1.1.2](https://github.com/google/uuid/compare/v1.1.1...v1.1.2)
- github.com/onsi/ginkgo: [v1.10.3 → v1.14.2](https://github.com/onsi/ginkgo/compare/v1.10.3...v1.14.2)
- github.com/onsi/gomega: [v1.7.1 → v1.10.4](https://github.com/onsi/gomega/compare/v1.7.1...v1.10.4)
- github.com/robertkrimen/otto: [c382bd3 → ef014fd](https://github.com/robertkrimen/otto/compare/c382bd3...ef014fd)
- github.com/sirupsen/logrus: [v1.4.2 → v1.7.0](https://github.com/sirupsen/logrus/compare/v1.4.2...v1.7.0)
- github.com/stretchr/objx: [v0.1.1 → v0.1.0](https://github.com/stretchr/objx/compare/v0.1.1...v0.1.0)
- github.com/stretchr/testify: [v1.2.2 → v1.5.1](https://github.com/stretchr/testify/compare/v1.2.2...v1.5.1)
- golang.org/x/crypto: c2843e0 → 75b2880
- golang.org/x/net: 2180aed → ac852fb
- golang.org/x/sys: 4c7a9d0 → d4d67f9
- golang.org/x/text: v0.3.2 → v0.3.4
- google.golang.org/genproto: 6bbd007 → f927205
- google.golang.org/grpc: v1.29.1 → v1.34.0
- gopkg.in/yaml.v2: v2.2.5 → v2.4.0

### Removed
- github.com/konsorten/go-windows-terminal-sequences: [v1.0.2](https://github.com/konsorten/go-windows-terminal-sequences/tree/v1.0.2)
- k8s.io/klog: v1.0.0
30 changes: 30 additions & 0 deletions CHANGELOG/CHANGELOG-4.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Release notes for v4.2.0

*Note:* The mock driver is deprecated and will be removed in the next
release. It gets replaced by the
[csi-driver-host-path](https://github.com/kubernetes-csi/csi-driver-host-path/). Error
injection via JavaScript gets replaced with proxying CSI requests and
[Go callbacks inside E2E
tests](https://github.com/kubernetes/kubernetes/blob/5ad79eae2dcbf33df3b35c48ec993d30fbda46dd/test/e2e/storage/csi_mock_volume.go#L110).

# Changelog since v4.1.0

## Changes by Kind

### Enhancements
- Removal of the CSI nodepublish path by the kubelet is deprecated. This must be done by the CSI plugin according to the CSI spec. ([#338](https://github.com/kubernetes-csi/csi-test/pull/338), [@dobsonj](https://github.com/dobsonj))
- Better error messages in csi-sanity when encountering unexpected gRPC status codes. ([#334](https://github.com/kubernetes-csi/csi-test/pull/334), [@avorima](https://github.com/avorima))

### Uncategorized
- Updated runtime (Go 1.16) and dependencies ([#330](https://github.com/kubernetes-csi/csi-test/pull/330), [@pohly](https://github.com/pohly))

## Dependencies

### Added
_Nothing has changed._

### Changed
_Nothing has changed._

### Removed
_Nothing has changed._
26 changes: 26 additions & 0 deletions CHANGELOG/CHANGELOG-4.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Release notes for v4.3.0

# Changelog since v4.2.0

## Changes by Kind

### Failing Test
- Avoid test failures when a CSI driver advertises the `VOLUME_MOUNT_GROUP` capability from CSI 1.5 ([#349](https://github.com/kubernetes-csi/csi-test/pull/349), [@andyzhangx](https://github.com/andyzhangx))
- Avoid test failures when a CSI driver advertises the `SINGLE_NODE_MULTI_WRITER` capability from CSI 1.5 ([#342](https://github.com/kubernetes-csi/csi-test/pull/342), [@chrishenzie](https://github.com/chrishenzie))

### Other (Cleanup or Flake)
- The mock driver gets removed. https://github.com/kubernetes-csi/csi-driver-host-path should be used instead. ([#351](https://github.com/kubernetes-csi/csi-test/pull/351), [@pohly](https://github.com/pohly))

## Dependencies

### Added
_Nothing has changed._

### Changed
- github.com/container-storage-interface/spec: [v1.3.0 → v1.5.0](https://github.com/container-storage-interface/spec/compare/v1.3.0...v1.5.0)
- github.com/davecgh/go-spew: [v1.1.1 → v1.1.0](https://github.com/davecgh/go-spew/compare/v1.1.1...v1.1.0)

### Removed
- github.com/robertkrimen/otto: [ef014fd](https://github.com/robertkrimen/otto/tree/ef014fd)
- github.com/sirupsen/logrus: [v1.7.0](https://github.com/sirupsen/logrus/tree/v1.7.0)
- gopkg.in/sourcemap.v1: v1.0.5
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ We have full documentation on how to get started contributing here:

- [Contributor License Agreement](https://git.k8s.io/community/CLA.md) Kubernetes projects require that you sign a Contributor License Agreement (CLA) before we can accept your pull requests
- [Kubernetes Contributor Guide](http://git.k8s.io/community/contributors/guide) - Main contributor documentation, or you can just jump directly to the [contributing section](http://git.k8s.io/community/contributors/guide#contributing)
- [Contributor Cheat Sheet](https://git.k8s.io/community/contributors/guide/contributor-cheatsheet.md) - Common resources for existing developers
- [Contributor Cheat Sheet](https://github.com/kubernetes/community/blob/master/contributors/guide/contributor-cheatsheet/README.md) - Common resources for existing developers

## Mentorship

Expand Down
32 changes: 25 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,41 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# This repository builds two commands, mock-driver and csi-sanity,
# but csi-sanity has its own build rules and only mock-driver gets
# published as a container image.
CMDS=mock-driver
# This repository builds one command, csi-sanity, but it has its own build
# rules no image to be published.
CMDS=
all: build build-sanity

include release-tools/build.make

# We have to exclude generic testing of the csi-sanity command because
# the test binary only works in combination with a CSI driver.
# Instead we test with the special ./hack/e2e.sh.
# Instead we test with the special ./hack/e2e.sh and the
# csi-driver-host-path that we build from source.
TEST_GO_FILTER_CMD+=| grep -v /cmd/csi-sanity
.PHONY: test-sanity
test: test-sanity
test-sanity:
test-sanity: bin/hostpathplugin
@ echo; echo "### $@:"
./hack/e2e.sh
if [ $$(id -u) = 0 ]; then \
./hack/e2e.sh; \
else \
sudo ./hack/e2e.sh; \
fi

build-sanity:
$(MAKE) -C cmd/csi-sanity all


TEST_HOSTPATH_VERSION=v1.7.3
TEST_HOSTPATH_SOURCE=bin/hostpath-source
TEST_HOSTPATH_REPO=https://github.com/kubernetes-csi/csi-driver-host-path.git
bin/hostpathplugin:
mkdir -p $(@D)
if ! [ -d $(TEST_HOSTPATH_SOURCE) ]; then \
mkdir -p $(dir $(TEST_HOSTPATH_SOURCE)) && \
git clone $(TEST_HOSTPATH_REPO) $(TEST_HOSTPATH_SOURCE); \
fi
cd $(TEST_HOSTPATH_SOURCE) && git checkout $(TEST_HOSTPATH_VERSION)
make -C $(TEST_HOSTPATH_SOURCE) build
ln -fs $(abspath $(TEST_HOSTPATH_SOURCE))/bin/hostpathplugin $@
8 changes: 4 additions & 4 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
approvers:
- saad-ali
- lpabon
- kubernetes-csi-approvers
- pohly
- msau42
- jsafrane

reviewers:
- kubernetes-csi-reviewers
1 change: 1 addition & 0 deletions OWNERS_ALIASES
19 changes: 2 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[![Build Status](https://travis-ci.org/kubernetes-csi/csi-test.svg?branch=master)](https://travis-ci.org/kubernetes-csi/csi-test)
[![Docker Repository on Quay](https://quay.io/repository/k8scsi/mock-driver/status "Docker Repository on
Quay")](https://quay.io/repository/k8scsi/mock-driver)
[![Build Status](https://k8s-testgrid.appspot.com/sig-storage-csi-other#pull-kubernetes-csi-csi-test)](https://k8s-testgrid.appspot.com/sig-storage-csi-other#pull-kubernetes-csi-csi-test)

# csi-test

Expand All @@ -12,19 +10,6 @@ CO developers can use this framework to create drivers based on the
[Golang mock](https://github.com/golang/mock) framework. Please see
[co_test.go](test/co_test.go) for an example.

### Mock driver for testing

We also provide a container called `quay.io/k8scsi/mock-driver:canary` which can be used as an in-memory mock driver.
It follows the same release cycle as other containers, so the latest release is `quay.io/k8scsi/mock-driver:v0.3.0`.

You will need to setup the environment variable `CSI_ENDPOINT` for the mock driver to know where to create the unix
domain socket.

There is an [example](https://github.com/kubernetes-csi/csi-test/tree/master/mock/example) deployment
for experiment with the mock csi driver.

For more complicated test-cases see [how to use JavaScript hooks from the driver](hooks-howto.md).

## For CSI Driver Tests

To test drivers please take a look at [pkg/sanity](https://github.com/kubernetes-csi/csi-test/tree/master/pkg/sanity).
Expand All @@ -34,7 +19,7 @@ CSI driver.

### Note

* Master is for CSI v1.2.0. Please see the branches for other CSI releases.
* Master is for CSI v1.3.0. Please see the branches for other CSI releases.
* Building has been tested with the Go version specified in release-tools/travis.yml

## Community, discussion, contribution, and support
Expand Down
14 changes: 14 additions & 0 deletions cmd/csi-sanity/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2021 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

APP_NAME := csi-sanity
VER :=$(shell git describe)
RELEASEVER := $(shell git describe --abbrev=0)
Expand Down
8 changes: 7 additions & 1 deletion cmd/csi-sanity/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2017 Luis Pabón luis@portworx.com
Copyright 2021 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -22,6 +22,9 @@ import (
"strings"
"time"

"github.com/onsi/ginkgo"
"k8s.io/klog/v2"

"github.com/kubernetes-csi/csi-test/v4/pkg/sanity"
)

Expand Down Expand Up @@ -78,6 +81,8 @@ func main() {
stringVar(&config.RemoveTargetPathCmd, "removemountpathcmd", "Command to run for target path removal")
stringVar(&config.RemoveStagingPathCmd, "removestagingpathcmd", "Command to run for staging path removal")
durationVar(&config.RemovePathCmdTimeout, "removepathcmdtimeout", "Timeout for the commands to remove target and staging paths, in seconds")
stringVar(&config.CheckPathCmd, "checkpathcmd", "Command to run to check a given path. It must print 'file', 'directory', 'not_found', or 'other' on stdout.")
durationVar(&config.CheckPathCmdTimeout, "checkpathcmdtimeout", "Timeout for the command to check a given path, in seconds")
stringVar(&config.SecretsFile, "secrets", "CSI secrets file")
stringVar(&config.TestVolumeAccessType, "testvolumeaccesstype", "Volume capability access type, valid values are mount or block")
int64Var(&config.TestVolumeSize, "testvolumesize", "Base volume size used for provisioned volumes")
Expand All @@ -101,6 +106,7 @@ func main() {
os.Exit(1)
}

klog.SetOutput(ginkgo.GinkgoWriter)
t := testing{}
sanity.Test(&t, config)
os.Exit(t.result)
Expand Down
10 changes: 0 additions & 10 deletions cmd/mock-driver/Dockerfile

This file was deleted.

Loading