Commit Graph

251 Commits

Author SHA1 Message Date
Xing Yang
d3822a7bc6 Add Change log for v1.1 2019-04-16 16:36:23 -07:00
Kubernetes Prow Robot
c15057c619 Merge pull request #93 from andrewsykim/timeout-fix
add csi timeout flag
2019-04-16 14:09:09 -07:00
Andrew Sy Kim
35d8184c7b set default timeout to 1m
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-04-16 15:15:46 -04:00
Kubernetes Prow Robot
e52077fce4 Merge pull request #113 from jsafrane/add-pr-template
Add PR template
2019-04-16 01:59:11 -07:00
Andrew Kim
6504b48a2e add csi timeout flag for request timeouts to CSI driver 2019-04-15 18:08:15 -04:00
Kubernetes Prow Robot
22a67f3b74 Merge pull request #111 from pohly/prow
Prow testing
2019-04-15 08:04:07 -07:00
Jan Safranek
f7000fe34d Add PR template 2019-04-15 13:43:07 +02:00
Patrick Ohly
7f6e3175af Merge commit '88dc9a47e5aa627fc28179087d8ee1caeb40ecac' into prow 2019-04-12 08:39:14 +02:00
Kubernetes Prow Robot
88dc9a47e5 Merge pull request #17 from pohly/prow
prow.sh: skip sanity testing if component doesn't support it
2019-04-11 13:38:45 -07:00
Patrick Ohly
0fafc663dc prow.sh: skip sanity testing if component doesn't support it
Whether a component supports sanity testing depends on the
component. For example, csi-driver-host-path enables it because it
makes sense there (and only there). Letting the prow.sh script decide
whether it actually runs simplifies the job definitions in test-infra.
2019-04-11 22:32:01 +02:00
Patrick Ohly
85f85cd83f Merge commit 'bcac1c1fb6d791fe54a84716a5fdcccd0987a351' into prow 2019-04-11 16:45:36 +02:00
Kubernetes Prow Robot
bcac1c1fb6 Merge pull request #16 from pohly/prow
prow.sh: update csi-driver-host-path
2019-04-11 07:06:14 -07:00
Patrick Ohly
0b10f6a4b0 prow.sh: update csi-driver-host-path
This pulls in
https://github.com/kubernetes-csi/csi-driver-host-path/pull/37, which
turned out to be necessary for pre-submit testing of the
livenessprobe.
2019-04-11 13:37:43 +02:00
Patrick Ohly
fe433119d3 Merge commit '0c2677e8fecad9bf904fca32b0319068d3eaa186' into prow 2019-04-11 12:04:16 +02:00
Kubernetes Prow Robot
0c2677e8fe Merge pull request #15 from pengzhisun/master
build.make: Replace 'return' to 'exit' to fix shellcheck error
2019-04-11 03:04:14 -07:00
Pengzhi Sun
ff9bce4a71 Replace 'return' to 'exit' to fix shellcheck error 2019-04-11 17:42:44 +08:00
Patrick Ohly
7cb8471e93 Merge commit 'c60f3823c09a501b1cc12b97b20eb05cec9f822e' into prow 2019-04-11 11:08:47 +02:00
Kubernetes Prow Robot
c60f3823c0 Merge pull request #14 from pohly/prow
prow.sh: remove AllAlpha=all, part II
2019-04-10 07:08:16 -07:00
Patrick Ohly
7aaac22571 prow.sh: remove AllAlpha=all, part II
This was already meant to be done earlier in cda2fc5874.
While at it, extend the permanent TODO with guidance on future feature
gates.
2019-04-10 08:44:54 +02:00
Kubernetes Prow Robot
66177736d7 Merge pull request #13 from pohly/prow
prow enhancements
2019-04-09 14:26:46 -07:00
Patrick Ohly
cda2fc5874 prow.sh: avoid AllAlpha=true
It turned out to not work. Instead of reverting the commit which
introduced this, let's better document this explicitly.
2019-04-09 10:48:37 +02:00
Patrick Ohly
546d5504a1 prow.sh: debug failing KinD cluster creation
When KinD fails in a Prow job, we need additional information to
understand why it failed.
2019-04-09 10:48:37 +02:00
Patrick Ohly
9b0d9cd743 build.make: skip shellcheck if Docker is not available
Not all environments have Docker. The simplifying assumption here is
that if the Docker command is available, it's also usable.
2019-04-09 10:48:37 +02:00
Patrick Ohly
aa45a1cd9b prow.sh: more efficient execution of individual tests
When running only some tests, sometimes extra, unnecessarily work was
done, like bringing up the cluster without alpha gates.
2019-04-09 10:48:37 +02:00
Kubernetes Prow Robot
ae656b3dba Merge pull request #110 from xing-yang/unprune_code-generator
Un-prune code-generator scripts
2019-04-08 17:39:04 -07:00
Kubernetes Prow Robot
98e454bc4d Merge pull request #107 from andrewsykim/external-snapshotter-leader-election
Add Leader Election Support
2019-04-08 10:04:27 -07:00
Patrick Ohly
f3d1d2df5c prow.sh: fix hostpath driver version check
The previous logic failed for canary jobs, those also deploy a recent
driver. Instead of guessing what driver gets installed based on job
parameters, check what really runs in the cluster and base the
decision on that.

