Commit Graph

57 Commits

Author SHA1 Message Date
Kashif Saadat fcf6f0098c Canal Typha spec and apimachinery 2019-12-06 15:36:48 +00:00
Kubernetes Prow Robot 094fe2a645
Merge pull request #7925 from johngmyers/optimize-validation
Pass the cloud object to validator from caller
2019-12-03 15:40:58 -08:00
Peter Rifel 3dc06afa12 Fix goimports errors
It turns out we werent running verify-goimports in our CI jobs.

While we work to get that enabled, we can at least unblock the releases by doing a one-time fix of the failing goimports
2019-11-19 05:05:02 -08:00
John Gardiner Myers bd4e1277ae Pass the cloud object to validator from caller 2019-11-13 22:19:55 -08:00
John Gardiner Myers 63e0c5e726 Add tests for cluster validation during rolling update 2019-11-04 16:26:39 -08:00
mikesplain 9e55b8230a Update copyright notices
Also cleans some white spaces
2019-09-09 14:47:51 -04:00
Justin SB 96aa37d03d
Remove unused ClientGetter from Drain code
This is no longer needed now we are using the k8s drain code.
2019-09-03 07:04:37 -07:00
Justin SB b1f8f84306
Code changes for 1.15 2019-08-25 16:00:39 -04:00
Justin SB 9df2e4bbfb
Speed up rolling-update - longer timeout on validation, less scheduled holds
We reduce the amount of time we wait on a purely scheduled basis
during a rolling-update, and instead increase the timeout on the
validation.

This will be a behavioural change - particularly for `--cloudonly`
mode, but that mode seems more useful when things are going wrong
anyway, when people will likely set _even lower_ timeouts.
2019-05-16 03:37:35 -07: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
Derek Lemon -T (delemon - AEROTEK INC at Cisco) 4f0169bb79 codegen 2019-01-16 09:30:40 -07:00
Kubernetes Prow Robot 7a629c7743
Merge pull request #5932 from rdrgmnzs/deps_for_1_12
Update to k8s 1.12 libraries
2018-12-20 15:42:36 -08:00
Peter Rifel f66a2abc40 Add --post-drain-delay to rolling-update cluster command 2018-12-14 21:09:55 -08:00
Rodrigo Menezes 926a14fbd7 Let a user specify the validation timeout when rotating a cluster. 2018-12-08 14:54:30 -08:00
Rodrigo Menezes 2b9243ff8c Getting things ready for when we are ready for 1.12 2018-12-04 18:50:17 -08:00
Rodrigo Menezes ac38ecde6e fix typos 2018-10-03 16:04:36 -07:00
Justin Santa Barbara 62e8e17077 Code fixes for k8s 1.11 API changes 2018-09-28 20:14:45 -04:00
Ripta Pasay 217136039d Load client-auth plugins
Without this change, for example, kops connections using OIDC to the
cluster will receive this error message:

> cannot build kube client for "$CLUSTER_NAME": No Auth Provider found
> for name "oidc"

kubernetes/client-go#345 suggests importing the package path
`plugin/pkg/client/auth/oidc` from `client-go`, but looking at the code
`plugin/pkg/client/auth` will actually handle loading all known auth
plugins for us.
2018-07-25 22:36:21 +00:00
Kashif Saadat 7b5cb2dc33 Update rolling update ig roles flag to be case insensitive 2018-06-27 10:26:48 +01:00
Justin Santa Barbara ffd57062aa Allow rolling-update to filter on roles
This is important for the e2e upgrade tests
2018-05-09 12:00:12 -04:00
Justin Santa Barbara 55e3a5f212 Validation: Take a cluster object, not just the name 2018-03-20 01:12:07 -04:00
chrislovecnm 71c8fa4b3a Updating variables to use Camel Case
I am fixing the work where I used snake case variables instead of camel
case.  Go likes camel case much better.  This commit is only a refactor
of names.
2018-02-19 20:57:58 -07:00
Todd Lyons 40eed60dd8 Interactive cli arg framework
Just builds, haven't tested yet.
2017-12-28 10:54:17 -08:00
chrislovecnm a25b5d7364 adding -y to various commands that use --yes. kops create,
rolling-update and update now include -y.
2017-11-05 17:33:24 -07: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 3478031533 API types changed package 2017-10-01 14:03:56 -04:00
Justin Santa Barbara 0c89c9851e Simple code updates for 1.8 breakages 2017-10-01 13:17:40 -04:00
Justin Santa Barbara 8280c4f9d3 Remove MarkIsReady function, calculate on demand
Avoids setting the trap of failing to call MarkIsReady
2017-09-30 17:39:53 -04:00
chrislovecnm a431eb3e43 refactoring to use cloud based GetGroups 2017-09-29 12:29:07 -06:00
John Laswell a6dbc73502
docs updates to clarify and fix typos
Helps with https://github.com/kubernetes/kops/issues/3441.
2017-09-26 19:50:38 -04:00
chrislovecnm ec2f0dfdf3 reusing the node and master duration for validation periods 2017-09-23 18:11:48 -06:00
Justin Santa Barbara 69e3d760f4 Misc go vet fixes 2017-08-29 09:55:40 -04:00
Justin Santa Barbara 6d2185a6cd Fix space in rolling-update cluster help
When we use pretty.Bash, we must use pretty.LongDesc to stop the spacing
being mangled.
2017-08-26 07:39:17 -04:00
Frederik Nordahl Jul Sabroe 76cec3940c Fix for the instructions about using KOPS_FEATURE_FLAGS for drain and validate. 2017-07-20 16:19:24 +02: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
Giancarlo Rubio 44ea396832 review rolling-update command
export var KOPS_FEATURE_FLAGS in the docs
2017-05-15 16:26:14 +02:00
chrislovecnm 53848f1f7f Work on cli documentation 2017-05-07 21:03:29 -06:00
William Broach 1b70378a10 removing backticks, they broke the build 2017-04-23 12:12:27 -04:00
William Broach 75c782efdf Specified that the commands need to be ran all in the same dir 2017-04-23 11:53:12 -04:00
William Broach 3e3eb2ceba Note code for rollingupdate for terraform users 2017-04-22 17:49:15 -04:00
chrislovecnm 93c7784e62 typo 2017-04-22 12:56:37 -06:00
Justin Santa Barbara 0ac9b21797 rolling-update: if filtering IGs, don't warn if IG not found
Fix #2000
2017-04-07 23:43:53 -04:00
Carlos Alexandro Becker 655e34dfd4 typo on rollingupdatecluster 2017-04-06 17:48:30 -03:00
Justin Santa Barbara cb4641fea3 Code updates 2017-03-16 02:40:50 -04:00
chrislovecnm 04a3637b38 fixes in drain and code format 2017-03-01 14:01:51 -07:00
chrislovecnm 286455a608 Validate and drain with rolling update set via new feature flag DrainAndValidateRollingUpdate 2017-03-01 11:40:30 -07:00
Justin Santa Barbara 32081f3ca6 Reuse k8s drain code
This depends on https://github.com/kubernetes/kubernetes/pull/42115
2017-03-01 11:39:57 -07:00
chrislovecnm da763ea1e5 More PR review changes, improving drain, and fixing a couple bugs 2017-03-01 11:39:56 -07:00