Commit Graph

609 Commits

Author SHA1 Message Date
justinsb e5d5175e08 refactor: isolate asset construction out of cloudup
Continuing the node/infra splitting.
2024-03-28 08:04:46 -04:00
github-actions 8345f89edb Update dependencies 2024-03-23 13:12:51 +00:00
Ciprian Hacman aa49afba9b Update golangci-lint to v1.57.1 2024-03-23 13:54:17 +02:00
github-actions f352eac4ce Update dependencies 2024-03-15 06:04:44 +00:00
github-actions ae7492b2f9 Update dependencies 2024-03-08 06:04:06 +00:00
Ciprian Hacman 6e959ba22f Exclude SC1091 in shellcheck 2024-03-06 06:57:37 +02:00
Ciprian Hacman 951470c6c5 Verify bootstrap script output with shellcheck 2024-03-06 06:23:37 +02:00
Ciprian Hacman 5624055739 Update shellcheck to v0.9.0 2024-03-06 06:23:37 +02:00
github-actions a533e6b923 Update dependencies 2024-03-01 06:04:18 +00:00
justinsb 700974a060 chore: update boilerplate.py to recognize new build tags
Sync up with upstream https://github.com/kubernetes/kubernetes/blob/master/hack/boilerplate/boilerplate.py

We want to pick up the new-style go:build tags.
2024-02-28 12:33:50 -05:00
Ciprian Hacman 5bdd812926 Update Go to v1.22.0 2024-02-11 06:39:29 +02:00
Ciprian Hacman f8ebec5009 azure: Migrate vfs to new SDK version 2024-02-09 05:58:45 +02:00
justinsb 62bab3df38 build: add script for rapid development of kops-controller 2023-11-30 10:44:22 -05:00
Ciprian Hacman 730a520706 Update controller-gen to v0.13.0 2023-10-25 07:31:41 +03:00
Ciprian Hacman 53729a291b Update Go to v1.21.3 2023-10-11 08:05:08 +03:00
justinsb b494ad9a8b helper scripts: update to use python3
This addresses the underlying reason why boilerplate was not being
checked.
2023-07-18 14:08:57 -04:00
justinsb a94924a02f verify-boilerplate: stricter error checking
If python isn't found, without this fix the script exits with code 0,
despite not checking boilerplate.
2023-07-18 13:59:27 -04:00
John Gardiner Myers 0dfac69d83 Remove support for Weave networking 2023-06-22 23:03:24 -07:00
Ciprian Hacman 1d0fbfc4f1 Fix promotion of `kops-utils-cp` 2023-06-19 16:40:40 +03:00
Ciprian Hacman bec7226ad1 Rename `kops-copy` to `kops-utils-cp` 2023-06-16 22:24:51 +03:00
guoguangwu e348c7780d fix: CVE-2023-2253 CVE-2022-41723 2023-06-07 19:56:50 +08:00
Ciprian Hacman f51e347f99 Build and use cp replacement 2023-05-27 05:18:53 +03:00
Kubernetes Prow Robot 543915f00b
Merge pull request #15368 from justinsb/s3_with_no_acls
upload helper: support upload to S3 buckets that block ACLs
2023-05-07 23:55:17 -07:00
justinsb 3425d9dc52 upload helper: support upload to S3 buckets that block ACLs
Similar to GCS with UBLA, S3 is now encouraging buckets that block
ACLs.  When we upload to one of these buckets, we cannot set ACLs.