We only need to maintain this blacklist for 1.0.x until we replace it
with 1.1.0, then this entire hostpath_supports_block can be removed.
2019-04-08 16:39:58 +02:00
Andrew Sy Kim
2e2058d559 update README, examples and RBAC to include leader election 2019-04-08 10:23:31 -04:00
Patrick Ohly
31dfaf31dc prow.sh: fix running of just "alpha" tests
"grep -w" treated "serial-alpha" as two words and therefore
CSI_PROW_TESTS sometimes ran too many tests.
2019-04-08 13:01:32 +02:00
Patrick Ohly
f5014439fc prow.sh: AllAlpha=true for unknown Kubernetes versions
This ensures that also new, currently unknown alpha gates are enabled
when testing against a future Kubernetes versions. For all currently
known Kubernetes versions we just use the minimal set of alpha gates,
which ensures that we don't miss any of them in our documentation.
2019-04-08 13:01:27 +02:00
Patrick Ohly
944be888d8 .prow.sh: enable Prow testing 2019-04-08 11:06:38 +02:00
Xing Yang
33f789c095 Un-prune code-generator scripts
Scripts under code-generator are required to generate code when
snapshot APIs are changed. Therefore they should not be pruned.
2019-04-07 18:56:20 -07:00
Kubernetes Prow Robot
95ae9de9ac Merge pull request #9 from pohly/prow
Prow testing
2019-04-03 14:20:48 -07:00
Andrew Sy Kim
8f69d74514 add leader election support for external snapshotter
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-04-03 15:51:24 -04:00
Andrew Sy Kim
4e3f4a86ec update vendor csi-lib-utils@v0.6.1
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-04-03 15:21:56 -04:00
Patrick Ohly
d87eccb46d prow.sh: switch back to upstream csi-driver-host-path
The temporary fork was merged, we can use the upstream repo again.
2019-04-03 14:59:33 +02:00
Patrick Ohly
6602d38bfb prow.sh: different E2E suite depending on Kubernetes version
Instead of always using the latest E2E tests for all Kubernetes
versions, the plan now is to use the tests that match the Kubernetes
version. However, for 1.13 we have to make an exception because the
suite for that version did not support the necessary
--storage.testdriver parameter.
2019-04-03 13:54:01 +02:00
Patrick Ohly
741319bd30 prow.sh: improve building Kubernetes from source
While switching back and forth between release-1.13 and release-1.14
locally, there was the problem that the local kind image kept using
the wrong kubelet binary despite rebuilding from source. The problem
went away after cleaning the Bazel cache. Exact root cause unknown,
but perhaps using unique tags and properly cleaning the repo helps.

If not, then the unique tags at least will show what the problem is.
2019-04-03 12:42:33 +02:00
Patrick Ohly
29545bb012 prow.sh: take Go version from Kubernetes source
Using the same (recent) Go version for all Kubernetes versions can
break for older versions when there are incompatible changes in Go. To
avoid that, we use exactly the minimum version of Go required for each
Kubernetes version. This is based on the assumption that this
combination was tested successfully.

When building the E2E suite from Kubernetes (the default) we do the
same, but still allow building it from elsewhere.

We allow the Go version to be empty when it doesn't matter.
2019-04-03 12:38:33 +02:00
Patrick Ohly
429581c52d prow.sh: pull Go version from travis.yml
The travis.yml is now the only place where the Go version for the
component itself needs to be configured.
2019-04-02 20:53:12 +02:00
Patrick Ohly
0a0fd49b8b prow.sh: comment clarification 2019-04-02 20:53:08 +02:00
Kubernetes Prow Robot
2069a0af3b Merge pull request #11 from pohly/verify-shellcheck
verify shellcheck
2019-04-02 08:59:18 -07:00
Patrick Ohly
55212ff2b4 initial Prow test job
This enables testing of other repos and of this repo itself inside
Prow. Currently supported is unit testing ("make test") and E2E
testing (either via a local test suite or the Kubernetes E2E test
suite applied to the hostpath driver example deployment).

The script passes shellcheck and uses Prow to verify that for future
PRs.
2019-04-02 09:01:14 +02:00
Patrick Ohly
6c7ba1be0f build.make: integrate shellcheck into "make test"
By default this only tests the scripts inside the "release-tools"
directory, which is useful when making experimental changes to them in
a component that uses csi-release-tools. But a component can also
enable checking for other directories.
2019-04-02 09:01:09 +02:00
Patrick Ohly
b2d25d4f4d verify-shellcheck.sh: make it usable in csi-release-tools
These are the modifications that were necessary to call this outside
of Kubernetes. The support for excluding files from checking gets
removed to simplify the script. It shouldn't be needed, because
linting can be enabled after fixing whatever scripts might fail the
check.
2019-04-02 09:00:48 +02:00
Kubernetes Prow Robot
54a21f108e Merge pull request #97 from andrewsykim/consistent-sidecar
Refactor external snapshotter to use csi-lib-utils/rpc
2019-04-01 13:52:33 -07:00
Andrew Kim
06a4bf2a05 refactor external snapshotter to use csi-lib-utils/rpc 2019-04-01 14:40:11 -04:00
Andrew Kim
c20ded872e update csi-lib-utils to v0.4.0 2019-03-29 21:12:29 -04:00
Kubernetes Prow Robot
3b6af7b1cc Merge pull request #12 from pohly/local-e2e-suite
build.make: avoid unit-testing E2E test suite
2019-03-29 11:46:11 -07:00
Kubernetes Prow Robot
84cca93864 Merge pull request #98 from kastenhq/prebound-fix
Fix for pre-bound snapshot empty source error
2019-03-28 07:06:46 -07:00