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
Bharath Vedartham
5cc94d76a6
Move channels exec path to /opt/kops/bin
2021-03-06 00:32:21 +05:30
Barry Melbourne
659bfa0daf
Update Controller Runtime Go module to v0.8.2
2021-02-25 20:34:12 +00:00
Ciprian Hacman
57f6f362d8
Release binaries for protokube and channels
2021-02-16 09:40:01 +02:00
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
Ole Markus With
076ae3dfe4
Remove coredns dnsprovider
2021-01-22 09:19:35 +01: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
Rodrigo Menezes
01842c3d39
protokube - query host by label when setting master tags
2020-12-11 15:14:55 -08:00
Ciprian Hacman
924ab9effa
Update Bazel rules for Go to v0.24.7
2020-11-15 12:32:24 +02:00
John Gardiner Myers
11bebf0b4b
Add label to prevent kops-controller from running on old nodes
2020-09-27 21:44:50 -07:00
Peter Rifel
dd75c1ed91
make apimachinery crds gomod, update-expected.sh
2020-08-24 10:58:09 -05:00
Peter Rifel
4d9f0128a3
Upgrade to klog2
...
This splits up the kubernetes 1.19 PR to make it easier to keep up to date until we get it sorted out.
2020-08-16 20:56:48 -05:00
Kubernetes Prow Robot
96ab8423b1
Merge pull request #9566 from hakman/arm64-images
...
Add ARM64 support for masters
2020-08-14 20:46:17 -07:00
Kubernetes Prow Robot
46ebae1b4e
Merge pull request #9726 from Evalle/ISSUE-9695
...
Add missing cli options for kube-controller-manager and kube-scheduler
2020-08-12 01:01:45 -07:00