-
Notifications
You must be signed in to change notification settings - Fork 122
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
Ensure cleanup of IT resources and processes #968
base: master
Are you sure you want to change the base?
Conversation
@takoverflow Thank you for your contribution. |
f348656
to
168f440
Compare
168f440
to
d882cc1
Compare
d882cc1
to
ec244f6
Compare
ec244f6
to
a9d56d6
Compare
Iterates through a list of known processes for MC and MCM started by the test suite and ensures they are terminated by calling `Kill()` on them to prevent un-necessary failures due to "socket being used" by the leftover processes.
a9d56d6
to
663c421
Compare
pkg/controller/machine_safety.go
Outdated
@@ -330,6 +330,7 @@ func (c *controller) freezeMachineSetAndDeployment(ctx context.Context, machineS | |||
} | |||
} | |||
|
|||
c.recorder.Eventf(machineSet, "Normal", "FrozeMachineSet", "SafetyController: Froze MachineSet %s due to replica overshooting", machineSet.Name) |
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.
Could you please make constants for this FrozeMachineSet
? We have done this inconsistenly, See controller.emitRollbackNormalEven
. But let us clean up the places instead ofusing literal strings. Also we should use corev1.EventTypeNormal
Name: "aws", | ||
}, | ||
}, | ||
}, | ||
expect: field.ErrorList{}, | ||
}), | ||
) | ||
DescribeTable("#machine validation fails with no class name", |
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.
thanks for additional missing test
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.
Adding a release note mentioning the cleanup should be OK.
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.
Please confirm that IT tests with these changes have been executed with at-least one real provider. Ex: machine-controller-manager-provider-aws
Only minor changes needed. Request merge after that, so one can leverage this PR for local IT against virtual provider for testing.
Pipeline IT targeting this PR ran successfully: AWS concourse #87 |
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #789
Special notes for your reviewer:
Release note: