Commit Graph

505 Commits

Author SHA1 Message Date
Kubernetes Prow Robot 28c8f88675
Merge pull request #8880 from justinsb/cleanup_makefile
Makefile: simplify running go-bindata
2020-04-08 22:29:43 -07:00
Justin Santa Barbara 1c0a1417ab Makefile: simplify running go-bindata
Use go run, instead of trying to install and then run.
2020-04-08 23:24:47 -04:00
Peter Rifel b533026c74 dont delete bindata on "make clean"
Now that this is checked into version control we shouldn't be deleting it
2020-04-08 21:51:57 -05:00
Kubernetes Prow Robot 20b94cf18a
Merge pull request #8875 from rifelpet/crd-v1
Update controller-tools and generate v1 CRDs
2020-04-08 18:39:44 -07:00
Rodrigo Menezes 95a391c56a add verify-bindata.sh & separate bindata check and update make commands. 2020-04-08 15:50:51 -07:00
Peter Rifel 10e4fb499a Generate v1 CRDs 2020-04-08 15:21:18 -05:00
Justin Santa Barbara b903724e0f Fix a spelling mistake; regenerate 2020-04-07 22:57:10 -04:00
Rodrigo Menezes 2fe2f4fd81 Don't compress bindata & allow Kops to be imported as a package. 2020-04-07 10:41:55 -04:00
Peter Rifel a0e1672cdc add terraform testing 2020-03-31 14:50:45 -05:00
Peter Rifel 8f8d7afae7 add tests that validate .tf files 2020-03-31 11:51:55 -05:00
John Gardiner Myers b645dac752 Remove support for v1alpha1 and before 2020-03-24 19:49:15 -07:00
Justin SB 632d84f45c
prow-postsubmit: Upload to a consistently named directory
Now that we're building with CI=1, we should upload to the same
version, rather than reconstructing the logic (and in this case, we
weren't matching).
2020-02-17 21:28:04 -05:00
Justin SB 46c8cc6d86 makefile: use more hash helpers when building images
It's cleaner & more consistent.
2020-02-16 13:10:31 -05:00
Justin Santa Barbara b10f7a4252 Update golang to 1.13.8
k/k is using 1.13.6, and it looks like there are some potentially
relevant fixes in .7 and .8 (particularly on unpatched Windows).
2020-02-16 11:33:13 -05:00
Peter Rifel 87ccecf473 Update makefile to reduce dependency on GOPATH
This is one step towards removing the requirement that kops lives in the GOPATH.

* Consolidate the redundant KOPS_ROOT and MAKEDIR variables
* Remove dependency of GOPATH_1ST variable except for `GOPATH_1ST/bin`
* Remove broken check-builds-in-go111 target
* Remove unused KOPS_SERVER_TAG
2020-02-15 19:44:50 -06:00
Kubernetes Prow Robot 27ab22c965
Merge pull request #8566 from justinsb/reproducible_gzip
gzip: use --no-name to avoid saving timestamp
2020-02-14 21:03:28 -08:00
Kubernetes Prow Robot 0e4db376df
Merge pull request #8561 from justinsb/gobindata
Replace unmaintained go-bindata
2020-02-14 20:25:27 -08:00
Justin SB 2586d6da45 gzip: use --no-name to avoid saving timestamp
Another source of non-reproducible builds!
2020-02-14 22:27:07 -05:00
Justin SB 7e2ee13fa1 go-bindata: don't store file metadata
This was a big contributor to the build being non-repeatable.
2020-02-14 22:04:57 -05:00
Justin SB fcd75d5e83 Replace unmaintained go-bindata
k/k uses go-bindata/go-bindata, so that's what we will use as well.
2020-02-14 13:57:29 -05:00
Peter Rifel 56cf8888c3 Only create git tags with the v prefix
The tagging of both formats was cherry-picked back to 1.15 and will be used in 1.16.0 stable.

I think having all 1.16.X and 1.17.X releases tagged with both formats is long enough, so I'm removing the non-prefixed tag for 1.18.0
2020-02-13 10:35:45 -06:00
Justin SB 9b9615bf53 Release 1.18.0-alpha.2 2020-02-05 21:58:08 -05:00
Justin SB 4416b24ee8 Release 1.18.0-alpha.1 2020-01-31 08:22:33 -05:00
Kubernetes Prow Robot ff7d4eb9e2
Merge pull request #8373 from rifelpet/release-semver
Kops releases - prefix git tags with v
2020-01-27 08:53:06 -08:00
Kubernetes Prow Robot 82b3bd5a0f
Merge pull request #8199 from hakman/containerd-tgz
containerd: Add support for tar.gz package
2020-01-26 22:53:02 -08:00
Peter Rifel 93492226fb Prefix git tags with `v`
Go modules require the v prefix [0], and k/k also tags with the v prefix [1]

We have some inconsistent tags already, for 1.11.0 we have tags of both `1.11.0` and `v1.11.0` which is the most recent tag with the prefix.
This is also why 1.11.0 is the default version imported by `go get`:

```
go get -v k8s.io/kops
go: downloading k8s.io/kops v1.11.0
```

and the latest version in `go list`:

```
go list -m -versions k8s.io/kops
k8s.io/kops v1.4.0-alpha.1 v1.4.0 v1.4.1 v1.4.2 v1.4.3 v1.4.4 v1.10.0 v1.11.0
```

I'm proposing we switch to only tagging with the v prefix. I'm only updating the actual git tag and not the entire version string used throughout kops due to its larger impact:

* Output by `kops version`
* Public URLs for kops assets
* Protokube tag

I'm hoping this is the least invasive way we can make this change.
If we think advanced notice is required, we could tag with both formats for a number of releases before tagging only with the v prefix.

[0] https://github.com/golang/go/wiki/Modules#modules
[1] https://github.com/kubernetes/kubernetes/releases/tag/v1.17.0
2020-01-21 07:03:06 -08:00
Kubernetes Prow Robot 0e1f5ba2aa
Merge pull request #8328 from rifelpet/shellcheck
Add shellcheck verification
2020-01-17 04:46:55 -08:00
John Gardiner Myers aa4eebad2d Fix crossbuild-nodeup-in-docker 2020-01-15 20:04:51 -08:00
Peter Rifel 8ff5553130 Add a new verify target and make verify-shellcheck and verify-staticcheck blocking 2020-01-13 22:19:02 -06:00
Peter Rifel f6c647230a Add shellcheck verification
Copied from the k/k repo with some of the utility functions inlined, just like verify-staticcheck.sh.
Once merged I'll add another prow job for it.
2020-01-12 18:47:21 -06:00
Kubernetes Prow Robot 179957d09f
Merge pull request #7824 from rifelpet/kops-server-cleanup
Remove traces of kops-server
2020-01-11 23:13:36 -08:00
Ciprian Hacman 2a6aeaff7c Add support for containerd tar.gz package 2020-01-12 06:53:39 +02:00
Justin SB 9188be3d63 Build dns-controller using bazel
We were previously building it in development using bazel, but then
using go build for the release.  That is risky, better to just use
bazel everywhere.
2020-01-11 15:01:06 -05:00
mikesplain ef21fb0d91
Fix gz path to work on macos 2020-01-03 15:25:21 -05:00
John Gardiner Myers c21f72414a Run Travis verifications in a separate parallel job 2020-01-02 21:30:27 -08:00
Peter Rifel 32d1d6cf65 Remove traces of kops-server 2019-12-26 13:20:32 -06:00
Peter Rifel ef8f07c451 Fix verify-staticcheck prow job
The new job was missing the generated files from go-bindata.

I noticed some of the prow jobs use make and others call hack/ scripts directly.

I think it'd be better to use make so we can more easily add dependencies like this, therefor I'd like to propose that we merge this, update the jobs to call make targets, then remove the make command I added to hack/verify-staticcheck.sh

By fixing the existing job as well as the make target, we can unblock other PRs and not get another swarm of failure notifications when the job gets updated to use make.
2019-12-22 15:03:29 -06:00
John Gardiner Myers 91b0e98a5c Add verify-generate to Travis and 'make ci' 2019-12-06 16:42:30 -08:00
Kubernetes Prow Robot ad19b4e80b
Merge pull request #8045 from johngmyers/goimports-bindata
Fix misleading message in "make ci" when imports formatted incorrectly
2019-12-06 13:06:49 -08:00
Kubernetes Prow Robot ba22bc2d6c
Merge pull request #8024 from johngmyers/travis-bazel
Add more verifications to Travis
2019-12-04 18:32:31 -08:00
John Gardiner Myers a23be7b990 Revert "Run goimports in make ci"
This reverts commit 9c3d59df
2019-12-04 14:18:00 -08:00
John Gardiner Myers 01f170c7da Fix formatting of bindata.go after generation 2019-12-04 14:17:41 -08:00
John Gardiner Myers 7f2ad2eb36 Add more verifications to Travis 2019-11-27 20:25:57 -08:00
Kubernetes Prow Robot de7f7a8d02
Merge pull request #8023 from tioxy/goimports_make_ci
Run goimports in make ci
2019-11-27 16:37:03 -08:00
Gabriel Tiossi 9c3d59df52 Run goimports in make ci
Assure that autogenerated files are properly indented when running make
ci
2019-11-27 19:04:53 -03:00
Peter Rifel 274de31154 Add verify-gomod and verify-goimports to Travis job 2019-11-26 19:04:32 -06:00
Kubernetes Prow Robot 501baf7e56
Merge pull request #7985 from justinsb/release_1_17_0_alpha_1
Release 1.17.0-alpha.1
2019-11-25 19:53:09 -08:00
Justin SB 5561de1432
Release 1.17.0-alpha.1 2019-11-21 14:35:30 -05:00
Peter Rifel 024c8a92d7 Upgrade go to 1.13 2019-11-20 09:44:33 -08:00
mikesplain eb8c454d47
Unhide docs logging. 2019-11-17 11:01:06 -05:00
John Gardiner Myers ca69a57748 Fix fork bomb in Makefile 2019-11-16 11:08:30 -08:00
Justin SB ea779042ca Release 1.16.0-alpha.1 2019-11-08 00:28:53 -05:00
Peter Rifel b29fceed61 Cleanup old dep targets and add bazel check to gomod 2019-10-31 10:14:58 -07:00
Peter Rifel a7ef6143ca Add missing EXTRA_BUILDFLAGS usage in protokube target 2019-10-31 10:14:30 -07:00
Peter Rifel fe2d6b87c4 update check-builds-in-go* targets for more recent versions of go 2019-10-31 10:13:50 -07:00
Peter Rifel 248813a083 Remove workarounds for older versions of go 2019-10-31 10:13:27 -07:00
mikesplain 98af09fbb1
Add netlify file and remove todo 2019-10-25 11:43:31 -04:00
Kubernetes Prow Robot 18cfa5f5b2
Merge pull request #7593 from mikesplain/docs_site_map
Docs cleanup / mkdocs migration
2019-10-25 08:31:40 -07:00
Kubernetes Prow Robot c4245be7b7
Merge pull request #7802 from bittopaz/alicloud
Alicloud: add OSS as upload dest
2019-10-19 15:27:43 -07:00
Kubernetes Prow Robot cee10b2d1e
Merge pull request #7798 from bittopaz/fix-upload
Rename upload command variable in Makefile
2019-10-19 13:37:37 -07:00
Peter Rifel f82faa5c02 Upgrade go version to 1.12.11 2019-10-17 22:51:00 -07:00
Xiaoyu Zhong a719e04a6d Alicloud: add OSS as upload dest 2019-10-16 21:43:26 +08:00
Xiaoyu Zhong fcb6369fd8 Rename upload command variable in Makefile 2019-10-16 11:37:38 +08:00
Justin SB e611f39e48
Upload dns-controller archive, use in KOPS_BASE_URL
Like we recently did with kops-controller, this means we aren't
reliant on pushing a docker container for development.  This should
also fix the e2e tests, which otherwise break whenever we make an
incompatible change to dns-controller.
2019-10-13 08:34:44 -07:00
Kubernetes Prow Robot ff1d94c7cb
Merge pull request #7692 from zetaab/kops_ctrl_openstack
Kops controller support for OpenStack
2019-10-11 09:13:41 -07:00
Erick Fejta 364dbbf2a2 Add a BAZEL_CONFIG Makefile arg to bazel commands 2019-10-07 20:50:40 -07:00
Kubernetes Prow Robot 099d4dc3cd
Merge pull request #7634 from rifelpet/crds-fix
Update controller-tools and CRDs
2019-10-05 14:45:11 -07:00
Peter Rifel 2a004c59a5 Update usage of controller-tools and regenerate CRDs 2019-10-01 17:24:32 -05:00
Justin SB 958c1a0771
bazel: fix hashes rule to generate outputs
So I figured out how to generate the outputs in the correct way so
that we don't need an artificial name; we must construct the outputs
field in the rule using a helper function.
2019-10-01 11:31:09 -04:00
Justin SB 15cd4d1284
Use helpers to move gzip & sha from makefile to bazel
We can move the gzip & sha steps from the makefile to bazel.  This not
only simplifies the makefile, it should enable more parallelism and
better caching.
2019-09-30 13:52:32 -04:00
Justin SB 49258971fc
Publish kops-controller container dump to S3/GCS
We then `docker load` it when using a KOPS_BASE_URL.

This should simplify the development process (particularly once we
also do this for dns-controller; at that point we won't need a
registry at all).

This should also fix the problems in CI, where the kops-controller
image isn't available.  We've been getting away with testing with the
previous version for dns-controller, which changes pretty slowly.  But
that's not a good idea for kops-controller, which is likely to be more
critical and evolve more rapidly.
2019-09-28 22:43:46 -04:00
Justin SB 0f1880295f
kops-controller version should match version of kops
So (counterintuitively) we set it to 1.15.0-alpha.1, because that is the version on the master branch.
2019-09-28 22:23:17 -04:00
Justin SB 622d13b85e
Create tools/sha1 and sha256 helpers, simply Makefile
We can continue to support platforms that have either shasum or
sha1sum / sha256sum.  but we can move that logic to a helper so that
our makefile is simpler, and also so that we can use the same helper
in bazel in future.
2019-09-28 20:02:15 -04:00
Jesse Haka ed8dbc41d0 kops controller support for openstack 2019-09-28 10:06:39 +03:00
Peter Rifel 974a1c6b3c Add verify-staticcheck script mostly copied from kubernetes/hack/verify-staticcheck.sh 2019-09-27 11:58:33 -07:00
Kubernetes Prow Robot 942c8915db
Merge pull request #7496 from justinsb/label_controller
kops-controller
2019-09-27 03:43:35 -07:00
Justin SB 3ccc84dcf8
kops-controller container image
Based on distroless for security / stability
2019-09-25 12:04:36 -04:00
chentanjun d47b4b6534 fix-typo 2019-09-25 21:34:24 +08:00
mikesplain e5fd697283 Add netlify for development 2019-09-19 20:56:29 -04:00
mikesplain 45a8e5a3b8 First pass 2019-09-19 20:56:29 -04:00
mikesplain c5d7293926 Update and fix mkdocs 2019-09-13 14:55:42 -04:00
Justin SB 1e238b2142
When fast-building, copy a newer version of utils.tar.gz
This now includes the sha256 sum that we need going forwards.
2019-09-08 18:00:49 -04:00
Justin SB ee055ffe01
Release 1.15.0-alpha.1 2019-09-08 15:48:40 -04:00
Peter Rifel e38558a8fc Update rules_docker and go 2019-09-03 15:54:01 -07:00
Justin SB e48cf36353
Create verify-gomod script
Wrapper around go mod tidy

Currently doesn't delete from go.sum, which is untidy but expected
behaviour.
2019-08-30 21:17:17 -07:00
Kubernetes Prow Robot a957428446
Merge pull request #7470 from justinsb/update_to_k115
Update to kubernetes 1.15
2019-08-27 10:24:43 -07:00
Justin SB 461e78b4b3
Publish sha256 artifacts for kops itself 2019-08-25 17:28:13 -07:00
Justin SB 1943a3401d
Introduce go modules
This is the automatic translation from Gopkg that go.mod does.
2019-08-25 14:49:06 -04:00
Justin SB 9caea8b265
Add nodeup to shipbot targets for release upload
I had omitted it previously, so it wasn't getting copied to mirrors.
2019-08-22 00:57:20 -04:00
Kashif Saadat 0a32417375 Add verify-goimports to tests and fix the script so it fails correctly 2019-07-03 16:32:45 +01:00
Kubernetes Prow Robot a8e7109129
Merge pull request #7040 from spotinst/feature-spotinst-ocean
Spotinst: New instance group type: Ocean
2019-06-20 12:24:10 -07:00
Kubernetes Prow Robot 55f5cb61dd
Merge pull request #7003 from justinsb/easier_go_test
Simplify `go test` command
2019-06-20 12:23:59 -07:00
liranp 80020052d3
feat(spotinst): new instance group type: ocean 2019-06-03 12:38:46 +03:00
Justin SB f30e8ccb4d
Update go_version to 1.12.5
Upstream change is https://github.com/kubernetes/kubernetes/pull/77528
2019-05-19 22:28:19 +02:00
Justin SB a5b230f25e
Simplify `go test` command
We shouldn't have to explicitly specify packages any more (if we do,
we should exclude them individually).
2019-05-19 22:10:36 +02:00
Justin SB 2c0420312b
Makefile: keep go vet simple
We can now go vet all our packages, go vet excludes vendor since 1.9,
and the clientset is go-vet safe now.
2019-05-19 12:27:23 +02:00
Kubernetes Prow Robot 2bfb36fd0f
Merge pull request #6954 from drekle/makefile_gofmt
Make gofmt fails find usage
2019-05-14 10:35:31 -07:00
Kubernetes Prow Robot c6d392ea39
Merge pull request #6891 from justinsb/use_kubebuilder_to_generate_crds
Generate CRDs for kops API types
2019-05-14 09:33:18 -07:00
Derek Lemon (delemon) 19a5e8955f Adjusting makefile args to find 2019-05-13 08:53:52 -06:00
Justin SB a059c0756c
Simply bazel test using exclude pattern 2019-05-08 01:10:37 -04:00