When we detect one of these buckets, we simply skip setting the ACL,
assuming the object ACLs are instead managed at the bucket level, when
the bucket was created.
2023-05-04 10:15:10 -04:00
justinsb 453e99a4eb hack/update-expected: exclude DIGITALOCEAN_ACCESS_TOKEN
We don't want this env var (which contains the user's digitalocean
access token) to get into the expected output.
2023-05-04 07:49:21 -04:00
justinsb b618866727 makefile: use go run to execute ko
This saves having to install it and worry about execution paths etc.
2023-04-25 21:27:07 -04:00
Ole Markus With a57f754c63 Bump golang to 1.20 2023-04-16 07:48:26 +02:00
Kubernetes Prow Robot b5dc9f6371
Merge pull request #15122 from Mia-Cross/scw_profiles
scaleway: get credentials from Scaleway profile
2023-02-24 07:43:34 -08:00
Leïla MARABESE 9f950f4a3a scaleway profiles feature 2023-02-10 17:02:45 +01:00
Ciprian Hacman f3d1d3a88f Update golangci-lint to v1.51.1 2023-02-09 16:01:15 +02:00
github-actions ffc1efea5d Update dependencies 2023-01-20 06:09:15 +00:00
chncaption 3bd2671fd6 update gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b to 3.0.0 2023-01-18 19:54:52 +08:00
John Gardiner Myers d0632da9ca Rename version.go to kops-version.go 2023-01-13 11:22:30 -08:00
Leïla MARABESE 543d59758a removed SCW_DEFAULT_REGION and SCW_DEFAULT_ZONE env vars 2023-01-10 16:11:23 +01:00
John Gardiner Myers 81c8671d01 Declare IPv6 on AWS beta 2022-11-24 19:27:10 -08:00
John Gardiner Myers e0ee3eda2a Remove CloudFormation tests 2022-11-19 10:25:20 -08:00
Ciprian Hacman c008540b36 Update ko to v0.12.0 2022-11-18 09:42:07 +02:00
Ciprian Hacman acef80cb6b azure: Ignore authentication env vars in hack/update-expected.sh 2022-11-12 10:41:13 +02:00
Rémy Léone eca9f02d97 hack: add support for dev-build script for scaleway 2022-10-26 10:51:51 +02:00
Kubernetes Prow Robot c5b8ee21f6
Merge pull request #14335 from hakman/terraform-1.3.0
Bump Terraform tag to v1.3.0
2022-09-27 06:13:51 -07:00
Leïla MARABESE b562cffd31 added scw env vars to update-expected.sh 2022-09-26 13:55:08 +02:00
Leïla MARABESE 9654cbd1d5 nodeup is operational 2022-09-26 13:55:08 +02:00
Ciprian Hacman f623541879 Bump Terraform tag to v1.3.0 2022-09-26 08:48:43 +03:00
Ole Markus With 7bc8281e54 Bump K8s libs to 0.25.0
This also bumps go mod version to 1.19
2022-08-24 07:17:14 +02:00
justinsb 29b168b9d7 gce: Move out of beta, drop feature flag
GCE support seems stable now, and we have good clarity at the API
level and how that translates to GCP resources, which was our blocker
previously.

Drop the need for the feature-flag.
2022-06-28 11:22:34 -04:00
Kubernetes Prow Robot e638cc853f
Merge pull request #13622 from hakman/packages_docs
Add docs for the packages option
2022-05-09 05:55:19 -07:00
Ciprian Hacman 5c6b1014bf Update kOps and k8s spelling 2022-05-09 06:54:52 +03:00
Ciprian Hacman b5f14b589b Add initial support for Hetzner Cloud 2022-05-09 06:12:15 +03:00
Ole Markus With e58f23d84a Bump k8s.io deps to 1.24.0 2022-05-04 08:30:10 +02:00
Ciprian Hacman b724074d0b Update golangci-lint to v1.45.2 2022-05-01 06:36:04 +03:00
Ole Markus With c9d6186a67 Bump to golang1.18 and k8s deps to 1.24.0-rc.0 2022-04-22 14:11:47 +02:00
Ole Markus With ce2e877aeb Remove bazel files from vendor 2022-04-12 13:29:03 +02:00
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
Ciprian Hacman 9f08eb9b39 Remove GOPATH dependency for apimachinery 2022-04-09 11:28:08 +03:00
Ciprian Hacman 983ba1eea3 Install gcloud instead of gsutil
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-03-29 10:56:22 +03: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 3daa54337c Bump ko 2022-03-24 08:29:33 +01:00
Ciprian Hacman 3da84d4480 Update golangci-lint to v1.45.0
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-03-23 11:38:46 +02: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
Kubernetes Prow Robot 25bcdb2070
Merge pull request #13161 from justinsb/local_testing
dev: create scripts to make it easier to run e2e tests
2022-03-18 02:45: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
justinsb a287f11e0b dev: create scripts to make it easier to run e2e tests
Assumes an existing cluster, but then example usage:

