Skip to content
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

chore: bump controller-runtime #533

Merged
merged 1 commit into from Sep 26, 2023

Conversation

jvanz
Copy link
Member

@jvanz jvanz commented Sep 22, 2023

Description

Bumps the controller-runtime dependency in use to v0.16.2. This required change in how we configure the controllers manager.

Related to kubewarden/audit-scanner#39

Test

make test

Additional Information

This PR need to be updated and merged after merging the PR updating the kube-webhook-wrapper.

@jvanz jvanz self-assigned this Sep 22, 2023
@jvanz jvanz force-pushed the controller-runtime-update branch 3 times, most recently from 5896c1a to 8d5cede Compare September 22, 2023 19:02
@jvanz jvanz marked this pull request as ready for review September 25, 2023 18:30
@jvanz jvanz requested a review from a team as a code owner September 25, 2023 18:30
@jvanz
Copy link
Member Author

jvanz commented Sep 25, 2023

This PR passed all the e2e tests.

NOTE: This PR should be merged after this one in order to allow run the controller on development environment.

@@ -172,7 +171,7 @@ func (r *PolicyServerReconciler) SetupWithManager(mgr ctrl.Manager) error {
},
}
})).
Watches(&source.Kind{Type: &policiesv1.ClusterAdmissionPolicy{}}, handler.EnqueueRequestsFromMapFunc(func(object client.Object) []reconcile.Request {
Watches(&policiesv1.ClusterAdmissionPolicy{}, handler.EnqueueRequestsFromMapFunc(func(ctx context.Context, object client.Object) []reconcile.Request {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have been trying to understand from where these contexts come now, as they now seem to come from the Controller. Particularly, I am wondering on what happens if they timeout, as we could stop processing request through the webhook correctly and lock the cluster.

I have only come by this: kubernetes-sigs/controller-runtime#1334.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just in case, on the daily we agreed that this question should not block the merge.

Copy link
Member

@viccuad viccuad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just 1 question about the new context usage.

Copy link
Member

@flavio flavio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the hard work!

Copy link
Contributor

@fabriziosestito fabriziosestito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM

Bumps the controller-runtime dependency in use to v0.16.2. This required
change in how we configure the controllers manager.

Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
@jvanz jvanz merged commit 94c8d9b into kubewarden:main Sep 26, 2023
7 checks passed
@jvanz jvanz deleted the controller-runtime-update branch September 26, 2023 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants