Commit Graph

297 Commits

Author SHA1 Message Date
Leïla MARABESE 9cdc30dfcb refactoring: utils functions to get info from tags 2023-07-12 16:23:25 +02:00
Leïla MARABESE 4a943d8235 refactoring client 2023-06-14 15:15:22 +02:00
Leïla MARABESE f386aebe62 give default region to scaleway client for protokube 2023-03-14 17:47:35 +01:00
Leïla MARABESE 9f950f4a3a scaleway profiles feature 2023-02-10 17:02:45 +01:00
Jesse Haka 3dab0eb807 Use kops-controller to boostrap nodes in OpenStack 2023-01-14 13:54:14 +02:00
Leïla MARABESE 543d59758a removed SCW_DEFAULT_REGION and SCW_DEFAULT_ZONE env vars 2023-01-10 16:11:23 +01:00
Ciprian Hacman 0c88d881a2 openstack: Stop passing cluster tags 2022-12-22 08:08:19 +02:00
Ciprian Hacman 35f12c12b1 azure: Update clients to latest (previous) versions 2022-11-08 19:47:17 +02:00
Leïla MARABESE f155834bf7 protokube is operational 2022-09-28 11:17:05 +02:00
Ole Markus With 9e5b662dde Remove unused hostmount package 2022-08-24 08:39:11 +02:00
ederst 4056da0cce Add config drive as a source for OpenStack instance metadata
This adds the config drive as an additional source for instance metadata
when using OpenStack.
2022-06-22 10:58:05 +02:00
ederst ae03c6e1a0 Fix doc of NewOpenStackCloudProvider 2022-06-22 10:58:05 +02:00
Rémy Léone 656738bc7a add support for varcheck linter 2022-06-16 16:26:57 +02:00
Ciprian Hacman a656804c8b Refactor cloud providers and remove unused code from Protokube 2022-05-28 16:33:46 +03:00
Ciprian Hacman 44fae0a5d9 Fix Protokube gossip flag 2022-05-28 13:11:20 +03:00
Ciprian Hacman 4553d7bab5 Remove unused DNS logic from Protokube 2022-05-28 07:42:21 +03:00
Ciprian Hacman b5f14b589b Add initial support for Hetzner Cloud 2022-05-09 06:12:15 +03:00
Ciprian Hacman bb8bd5ae27 Always set cluster-id flag for Protokube 2022-04-24 18:28:37 +03:00
Ole Markus With ce2e877aeb Remove bazel files from vendor 2022-04-12 13:29:03 +02:00
Ole Markus With 222eaebe35 Remove id var, which is never used beyond that if test 2022-03-26 09:48:51 +01:00
Eng Zer Jun deede3ecd4
test: use `T.TempDir` to create temporary test directory
The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-02-18 16:57:41 +08:00
Kubernetes Prow Robot 7ab4f43500
Merge pull request #12864 from johngmyers/rbn-subnet
Set Resource Based Naming on managed subnets
2021-12-19 21:03:25 -08:00
John Gardiner Myers a0736b3c29 Remove support for Aliyun/Alibaba Cloud 2021-12-11 21:49:13 -08:00
John Gardiner Myers 9f9316a921 Set Resource Based Naming on managed subnets 2021-12-05 17:42:29 -08:00
justinsb 4cf52d0e51 GCE: Support kops-controller, including in gossip mode
We discover the kops-controller in gossip mode using seeding code that
calls into the GCE API, just like gossip itself does.

We refactor the gossip code into a shared gcediscovery library with
minimal dependencies.
2021-12-04 11:51:41 -05:00
Ole Markus With 878bedf232 If RBN, use IPv6 address instead of IPv4
This code seems to only be used for gossip, but it is always run. This fixes IPv6 only networking
2021-12-03 08:57:10 +01:00
Ciprian Hacman ea7df00719 Run hack/update-gofmt.sh 2021-12-01 22:39:50 +02:00
Eng Zer Jun 425173ae9f
refactor: move from io/ioutil to io and os packages
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-11-12 15:37:18 +08:00
justinsb 71264d5fec gossip: Seed /etc/hosts in nodeup
In some scenarios (e.g. cilium), we rely on the internal DNS name
being available, but this isn't the case with gossip clusters.

nodeup can seed /etc/hosts for the control-plane nodes, breaking the
deadlock.
2021-10-19 09:26:07 -04:00
Ciprian Hacman a196e95bfa Fix missing func MountSensitiveWithoutSystemdWithMountFlags 2021-10-05 09:00:54 +03:00
Ole Markus With d1ff1090a3 Update channels before setting labels
This will prevent an old kops-controller pod from being scheduled to the new master.
2021-09-30 15:25:29 +02:00
justinsb 500f85e1f0 protokube: don't try to connect to apiserver if not control-plane
We run protokube on the nodes in gossip mode; however protokube tries
to connect to the apiserver on localhost, and that simply won't work
if running on a node.

This doesn't cause any actual problems beyond logspam, but it's an
easy fix.
2021-09-26 10:05:23 -04: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
John Gardiner Myers 62c4ce4d93 Move bootstrap RBAC from protokube to core bootstrap addon 2021-08-29 12:36:21 -07:00
John Gardiner Myers be8933b577 Remove code for unsupported features 2021-08-28 13:49:55 -07:00
srikiz 6e2bfb038e gazelle updates 2021-08-18 21:21:53 +05:30
srikiz c3996024b6 Minor changes for adding digitalocean plugin for dnsprovider 2021-08-18 21:07:40 +05:30
srikiz b5154bb360 Fix upup cloud.go dependencies based on the new interface spec, also update protokube 2021-05-28 22:37:47 +05:30
Jesse Haka c08721f24d
Update seeds.go 2021-04-24 09:46:05 +03:00
Kubernetes Prow Robot 465a02f45e
Merge pull request #11080 from rifelpet/logging-cleanup
Logging cleanup
2021-04-15 02:51:50 -07:00
Ciprian Hacman 1737925c44 Replace k8s.io/utils/mount with k8s.io/mount-utils 2021-04-14 07:01:43 +03:00
Bharath Vedartham 674ab0ab64 Remove uneccesary nil point checks 2021-03-25 23:48:32 +05:30
Ole Markus With cde6679f35 Ensure protokube can connect to kube-apiserver before starting the sync loop
This commit will have protokube eagerly retry to connect to kube-apiserver instead of the 1 minute sync loop.
Another benefit is that we know that tasks are run in order and that labels are always applied before channels etc
2021-03-21 15:50:24 +01:00
Peter Rifel a97f4fe809
Add darwin bazel outputs for protokube and channels 2021-03-20 20:46:28 -05:00
Peter Rifel e108cd732e
Update rules_go and gazelle 2021-03-20 16:02:51 -05:00
Peter Rifel 14bbcece15
Fix copy/paste typo 2021-03-19 23:28:32 -05:00
Kubernetes Prow Robot 2083133cfc
Merge pull request #11047 from bmelbourne/update-misc-go-mods
Update Go modules to latest versions
2021-03-15 00:11:04 -07:00
Peter Rifel 21389c8276
Cleanup some nodeup & protokube logging
Also log a channels error that we're seeing on flatcar to help with troubleshooting
2021-03-14 21:49:35 -05:00
Barry Melbourne e30bf1cf35 Update Go modules to latest versions 2021-03-14 15:08:27 +00:00
Bharath Vedartham 5a72ef0f94 Remove protokube image references 2021-03-06 00:33:12 +05:30