```
./hack/run-e2e-from-source.sh aws.*Pre-provisioned.*ext4
```
2022-01-30 16:51:47 -05:00
John Gardiner Myers 7603f4ca46 Remove temporary restrictions on automatically tagging releases 2022-01-01 13:48:57 -08:00
John Gardiner Myers 8feb75f8e5 Add action for automatically tagging releases 2021-12-23 13:39:20 -08:00
Peter Rifel 7cff49ce5c
Remove verify-staticcheck 2021-12-14 07:13:41 -06:00
Robbie Lankford 221272cee2
add verify-golangci-lint.sh script 2021-12-12 18:14:17 -06:00
Ole Markus With 7b91e5c257 Only shellcheck files 2021-12-11 11:07:49 +01:00
Ciprian Hacman 82512f2c65 Add gofumpt scripts 2021-12-01 22:37:41 +02:00
justinsb b74ad8dade Remove dependencies on k8s.io/code-generator 2021-11-15 10:44:43 -05: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
Peter Rifel 7b4dbd486d
Check for hardcoded partitions in integration tests 2021-10-30 06:42:13 -05: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
Ciprian Hacman 6bd597f372 Convert go.mod files to Go 1.17 2021-10-09 06:27:27 +03:00
Ciprian Hacman 97ecd445a5 Update k8s dependencies to v1.22.2 2021-10-05 08:55:17 +03:00
Ciprian Hacman 895ac428e2 Upgrade cnf-lint to 0.54.2 2021-09-24 15:11:10 +03:00
Peter Rifel d3f657bdc4
Run verify-cloudformation in host network 2021-09-24 06:20:31 -05:00
Ciprian Hacman b1be79800b Use host network when running docker 2021-09-24 11:15:13 +03:00
Peter Rifel db5a1251c9
Upgrade terraform to 1.0.7 2021-09-23 22:49:25 -05:00
Ciprian Hacman 19564888f4 Use "//go:build" lines together with "// +build" lines
The go command now understands //go:build lines and prefers them over // +build lines. The new syntax uses boolean expressions, just like Go, and should be less error-prone. As of this release, the new syntax is fully supported, and all Go files should be updated to have both forms with the same meaning. To aid in migration, gofmt now automatically synchronizes the two forms. For more details on the syntax and migration plan, see https://golang.org/design/draft-gobuild.
2021-09-20 07:35:31 +03:00
Justin SB 1562ce4e8a Script for iterating development on AWS
Somewhat opinionated, but should be an easy and quick way to build for
dev in most cases.
2021-09-18 13:42:14 -04:00
Ciprian Hacman 23dc3508bd Update Bazel to v4.2.1 2021-09-11 15:41:28 +03:00
justinsb 055ef00384 dev: hack/update-expected script should clear KOPS_ARCH
This is another env var that we don't want to be set when generating
test data, or else we generate tests only for the specified
architectures.
2021-09-06 14:45:08 -04:00
Peter Rifel 94bcc3aa57
Update staticcheck to latest 2021-08-30 09:07:29 -05:00
Peter Rifel adf60a266e
Update terraform to 1.0.5 2021-08-24 18:31:08 -05:00
Justin SB 343227cfd4 Script for iterating development on GCE
AWS one to follow!
2021-08-23 08:37:09 -04:00
John Gardiner Myers 832e773324 Update Kubernetes dependencies to 1.22.0 2021-08-04 16:54:07 -07:00
Ciprian Hacman b30890ffdc Update cfn-lint to v1.52.0 2021-07-29 05:40:05 +03:00
Aaron Crickenberger e4ae593554 hack/upload: avoid ACLs for GCS buckets with UBLA enabled 2021-07-14 22:46:07 -07:00
Rui Chen d1146fa157 brew: remove kops.rb
Right now the kops formula is well maintained in the homebrew-core side,
see [the past PRs](https://github.com/Homebrew/homebrew-core/pulls?q=is%3Apr+kops+) and [the latest one](https://github.com/Homebrew/homebrew-core/pull/79634).

Thus removing the kops.rb formula file in favor of
[the homebrew-core one](https://github.com/Homebrew/homebrew-core/blob/master/Formula/kops.rb).

Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-06-19 16:22:26 -04:00
John Gardiner Myers 863c18585e Fix set-version leaving backup files with "-e" suffix 2021-06-04 15:06:54 -07:00
Ciprian Hacman d407c62e5f Always install the latest plugin versions for Terraform tests 2021-05-10 17:02:41 +03:00
Peter Rifel d15168c74a
Update verify-terraform to use 0.15.3
This updates the GPG key according to https://discuss.hashicorp.com/t/hcsec-2021-12-codecov-security-event-and-hashicorp-gpg-key-exposure/23512
2021-05-09 13:57:08 -04:00
John Gardiner Myers b31baebe2a Verify all versions are set correctly 2021-05-07 21:09:11 -07:00
John Gardiner Myers fe1e850cab Simplify use of hack/set-version 2021-05-07 21:09:11 -07:00
Peter Rifel 39072df39c
Update terraform and cloudformation lint versions 2021-04-19 21:38:31 -05:00
Ciprian Hacman 676f442c72 Update k8s dependencies to v1.21.0 2021-04-09 08:09:38 +03:00
Peter Rifel e108cd732e
Update rules_go and gazelle 2021-03-20 16:02:51 -05:00
Peter Rifel f36e9a449a
Remove go-bindata 2021-03-20 16:02:09 -05:00
Peter Rifel 7c900b7fae Generate and upload keys.json + discovery.json to public store
Generate and upload keys.json + discovery.json to public store

Don't enable anonymous auth on publicjwks

Remove tests that won't work using FS VFS anymore
2021-03-19 20:03:26 +01:00
Ciprian Hacman 4235fd3835 Update Bazel to v3.5.0 2021-03-18 14:58:09 +02:00