Commit Graph

1262 Commits

Author SHA1 Message Date
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
Patrick Ohly 104a1ac969 build.make: avoid unit-testing E2E test suite
In repos that have a test/e2e, that test suite should be run
separately because it depends on a running cluster.
2019-03-28 08:40:10 +01:00
Hakan Memisoglu 2fcfc8be28 Improve the logs 2019-03-27 19:48:25 -07:00
Hakan Memisoglu d6c5d512c6 Add test for prebound case 2019-03-27 19:42:46 -07:00
Hakan Memisoglu c424e68cef Fix for pre-bound snapshot empty source error 2019-03-27 19:37:28 -07:00
Kubernetes Prow Robot 76f6d7f475 Merge pull request #105 from msau42/update-vendor
update vendor to k8s 1.14.0
2019-03-27 17:54:42 -07:00
Michelle Au a22a1576a4 update vendor to k8s 1.14.0 2019-03-27 17:00:02 -07:00
Kubernetes Prow Robot 34010e752f Merge pull request #10 from pohly/vendor-check
check vendor directory
2019-03-27 10:44:49 -07:00
Patrick Ohly e6db50df7e check vendor directory
This runs "dep check" to verify that the vendor directory is
up-to-date and meets expectations (= done with dep >= 0.5.0).
2019-03-27 17:47:51 +01:00
Kubernetes Prow Robot 0373243a4c Merge pull request #88 from humblec/klog
Migrate to k8s.io/klog from glog.
2019-03-26 11:01:18 -07:00
Humble Chirammal eb2dd437c1 Migrate to k8s.io/klog from glog.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2019-03-26 19:10:24 +05:30
Patrick Ohly fb13c5198f verify-shellcheck.sh: import from Kubernetes
This is an unmodified copy of kubernetes/hack/verify-shellcheck.sh
revision d5a3db003916b1d33b503ccd2e4897e094d8af77.
2019-03-15 12:28:27 +01:00
Patrick Ohly 94fc1e31d8 build.make: avoid unit-testing E2E test suite
In repos that have a test/e2e, that test suite should be run
separately because it depends on a running cluster.
2019-03-15 11:08:53 +01:00
oleksiys 00a501deb9 Use discovered storageclassName to look up the storage class. 2019-03-14 16:59:28 -07:00
Kubernetes Prow Robot 311f929073 Merge pull request #103 from jsafrane/deprecate-snapshotter
Deprecate --snapshotter option
2019-03-13 20:30:23 -07:00
Kubernetes Prow Robot 29fe5ab384 Merge pull request #101 from jsafrane/use-distroless
Use distroless as base image
2019-03-13 20:28:23 -07:00
Jan Safranek bf768d8cb4 Deprecate --snapshotter option
There is no reason why driver name should not be used as snapshotter name.
It only confuses people and adds unnecessary redundancy.
2019-03-13 17:58:13 +01:00
Kubernetes Prow Robot aae81aa00c Merge pull request #100 from msau42/update-vendor
Remove constraints and update all vendor pkgs
2019-03-12 10:58:39 -07:00
Jan Safranek 63a1e7ee23 Use distroless as base image 2019-03-12 13:20:43 +01:00
Michelle Au bb5f13e6bb Update k8s apis to release-1.14 and update all of vendor 2019-03-11 14:01:03 -07:00
Michelle Au 08e735383b Use events V1 API 2019-03-11 11:17:00 -07:00
Kubernetes Prow Robot 3468ea0dd3 Merge pull request #99 from msau42/update-vendor
add dep prune options and remove unused packages
2019-03-08 17:38:13 -08:00
Michelle Au 8c0accad66 add prune and remove unused packages 2019-03-08 14:54:43 -08:00
Kubernetes Prow Robot 849db0ad23 Merge pull request #8 from pohly/subtree-check-relax
verify-subtree.sh: relax check and ignore old content
2019-03-06 09:22:50 -08:00
Patrick Ohly cc564f929a verify-subtree.sh: relax check and ignore old content
If for whatever reasons a repo already had a `release-tools` directory
before doing a clean import of it with `git subtree`, the check used
to fail because it found those old commits.

This can be fixed by telling `git log` to stop when the directory
disappears from the repo. There has to be a commit with removes the
old content, because otherwise `git subtree add` doesn't work.

Fixes: https://github.com/kubernetes-csi/external-resizer/issues/21
2019-03-06 17:23:07 +01:00
Kubernetes Prow Robot f59b58d164 Merge pull request #92 from andrewsykim/conn-lib
external-snapshotter should use CSI connection lib
2019-02-14 08:59:44 -08:00
Andrew Kim 0da03b3210 external-snapshotter should use CSI connection lib 2019-02-13 22:42:05 -05:00
Andrew Kim 7536845501 update vendor to use csi-lib-utils v0.3.0 2019-02-13 22:37:46 -05:00
Kubernetes Prow Robot 9a34e4ac15 Merge pull request #86 from pohly/release-tools
release tools
2019-02-07 08:07:22 -08:00
Patrick Ohly 4d695978d8 Merge commit '33d58fdc29b90120bf16e536042379251f8631f2' into release-tools 2019-01-25 19:07:33 +01:00
Kubernetes Prow Robot 33d58fdc29 Merge pull request #5 from pohly/test-enhancements
test enhancements
2019-01-25 09:40:59 -08:00
Kubernetes Prow Robot be8a4400a7 Merge pull request #4 from pohly/canary-fix
build.make: fix pushing of "canary" image from master branch
2019-01-25 08:03:02 -08:00
Patrick Ohly b0336b553c build.make: more readable "make test" output
The introduction for each individual test looked like an actual
command:

  test-subtree
  ./release-tools/verify-subtree.sh release-tools
  Directory 'release-tools' contains non-upstream changes:
  ...

It's better to make it look like a shell comment and increase its
visibility with a longer prefix:

  ### test-subtree:
  ./release-tools/verify-subtree.sh release-tools
  ...
2019-01-25 11:53:36 +01:00
Patrick Ohly 09436b9f90 build.make: fix pushing of "canary" image from master branch
After merging into external-attacher, the next Travis CI run did not
push the "canary" image because the check for "canary" only covered
the case where "-canary" is used as
suffix (https://travis-ci.org/kubernetes-csi/external-attacher/builds/484095261).
2019-01-25 11:48:59 +01:00
Patrick Ohly ab241b96fc .gitignore: strip down to the repo-specific suppressions
Maintaining a list of all the temp files used by various editors and
IDEs is cumbersome. Instead of doing that in each repo, developers
contributing to kubernetes-csi should set up a global .gitignore for
their own tools.
2019-01-24 17:37:48 +01:00
Patrick Ohly 054c612f6b release tools
This synchronizes the build rules with other repos and (as part of
that) bumps the Go version to 1.11.1. The recommended formatting
changed slightly in that Go version.
2019-01-24 17:30:10 +01:00
Patrick Ohly ef4420bd96 Add 'release-tools/' from commit '3041b8a4253a568994ae9b193b4433e180152d82'
git-subtree-dir: release-tools
git-subtree-mainline: 1a7947627e
git-subtree-split: 3041b8a425
2019-01-24 17:24:07 +01:00
Patrick Ohly 147892c954 build.make: support suppressing checks
Individual repos may have to filter out certain packages from
testing. For example, in csi-test the cmd/csi-sanity directory
contains a special test that depends on additional parameters that set
the CSI driver to test against.
2019-01-24 16:43:24 +01:00
Patrick Ohly 154e33d434 build.make: clarify usage of "make V=1"
This may or may not work, depending on which packages have tests and
whether they contain glog.
2019-01-24 16:42:23 +01:00
Kubernetes Prow Robot 3041b8a425 Merge pull request #3 from pohly/verify-subtree
check subtree for changes
2019-01-23 13:56:56 -08:00
Patrick Ohly f28c6b60aa test: verify that 'release-tools' subtree is clean
We don't want to allow local modifications in the subtree. Everything
should go to the csi-release-tools repo first.
2019-01-23 14:52:09 +01:00
Patrick Ohly 9132a016e9 test: split up into individual targets, run all
"make test" used to abort after the first test failure. That was
partly intentional: if the simple tests already fail (for example,
because of a syntax error), then there is no point in continuing to
test.

However, it also makes it harder to find all errors in a CI system
when the errors are unrelated (first error shows up, gets fixed, next
error shows up, etc.).

Now "make test" still aborts early, but "make -k test" is used in the
CI and will run all individual tests because they are split up into
different targets.
2019-01-23 14:49:07 +01:00
Patrick Ohly 73db45967f verify-subtree.sh: ensure that there are no local commits
The goal is to enforce that changes get merged upstream first and only
get into the local repo via a normal "git subtree merge".
2019-01-23 14:43:52 +01:00