Commit Graph

458 Commits

Author SHA1 Message Date
Justin SB 75fd939a62
kube-apiserver: healthcheck via sidecar container
kube-apiserver doesn't expose the healthcheck via a dedicated
endpoint, instead relying on anonyomous-access being enabled.  That
has previously forced us to enable the unauthenticated endpoint on
127.0.0.1:8080.

Instead we now run a small sidecar container, which
proxies /healthz and /readyz requests (only) adding appropriate
authentication using a client certificate.

This will also enable better load balancer checks in future, as these
have previously been hampered by the custom CA certificate.

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2020-05-07 08:06:52 -04:00
Justin SB 27aab12b28 Release 1.18.0-alpha.3 2020-05-06 08:19:06 -04:00
Justin Santa Barbara 635ca60982 Update go to 1.13.9 (continued)
Adding a few places I missed previously.
2020-04-09 10:20:42 -04:00
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