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

🌱 Improve ClusterClass watch for ExtensionConfigs #9338

Conversation

killianmuldoon
Copy link
Contributor

@killianmuldoon killianmuldoon commented Aug 29, 2023

Ensure the ClusterClass controller's watch on ExtensionConfigs correctly filters extensions so that only ClusterClasses referencing the config cause reconcile loops.

Fixes #8495

Copy link
Contributor Author

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

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

/area runtime-sdk

@k8s-ci-robot k8s-ci-robot added the do-not-merge/needs-area PR is missing an area label label Aug 29, 2023
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. area/runtime-sdk Issues or PRs related to Runtime SDK cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed do-not-merge/needs-area PR is missing an area label labels Aug 29, 2023
internal/runtime/client/client.go Outdated Show resolved Hide resolved
internal/runtime/client/client.go Outdated Show resolved Hide resolved
internal/runtime/client/client.go Outdated Show resolved Hide resolved
@sbueringer
Copy link
Member

sbueringer commented Sep 1, 2023

Would like to cherry-pick to release-1.5 based on

  • Enhancements or additions to experimental Cluster API features, with the goal of allowing faster adoption and iteration;

/cherry-pick release-1.5

(technically this could also be seen as a bugfix as with a high number of ClusterClasses and ExtensionConfigs we trigger way too many reconciles today)

@k8s-infra-cherrypick-robot

@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.5 in a new PR and assign it to you.

In response to this:

Would like to cherry-pick to release-1.5 based on>

  • Enhancements or additions to experimental Cluster API features, with the goal of allowing faster adoption and iteration;

/cherry-pick release-1.5

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.

@killianmuldoon killianmuldoon force-pushed the pr-extensionconfig-reconcile-speed branch from a756466 to a57ade9 Compare September 1, 2023 11:09
Signed-off-by: killianmuldoon <kmuldoon@vmware.com>
@killianmuldoon killianmuldoon force-pushed the pr-extensionconfig-reconcile-speed branch from a57ade9 to 713fbfa Compare September 1, 2023 11:19
@sbueringer
Copy link
Member

Thx!

Especially for the good test coverage!

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 1, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: d59b055a826a5477cc33b59686d872056ff048bc

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 1, 2023
@sbueringer
Copy link
Member

sbueringer commented Sep 1, 2023

/hold

(just to actually run the affected e2e tests before we merge & cherry-pick)

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 1, 2023
@sbueringer
Copy link
Member

/test pull-cluster-api-e2e-full-main

@k8s-ci-robot
Copy link
Contributor

@killianmuldoon: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-e2e-full-main 713fbfa link false /test pull-cluster-api-e2e-full-main

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@killianmuldoon
Copy link
Contributor Author

Failed the autoscaler test as expected - there's no rush to get this in until we have that fixed though.

@sbueringer
Copy link
Member

Absolutely fine with me. I'm also fine with merging this as it's pretty clear that everything else is green and this PR can't break the autoscaler test further

@killianmuldoon
Copy link
Contributor Author

Let's merge it then - one more piece of WIP off the table

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 1, 2023
@k8s-ci-robot k8s-ci-robot merged commit c29c5f4 into kubernetes-sigs:main Sep 1, 2023
23 of 24 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.6 milestone Sep 1, 2023
@k8s-infra-cherrypick-robot

@sbueringer: new pull request created: #9356

In response to this:

Would like to cherry-pick to release-1.5 based on

  • Enhancements or additions to experimental Cluster API features, with the goal of allowing faster adoption and iteration;

/cherry-pick release-1.5

(technically this could also be seen as a bugfix as with a high number of ClusterClasses and ExtensionConfigs we trigger way too many reconciles today)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/runtime-sdk Issues or PRs related to Runtime SDK cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve ExtensionConfig reconcile performance
4 participants