Commit Graph

658 Commits

Author SHA1 Message Date
Ole Markus With 39defc4d91 Remove all bazel targets from Makefile
Fix comment

Remove bazel artifacts

Remove bazel hacks

Fix kubetest compat copy
2022-04-12 13:28:58 +02:00
Kubernetes Prow Robot 31e7a18323
Merge pull request #13472 from hakman/codegen_output_base
Remove GOPATH dependency for apimachinery
2022-04-10 09:24:07 -07:00
Ole Markus With e90d28dcc2 Fix channels make target 2022-04-10 11:57:00 +02:00
Ole Markus With 90024ac4fc Fix gen-cli-docs target 2022-04-10 10:27:32 +02:00
Ciprian Hacman 9f08eb9b39 Remove GOPATH dependency for apimachinery 2022-04-09 11:28:08 +03:00
Ole Markus With fa26a9b36c Disable CGO and enable trimpath 2022-04-02 12:35:55 +02:00
Kubernetes Prow Robot c16ee961cb
Merge pull request #13437 from olemarkus/fix-cloudbuild-artifacts
Fix upload dir in cloudbuild-artifacts target
2022-03-29 06:00:47 -07:00
Ole Markus With 538136cc00 Fix upload dir in cloudbuild-artifacts target 2022-03-29 14:17:33 +02:00
Ole Markus With 919b691354 Use the correct upload folder for the latest.txt file 2022-03-29 12:43:24 +02:00
Ciprian Hacman 60d9a955c1 Install gsutil if needed
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-03-29 08:46:14 +03:00
Ole Markus With 2b6782e30d Push ko-built images to staging 2022-03-28 13:56:16 +02:00
Kubernetes Prow Robot 47e299e0c1
Merge pull request #13409 from olemarkus/more-cleanup-dist
Use non-bazel builds in kubetest2
2022-03-28 02:07:23 -07:00
Ole Markus With 6fa6c9b63a Reduce the amount of binaries built for CI 2022-03-28 10:21:46 +02:00
Ole Markus With 520283d7b7 dev-upload from upload directory, not bazelupload 2022-03-26 07:19:53 +01:00
Ole Markus With e2fbac6f38 Fix image dist targets 2022-03-24 12:10:08 +01:00
Ole Markus With ca484c9a0d Copy kops binary to expected location 2022-03-24 11:15:18 +01:00
Ole Markus With 289ec6e407 Don't use bazel for testing 2022-03-24 08:19:50 +01:00
Ole Markus With 17919e9fda Clean up the rest of the dev-upload targets 2022-03-23 20:58:08 +01:00
Ole Markus With bf1d6f553c Don't use bazel for dev-upload 2022-03-23 19:09:15 +01:00
Kubernetes Prow Robot f5305792fe
Merge pull request #13404 from olemarkus/channels-protokube-build
Clean up channels and protokube targets
2022-03-23 07:54:12 -07:00
Ole Markus With 6f9ead86cd Clean up channels and protokube targets 2022-03-23 10:50:52 +01:00
Ole Markus With ed9e5b54a7 Use ko-builds for dev-upload 2022-03-23 08:00:41 +01:00
Ole Markus With 5b90e580d0 Clean up crossbuild kops targets
Reuse kops builds in kops-install

Do not force rebuilds

Fix all target

Fix docs target

Add binary name to kops crossbuild targets
2022-03-21 10:31:40 +01:00
Ole Markus With 214f616d73 Build kops-controller with ko
ko install target

Add kops-controller to all

Add ko targets for the rest of the images

Build ko images to IMAGES instead of BAZELIMAGES

