Commit Graph

99 Commits

Author SHA1 Message Date
Grant Griffiths 003c14b2d4 Add snapshotter CRDs after cluster setup
Signed-off-by: Grant Griffiths <grant@portworx.com>
2019-11-24 11:19:48 -08:00
Kubernetes Prow Robot 4fcafece59
Merge pull request #43 from pohly/system-pod-logging
prow.sh: also log output of system containers
2019-11-05 18:29:01 -08:00
Patrick Ohly f41c1351a3 prow.sh: also log output of system containers
Depending on the error, those logs are needed to debug failures.
2019-11-05 16:40:29 +01:00
Kubernetes Prow Robot ee22a9caa6
Merge pull request #42 from pohly/use-vendor-dir
prow.sh: use vendor directory if available
2019-11-04 09:25:40 -08:00
Patrick Ohly 8067845659 travis.yml: also use vendor directory 2019-11-04 15:40:31 +01:00
Patrick Ohly 23df4aef51 prow.sh: use vendor directory if available
This avoids dependencies on the Go module cache or the upstream code
hosting.
2019-11-04 15:21:49 +01:00
Kubernetes Prow Robot a53bd4c46e
Merge pull request #41 from pohly/go-version
Go version 1.13, helper scripts
2019-10-31 08:27:37 -07:00
Patrick Ohly c8a1c4af93 better handling of Go version
Some operations are sensitive to the version of Go that is used. In
the past, formatting of source differed depending on the
version. Right now it is the content of the vendor directory which
changes when switch back and forth between 1.12 and 1.13.

We don't want to impose a certain workflow on developers, like forcing
all invocations of Go to run inside a container. If developers want
that, they can set up their development environment accordingly.

But we should warn about this aspect to raise awareness. "make"
invocations which involve Go now compare against the projects Go
version (specified in travis.yml) once at the beginning. This is only
a warning because we don't know which future version will be
compatible with the project.

Vendor directory handling gets updated, too: verification is now a
separate script (became too complex for make) and there is a
corresponding "update-vendor.sh". In contrast to verification,
updating vendor is not integrated into make and thus itself invokes
the go version check.
2019-10-31 11:59:34 +01:00
Patrick Ohly 5e773d2db0 update CI to use Go 1.13.3
This is the latest release. Updating is useful to ensure that we have
all of the latest fixes and enhancements.
2019-10-31 08:43:31 +01:00
Kubernetes Prow Robot f419d74545
Merge pull request #40 from msau42/add-1.16
Add new variables for 1.16 and remove 1.13
2019-10-31 00:37:36 -07:00
Michelle Au e0fde8c4f5 Add new variables for 1.16 and remove 1.13 2019-10-30 18:08:41 -07:00
Kubernetes Prow Robot adf00feaaf
Merge pull request #36 from msau42/full-clone
Do full git clones in travis
2019-10-08 14:55:50 -07:00
Michelle Au f1697d2cac Do full git clones in travis. Shallow clones are causing test-subtree
errors when the depth is exactly 50.
2019-10-08 14:45:12 -07:00
Kubernetes Prow Robot 2c81919807
Merge pull request #34 from pohly/go-mod-tidy
update Go mod support
2019-10-08 08:11:15 -07:00
Kubernetes Prow Robot 518d6af6bd
Merge pull request #35 from ddebroy/winbld2
Build Windows only for amd64
2019-10-07 16:47:10 -07:00
Deep Debroy 2d6b3ce85f Build Windows only for amd64
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2019-10-07 16:38:04 -07:00
Patrick Ohly c1078a6585 go-get-kubernetes.sh: automate Kubernetes dependency handling
This script handles the necessary "replace" statements and determines
which packages need to be updated in lockstep.
2019-10-07 14:43:53 +02:00
Patrick Ohly 194289aa8e update Go mod support
It turned out that changes like
https://github.com/kubernetes-csi/csi-lib-utils/pull/33 should better
have been committed after `go mod tidy` because that adds some
indirect dependencies in that example.

The revised `test-vendor` checks for that and (just in case that this
ever becomes desired) allows projects to not have a vendor directory
when using `go mod`.

