-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Initial e2e test for Runtime SDK lifecycle hook #6664
🌱 Initial e2e test for Runtime SDK lifecycle hook #6664
Conversation
22ead4f
to
72e3116
Compare
d076660
to
4cd48ea
Compare
|
||
func checkLifecycleHooks(ctx context.Context, c client.Client, namespace string, clusterName string, hooks map[string]string) error { | ||
configMap := &corev1.ConfigMap{} | ||
configMapName := clusterName + "-hookresponses" |
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.
What we're checking here is that each hook has been called at least once.
We're not checking to see if the hooks are blocking or not, but plan to do that in a future iteration.
4cd48ea
to
275a9e6
Compare
One nit, otherwise lgtm from my side. As commented, we'll extend this test in a follow-up PR to also test the blocking behavior but this PR is already a very good first step /assign @fabriziopandini |
275a9e6
to
262636a
Compare
/lgtm |
/assign @fabriziopandini |
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.
one nit, but optional :-)
/lgtm
Signed-off-by: killianmuldoon <[email protected]> Co-authored-by: ykakarap <[email protected]>
262636a
to
b24f302
Compare
/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
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.
this is neat!
looking forward to seeing this test improved with checks for blocking web hooks!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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 |
/cherry-pick release-1.2 |
@fabriziopandini: once the present PR merges, I will cherry-pick it on top of release-1.2 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@fabriziopandini: new pull request created: #6702 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: killianmuldoon [email protected]
Co-authored-by: ykakarap [email protected]
This PR extends the Cluster upgrade with Runtime SDK end to end test by adding registrations for lifecycle hooks. The handlers record that they've been called to a configMap and the test checks that each of the hooks has been called at least once during the test flow.
Note, BeforeClusterDelete is currently left out pending #6644 , but is simple to add in once that has merged.
Part of #6546