Update registry repo
2022-03-21 09:42:59 +01:00
Bronson Mirafuentes e112d81025
Release 1.24.0-alpha.3 (#13372)
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-03-18 21:09:12 -07:00
Kubernetes Prow Robot 930b904e6f
Merge pull request #13392 from olemarkus/remove-pr-target
Remove pr target
2022-03-18 14:15:56 -07:00
Ole Markus With 3382a2fea0 Remove pr target
This target may have done something at some point in time. But not anymore
2022-03-18 19:11:44 +01:00
Kubernetes Prow Robot ee5c74db1c
Merge pull request #13389 from olemarkus/remove-oss-target
Remove oss-upload target since aliyun support has been removed
2022-03-18 01:43:16 -07:00
Ciprian Hacman a4ed2b0654 Migrate to registry.k8s.io
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-03-18 08:47:12 +02:00
Ole Markus With 27ad348105 Remove oss-upload target since aliyun support has been removed 2022-03-18 07:38:21 +01:00
Ole Markus With bb9bb30468 Clean up nodeup targets 2022-03-16 14:09:24 +01:00
John Gardiner Myers d5ac8862d5 Release 1.24.0-alpha.2 2022-01-01 10:35:11 -08:00
Peter Rifel 7cff49ce5c
Remove verify-staticcheck 2021-12-14 07:13:41 -06:00
Robbie Lankford 486592ffd4
add verify-golangci-lint make target 2021-12-12 18:14:17 -06:00
justinsb a87f8da330 bazel: always build with pure (CGO_ENABLED=0)
This makes the build much faster because we don't have to rebuild, and
was our intent anyway.

The binaries affected: kops-controller, dns-controller and kube-apiserver-healthcheck;
all of these should not have CGO dependencies.
2021-12-11 10:11:41 -05:00
Ciprian Hacman f5f35ab755
Release 1.24.0-alpha.1 (#12928) 2021-12-11 00:01:57 -08:00
Ciprian Hacman 473018f64f
Release 1.23.0-beta.1 (#12924) 2021-12-10 22:31:58 -08:00
justinsb 0fd94706d4 Makefile: run codegen using go modules
This no longer carries a (significant) performance penalty, and
simplifies the process greatly.
2021-11-15 10:41:05 -05:00
John Gardiner Myers b582c703fb Add arch specific dev-upload-nodeup targets 2021-11-02 22:02:25 -07:00
John Gardiner Myers 3a97dbaa8d Release 1.23.0-alpha.2 2021-10-31 13:46:07 -07:00
John Gardiner Myers 419592c739 Remove obsolete Makefile rule 2021-10-30 12:57:07 -07:00
justinsb b43afba89a Replace bazel :gofmt target with direct invocation
The rule to run from the workspace is broken by the .bazel-bin change,
but bazel now supports direct invocation.
2021-10-26 08:04:08 -04:00
justinsb 05ae9aa5b4 Use .bazel-bin to help gopls & VSCode
This means that gopls will ignore the bazel-* symlinks, in particular
when using the go LSP plugin (gopls) with VSCode.

Idea from https://bitworking.org/news/2021/06/bazel-and-gopls/
2021-10-26 08:04:06 -04:00
Ciprian Hacman 4da21dc8d9 Rename BAZEL_BIN to BAZEL 2021-10-24 18:25:53 +03:00
John Gardiner Myers 901948d854 Fail if an apimachinery conversion is missing 2021-10-02 16:28:56 -07:00
John Gardiner Myers 29efbe5881 Create v1alpha3 API 2021-09-23 22:27:56 -07:00
Ole Markus With 343e48d3a2 Make channels target phony 2021-09-22 22:52:51 +02:00
John Gardiner Myers 1ea4168cab Release 1.23.0-alpha.1 2021-08-27 21:12:45 -07:00
John Gardiner Myers 8a475a47cd Use static pattern rules to reduce duplication 2021-07-25 09:00:03 -07:00
Ciprian Hacman 4d7ebd343c
Release 1.22.0-alpha.2 (#12012) 2021-07-17 21:42:51 -07:00
John Gardiner Myers 265e57bada Clean up gen-cli-docs 2021-07-13 13:00:26 -07:00
Ciprian Hacman c8860412f0 Add support for darwin/arm64 on the client-side 2021-06-28 10:18:28 +03:00
Ciprian Hacman 1177f66d1e Update k8s dependencies to v1.21.1 2021-06-08 03:17:42 +03:00
Ciprian Hacman d69ac2fe76 Release images bundle instead of separate images 2021-05-20 08:52:03 +03:00
Ciprian Hacman f476f261a7 Verify fitask output 2021-05-11 06:46:59 +03:00
Ciprian Hacman 55d1c9616b Set the output base for fitask 2021-05-11 06:43:16 +03:00
John Gardiner Myers b31baebe2a Verify all versions are set correctly 2021-05-07 21:09:11 -07:00
John Gardiner Myers 3aa8d40052 Release 1.22.0-alpha.1 2021-05-07 13:45:35 -07:00
Ciprian Hacman f3c6558fd0 Release 1.21.0-alpha.3 2021-04-14 09:13:04 +03:00
Justin SB 2b2fe2c584 cloudbuild: capture some hashes
Aiming to create a "chain of trust"; from code to promotion PR.
Ideally we would get the promotion PRs output here, but we can start
by outputing the hashes needed.
2021-03-29 10:02:01 -04:00
Ciprian Hacman fa72535f95 Release 1.21.0-alpha.2 2021-03-22 08:38:47 +02:00
Peter Rifel f36e9a449a
Remove go-bindata 2021-03-20 16:02:09 -05:00
Ciprian Hacman 191bb9502b Install bazelisk before pushing images 2021-03-18 20:08:41 +02:00
Ciprian Hacman 4235fd3835 Update Bazel to v3.5.0 2021-03-18 14:58:09 +02:00
Bharath Vedartham 5a72ef0f94 Remove protokube image references 2021-03-06 00:33:12 +05:30
Barry Melbourne 1a6ff4efbf Update Go to v1.16 2021-03-04 18:41:48 +00:00
Ciprian Hacman 35ea2f49b3 Release 1.21.0-alpha.1 2021-02-16 10:44:34 +02:00
Ciprian Hacman 57f6f362d8 Release binaries for protokube and channels 2021-02-16 09:40:01 +02:00
Ciprian Hacman ede4daf7ce Release 1.20.0-alpha.2 2021-02-08 13:36:48 +02:00
Ciprian Hacman bb787d3075 Release 1.20.0-alpha.1 2021-01-15 15:29:55 +02:00
Peter Rifel 9c6814fb81
Fix default make target
Adding the e2e.mk file changed the default target for `make`

This reverts the behavior back to the original `kops-install`
2021-01-14 15:06:58 -06:00
Peter Rifel 59c312ff5f
Give kubetest2 its own makefile
Use GOOS and GOARCH for running the kops binary

Also try deploying and testing against k8s 1.20.2
2021-01-13 21:59:15 -06:00
Peter Rifel 196e678205
kubetest2 - Add manifest template support
I'm updating the test-e2e make target as I go to make the presubmit job use it but soon I'll work on how we'll actually configure and invoke kubetest2 from our variety of jobs
2021-01-11 21:53:21 -06:00
Peter Rifel 17468d496f
Kubetest2 - use our own tester that wraps kubetest2's ginkgo tester
This allows us to share tester flags (package version and bucket) for downloading kubectl while passing them to the ginkgo tester
2021-01-09 23:44:26 -06:00
Peter Rifel 0ac86d13e3
Support a --kubernetes-version flag that is passed to `kops create cluster` 2021-01-03 19:50:53 -06:00
Barry Melbourne 1c96e826d9 Remove copyright YEAR from generated Go files 2021-01-03 12:48:50 +00:00
Peter Rifel 83eeccc6c0
Use the same package version as that reported by apiserver
kubetest2 doesn't download a kubectl client from the same version being tested, so the mismatch is causing test failures.
Until we can download kubectl we'll use the same minor version as /usr/local/bin/kubectl baked into the prow image
2020-12-31 10:43:50 -06:00
Peter Rifel b72cb37b30
allow ARTIFACTS env var to be overridden in makefile 2020-12-28 12:09:43 -06:00
Peter Rifel 12d399e650
run tests in parallel, matching the existing kubetest parallelism 2020-12-27 14:41:13 -06:00
Peter Rifel a945d54bf5
fix shell expansion in skip-regex 2020-12-27 13:31:17 -06:00
Peter Rifel 38215210c6
Run k/k's e2e suite via new kubetest2 make target 2020-12-27 13:25:27 -06:00
Ole Markus With e269eed197 Bump go-bindata and use go module 2020-12-16 09:27:24 +01:00
Peter Rifel a8a0b6783f
Replace goimports python scripts with shell scripts, remove unnecessary .packages 2020-12-10 21:50:36 -06:00
Peter Rifel c954099355
Remove outdated Makefile comment 2020-12-10 21:47:54 -06:00
Peter Rifel 8bde95df70
Move code-generator to hack go module 2020-12-10 21:47:54 -06:00
Peter Rifel 82e25599f7
Move tools.go into separate go module without vendoring 2020-12-08 23:06:44 -06:00
Ciprian Hacman bfbd4123e7 Rename duplicate ci target to quick-ci 2020-12-07 13:03:52 +02:00
Ciprian Hacman 894ebedc5c Remove dependency on TravisCI 2020-12-04 20:28:23 +02:00
Ciprian Hacman 349c4ee045 Optimize Bazel dev builds by arch 2020-11-24 07:50:26 +02:00
Ciprian Hacman 338fb43f8b Update kOps version after 1.19.0-beta.2 release 2020-11-22 08:10:50 +02:00
Kubernetes Prow Robot 7347d42e57
Merge pull request #10267 from hakman/bazel-optimize
Optimize Bazel builds by os and arch
2020-11-19 18:08:50 -08:00
Ciprian Hacman 2d9d43ab39 Fix multi-arch image pushing 2020-11-19 07:57:30 +02:00
Ciprian Hacman 00bfc585b5 Optimize Bazel builds by os and arch 2020-11-18 23:17:17 +02:00
Kubernetes Prow Robot 42e189605a
Merge pull request #10265 from hakman/docker-manifest
Push multi-arch images
2020-11-18 12:08:06 -08:00
Ciprian Hacman 78c28288a2 Push multi-arch images 2020-11-18 16:52:27 +02:00
Ciprian Hacman 4b51f300ef Fix windows binary path when using Bazel 2020-11-18 12:36:39 +02:00
Ciprian Hacman 924ab9effa Update Bazel rules for Go to v0.24.7 2020-11-15 12:32:24 +02:00
Ciprian Hacman 1fc24b884e Remove Bazel build steps for node-authorizer 2020-11-15 12:09:50 +02:00
Ciprian Hacman 3e8770f763 Update kOps version after 1.19.0-beta.1 release 2020-11-11 10:15:39 +02:00
Peter Rifel b3cdca7908
Add verify-cloudformation script
This is an official AWS linter for cloudformation.
It has already caught a few bugs in our cloudformation json generation logic
2020-10-28 10:09:01 -05:00