-
Notifications
You must be signed in to change notification settings - Fork 519
feat: add force parameter to the upgrade command #525
feat: add force parameter to the upgrade command #525
Conversation
Codecov Report
@@ Coverage Diff @@
## master #525 +/- ##
==========================================
+ Coverage 56.69% 57.28% +0.58%
==========================================
Files 91 91
Lines 13905 13938 +33
==========================================
+ Hits 7884 7984 +100
+ Misses 5355 5284 -71
- Partials 666 670 +4 |
This is going in the right direction. The business logic implementation should be focussed on doing actual operations, and should be decomposed in such a way so as to be general and composable. Validation should happen at a higher layer, and should inform particular implementation composition patterns. (As opposed to the validation being statically coupled to the business logic itself.) |
5c84382
to
041ec67
Compare
979dd78
to
22942af
Compare
5ce5995
to
9ea4d0f
Compare
Did an online review with Stephane. To summarize:
|
d54ac7e
to
f39c132
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, one question about unit tests being maintainable with version deprecation in the future
Good point, I considered it but didn't fix it.
For --force, this has no incidence as it should just always pass. for not
--force, the base data we rely on for the test will be changing. The only
way to fix this is to fake the version/valid upgrade table.
Can we add it as a //TODO in the backlog, I can look into it before the end
of the week.
…On Thu, Feb 28, 2019 at 11:10 AM Cecile Robert-Michon < ***@***.***> wrote:
***@***.**** approved this pull request.
lgtm, one question about unit tests being maintainable with version
deprecation in the future
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#525 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATRze-zyLWC_D94eD6XBovoqGwNSDG-ks5vSCm5gaJpZM4a-ksm>
.
|
why not use |
I think there is an easier way : |
c48a758
to
b9c1406
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CecileRobertMichon, serbrech The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
merging manually because windows 1.13 test failure was a flake. |
Is this a request for help?:
No
Is this an ISSUE or FEATURE REQUEST? (choose one):
Feature Proposal
description:
We want to be able to force the upgrade process on a cluster without changing the kubernetes version. This will ensure that all components of the cluster are healthy and using the latest validated version for a given kubernetes version.
proposed cli:
For an existing kubernetes
1.12.5
cluster, we want the following command to go through each nodes of the cluster and "refresh" them if necessary (update to latest valid version).Open questions:
What should the behavior of the
--force
flag be for a usual next k8s version upgrade?Same behavior
What happens for same-version upgrade?
A: Currently, when a node is already on the requested version, the upgrade either fail validation, or the node upgrade ends up being a no-op.
--force
runs the upgrade process on these nodes as wellShould the --force flag allow other arbitrary upgrade (not valid per our
get-versions
matrix)?A : yes, using --force will allow any arbitrary version jump, or even downgrade. You're on your own.
Related
implements #522
Azure/acs-engine#3810