Justin SB
728e582360
Fill out kops controller functionality
...
k8s 1.16 requires that we move label setting away from the kubelet, to
a central controller. kops-controller is that controller.
2019-09-25 12:04:34 -04:00
mikesplain
9e55b8230a
Update copyright notices
...
Also cleans some white spaces
2019-09-09 14:47:51 -04:00
Justin SB
8b02cf14ca
DeleteLocalData on drain
...
This restores the kops behaviour before the refactor, where pods using
emptyDir would not block the rolling update.
2019-09-03 07:07:44 -07:00
Kubernetes Prow Robot
a957428446
Merge pull request #7470 from justinsb/update_to_k115
...
Update to kubernetes 1.15
2019-08-27 10:24:43 -07:00
Justin SB
b1f8f84306
Code changes for 1.15
2019-08-25 16:00:39 -04:00
Jesse Haka
b581e7a305
print all failures
2019-08-23 16:06:37 +03:00
Justin SB
3e33ac7682
Change code from glog to klog
...
We don't call klog.InitFlags yet, because that will cause a flag
redefinition error until we get everyone to stop using glog. That
will happen when we update to k8s 1.13.
2019-05-06 12:54:51 -04:00
Justin SB
78ebe93f9f
Update kubernetes dependencies to 1.13.5
...
Notable changes:
* openapi-gen moved to k8s.io/kube-openapi/cmd/openapi-gen
* templates moved to k8s.io/kubernetes/pkg/kubectl/util/templates
2019-05-06 09:58:37 -04:00
Rodrigo Menezes
2b9243ff8c
Getting things ready for when we are ready for 1.12
2018-12-04 18:50:17 -08:00
mikeweiwei
027d324aaf
If don't use formatted output,fix logging calls
2018-10-10 19:19:09 +08:00
Bheesham Persaud
65e9a86b39
Fix minor typo.
2018-09-29 02:18:40 -04:00
Justin Santa Barbara
62e8e17077
Code fixes for k8s 1.11 API changes
2018-09-28 20:14:45 -04:00
Justin Santa Barbara
e982087e3e
Delete nodes from k8s api during rolling-update
...
This prevents a race where if the new node comes back with the same
name, it will still be cordoned. This seems to be more likely on GCE.
2018-09-22 16:06:07 -04:00
Mikulas Dite
525c0a9bc8
fix rolling-update prompt when nodeName is unset
...
Updated to use same logic as DeleteInstance does: print at least the host id
as that is always available and only include node name if set.
2018-08-16 16:12:17 +02:00
Mikulas Dite
eab3a7824e
fix cloudonly rolling-update ignores interactive
2018-08-16 16:12:17 +02:00
Deniz Zoeteman
84796eac0b
Fail cluster validation for rolling-update if a failure occurs
2018-07-14 21:41:10 +02:00
Eric Herot
2090479da5
Let people know that stopping an instance can sometimes take a while
2018-06-13 18:21:24 -04:00
Eric Herot
0e47086ff5
Communicate that we're going to wait for stabilization after draining
...
The wait for this is very long (90s) by default, which is long enough that many users may assume things are hanging if we don't say what they're waiting for.
2018-06-13 18:18:23 -04:00
Rajat Jindal
3961d85e44
set GracePeriodSeconds to -1
2018-05-10 18:33:54 -07:00
Haoyun
1b8c222026
fix a grammar mistake
...
fix a grammar mistake
2018-03-28 12:31:10 +08:00
Justin Santa Barbara
55e3a5f212
Validation: Take a cluster object, not just the name
2018-03-20 01:12:07 -04:00
AdamDang
12183af654
Update instancegroups.go
...
Line 340: “Delete and CloudInstanceGroups”
It should be “Delete a CloudInstanceGroups”, is it?
2018-03-15 19:01:11 +08:00
Kashif Saadat
670f8e6b19
Fix drain command for rolling-updates
2018-02-05 16:30:45 +00:00
Todd Lyons
5c1b646896
Maintainer recommended code/style updates
2018-01-18 22:22:34 -08:00
Todd Lyons
7f7306d4f9
Lint fixes by make gofmt
2017-12-28 15:42:53 -08:00
Todd Lyons
73b29b68e6
User input to continue/abort rolling update
2017-12-28 14:57:28 -08:00
Todd Lyons
2f0d888d18
Remove useless line
2017-12-28 11:00:55 -08:00
Todd Lyons
40eed60dd8
Interactive cli arg framework
...
Just builds, haven't tested yet.
2017-12-28 10:54:17 -08:00
Nico Piderman
69519f558b
Spelling fix in instancegroups.go error msg
2017-12-07 10:08:15 -05:00
Justin Santa Barbara
eec1141a41
Rationalize timeouts for rolling-update
...
The intervals remain the minimum time between instances; drain &
validate time is additional.
2017-10-17 11:44:46 -04:00
Justin Santa Barbara
737f2fcd80
rolling-update - initial GCE support
2017-10-02 23:07:35 -04:00
Justin Santa Barbara
abd48ee653
Name CloudInstanceGroupMember consistently
...
Keep the naming of the type consistent.
2017-09-30 17:39:53 -04:00
chrislovecnm
a431eb3e43
refactoring to use cloud based GetGroups
2017-09-29 12:29:07 -06:00
chrislovecnm
2f12a3e521
refactoring delete into its own file
2017-09-28 15:52:50 -06:00
chrislovecnm
93f3600f36
adding aws_cloud instancegroups delete and get methods
2017-09-28 15:52:50 -06:00
chrislovecnm
ec2f0dfdf3
reusing the node and master duration for validation periods
2017-09-23 18:11:48 -06:00
Lars Lehtonen
1da7d66fd1
fixed swallowed errors under pkg subdirectory.
2017-07-15 13:49:17 -07:00
Justin Santa Barbara
e945322cab
Support generated clientset as alternative to vfs clientset
...
We modelled our VFS clientset (for API objects backed by a VFS path)
after the "real" clientsets, so now it is relatively easy to add a
second implementation that will be backed by a real clientset.
The snafu here is that we weren't really using namespaces previously.
Namespaces do seem to be the primary RBAC scoping mechanism though, so
we start using them with the real clientset.
The namespace is currently inferred from the cluster name. We map dots
to dashes, because of namespace limitations, which could yield
collisions, but we'll deal with this by simply preventing users from
creating conflicting cluster names - i.e. you simply won't be able to
create a.b.example.com and a-b.example.com
2017-06-20 22:29:37 -04:00
andrewsykim
e8c99ee72e
removes cluster delete code in upup/pkg/kutil duplicated in pkg/resources and puts instancegroup and rollingupdate code into its own packges
2017-06-10 15:21:06 -04:00