-
Notifications
You must be signed in to change notification settings - Fork 107
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
fix: dynamic clusters sometimes encounter a finalizer mismatch #2145
fix: dynamic clusters sometimes encounter a finalizer mismatch #2145
Conversation
Welcome @jlowe64! |
Hi @jlowe64. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Thank you for the PR @jlowe64! Do you mind signing the CLA? |
I did this earlier, I was just waiting on someone from my team to tell me how our company handles open source contributions! Thank you. Also, could you please hold off on approving the automated tests (I believe you have to approve them), I need to push to my fork cause I'm doing testing on a linux workstation and need to commit in order to run tests. I'll poke you on here when I want the tests to be run. I don't want to waste your resources when I am fixing issues from the tests! |
/ok-to-test |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2145 +/- ##
==========================================
- Coverage 45.50% 40.99% -4.51%
==========================================
Files 79 108 +29
Lines 7782 15583 +7801
==========================================
+ Hits 3541 6389 +2848
- Misses 4099 8724 +4625
- Partials 142 470 +328 |
I'm not ready to merge this, I need to look at it some more. |
internal/pkg/util/nodeutils.go
Outdated
return true, nil | ||
} | ||
|
||
func StringInSlice(list []string, str string) bool { |
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.
I think there is an util.Contains
function already for this.
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.
@ccojocar I am doing something slightly different in that I'm not looking for an equality of strings, but rather if a substring is contained within a string. I looked at your function and I've matched the naming convention of what you have for util.Contains
, by calling it util.ContainsSubstring
.
@@ -0,0 +1,106 @@ | |||
/* | |||
Copyright 2020 The Kubernetes Authors. |
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.
Copyright 2020 The Kubernetes Authors. | |
Copyright 2024 The Kubernetes Authors. |
Adding label 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-sigs/prow repository. |
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, it looks good!
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.
Is this still WIP
@jlowe64 ?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ccojocar, jlowe64, saschagrunert 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 |
I have just removed the WIP tag. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR attempts to fix an issue with dynamically scaling clusters, such as ones using Karpenter, where the number of nodes can remain the same while the contents of the profile's finalizers may differ. This will result in not being able to manage the profile without interacting with the finalizers directly.
Which issue(s) this PR fixes:
None
Does this PR have test?
N/A
Special notes for your reviewer:
Does this PR introduce a user-facing change?
NONE