-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Take static networking into account when contructing machineDeployment #606
Conversation
@@ -75,15 +67,14 @@ func createMachineDeployment(cluster *kubeoneapi.KubeOneCluster, workerset kubeo | |||
return nil, errors.Wrap(err, "failed to generate machineSpec") | |||
} | |||
|
|||
config := providerSpec{ |
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.
we don't need special providerSpec
struct, we already have everything in put API, we this change introduce using existing structs.
@@ -96,6 +87,12 @@ func createMachineDeployment(cluster *kubeoneapi.KubeOneCluster, workerset kubeo | |||
"workerset": workerset.Name, | |||
} | |||
|
|||
if workerset.Config.Network != nil { | |||
// we have static network config |
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.
static network config is kinda special case and we need to flip those maxSurge
and maxUnavailable
Signed-off-by: Artiom Diomin <[email protected]>
/retest |
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.
/approve
LGTM label has been added. Git tree hash: 66811f22341864fc8b6236f4817492ebb921a6e7
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xmudrii 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 |
What this PR does / why we need it:
We had Network config structures already, but never used them, so this PR fixes this unfortunate incident.