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
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
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
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
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
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
5cc94d76a6
Move channels exec path to /opt/kops/bin
2021-03-06 00:32:21 +05:30
Ole Markus With
783b6c0d6c
Make protokube CP label setting consistent with kops-controller
2021-02-12 08:17:14 +01:00
Jesse Haka
41d04d8d4b
add user agent to openstack api requests
2021-02-04 23:04:06 +02:00
Justin SB
8d77f24b96
protokube: Remove unused ExecuteTemplate function
...
This eliminates some unused code.
2021-01-22 10:37:30 -05:00
Barry Melbourne
f2ecb5c153
Upgrade Go v1.15.6 / Bazel v3.4.1
2021-01-10 18:13:12 +00:00
Barry Melbourne
1c96e826d9
Remove copyright YEAR from generated Go files
2021-01-03 12:48:50 +00:00
Kenji Kaneda
a61caea8d2
Add Azure support
...
This commit contains all changes required to support Azure
(https://github.com/kubernetes/kops/issues/3957 ).
2020-12-21 08:27:54 -08:00