How to use `go mod` properly gets documented in the README.md, because
there are such pitfalls.
2019-10-04 14:27:41 +02:00
Kubernetes Prow Robot 0affdf95a8
Merge pull request #33 from gnufied/enable-hostpath-expansion
Enable hostpath expansion
2019-09-16 15:42:23 -07:00
Hemant Kumar 6208f6ab47 Enable hostpath expansion 2019-09-16 17:59:04 -04:00
Kubernetes Prow Robot 6ecaa76eb9
Merge pull request #30 from msau42/fix-windows
build windows binaries with .exe suffix
2019-09-06 19:25:18 -07:00
Michelle Au ea2f1b5277 build windows binaries with .exe suffix 2019-09-06 19:15:35 -07:00
Kubernetes Prow Robot 2d3355064a
Merge pull request #29 from mucahitkurt/create-2-node-kind-cluster
Create 2-node kind cluster since topology support is added to hostpath
2019-09-06 17:19:20 -07:00
Mucahit Kurt a8ea8bcc5c create 2-node kind cluster since topology support is added to hostpath driver
Signed-off-by: Mucahit Kurt <mucahitkurt@gmail.com>
2019-09-07 02:31:15 +03:00
Kubernetes Prow Robot df8530d9e3
Merge pull request #27 from pohly/dep-vendor-check
prow.sh: install dep if needed
2019-08-29 07:07:56 -07:00
Patrick Ohly 35ceaedcbd prow.sh: install dep if needed
"make test-vendor" depends on dep if the current project uses
dep. Without it, the vendor directory checking was skipped under Prow.
2019-08-29 15:28:21 +02:00
Kubernetes Prow Robot f85ab5af1e
Merge pull request #26 from ddebroy/windows1
Add rule for building Windows binaries
2019-08-28 07:33:16 -07:00
Deep Debroy 9fba09b414 Add rule for building Windows binaries
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2019-08-28 06:24:26 -07:00
Kubernetes Prow Robot 0400867645
Merge pull request #25 from msau42/fix-master-jobs
Update kind to v0.5.0
2019-08-27 12:23:11 -07:00
Michelle Au dc0a5d8380 Update kind to v0.5.0 2019-08-21 15:19:39 -07:00
Kubernetes Prow Robot aa85b82ca7
Merge pull request #23 from msau42/fix-master-jobs
Fix CI jobs on Kubernetes master
2019-08-09 07:13:26 -07:00
Michelle Au f46191d9a8 Kubernetes master changed the way that releases are tagged, which needed
changes to kind. There are 3 changes made to prow.sh:

1. Use a master commit of kind that includes the fix for Kubernetes
master.
2. Use git clone instead of git checkout (shallow) to source Kubernetes.
This lets kind correctly figure out the Kubernetes release tag.
3. Build kind with make install. The kind fix was not working correctly
when built with go build.
2019-08-08 22:21:41 -07:00
Kubernetes Prow Robot 1cac3af3f5
Merge pull request #22 from msau42/add-1.15-jobs
prow.sh: tag master images with a large version number
2019-07-15 22:57:23 -07:00
Michelle Au 0c0dc300ca prow.sh: tag master images with a large version number 2019-07-15 12:42:20 -07:00
Kubernetes Prow Robot f4f73cefb9
Merge pull request #21 from msau42/add-1.15-jobs
Add 1.15 jobs
2019-07-11 23:53:04 -07:00
Michelle Au 4e31f078a2 Change default hostpath driver name to hostpath.csi.k8s.io 2019-07-11 17:45:28 -07:00
Michelle Au 4b6fa4a0bd Update hostpath version for sidecar testing to v1.2.0-rc2 2019-07-11 17:45:25 -07:00
Michelle Au ecc79187c5 Update kind to v0.4.0. This requires overriding Kubernetes versions
with specific patch versions that kind 0.4.0 supports. Also, feature
gate setting is only supported on 1.15+ due to
kind.sigs.k8s.io/v1alpha3 and kubeadm.k8s.io/v1beta2 dependencies.
2019-07-11 14:49:07 -07:00
Michelle Au a6f21d4054 Add variables for 1.15 2019-07-11 14:33:47 -07:00
Kubernetes Prow Robot db8abb6e1b
Merge pull request #20 from pohly/test-driver-config
more flexible test driver config
2019-07-08 16:02:02 -07:00
Patrick Ohly b2f4e051d4 prow.sh: flexible test driver config
By moving the code into a separate function, other CSI drivers have a
chance to overwrite it. For the hostpath driver itself we need the
ability to set the driver name depending on which revision is getting
installed.
2019-07-08 21:58:53 +02:00
Kubernetes Prow Robot 03999882f6
Merge pull request #19 from pohly/go-mod-vendor
build.make: allow repos to use 'go mod' for vendoring
2019-05-13 12:41:12 -07:00
Patrick Ohly 066143d146 build.make: allow repos to use 'go mod' for vendoring
How a repo does vendoring is detected based on the presence of
Gopkg.toml.

The vendor check with `dep` was all done locally, but the
corresponding check for `go mod` requires network access. The check
therefore gets skipped when running in the Prow CI in situations where
we are sure that it isn't needed (for example, in a periodic job).
2019-05-11 17:07:14 +02:00
Kubernetes Prow Robot 0bee749334
Merge pull request #18 from pohly/go-version
update to Go 1.12.4
2019-04-15 07:44:09 -07:00
Patrick Ohly e157b6b514 update to Go 1.12.4
Kubernetes also requires 1.12. We pick the latest stable release
for CI builds.
2019-04-15 09:45:23 +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
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
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