-
Notifications
You must be signed in to change notification settings - Fork 27
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
Adding a .
as a valid character for Module
s' name.
#969
Conversation
@ybettan: GitHub didn't allow me to request PR reviews from the following users: TomerNewman. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. 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-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ybettan 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 |
✅ Deploy Preview for kubernetes-sigs-kmm ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #969 +/- ##
==========================================
- Coverage 79.09% 72.68% -6.42%
==========================================
Files 51 65 +14
Lines 5109 5762 +653
==========================================
+ Hits 4041 4188 +147
- Misses 882 1395 +513
+ Partials 186 179 -7 ☔ View full report in Codecov by Sentry. |
looks good, but lets add unit-test that verify the new regex |
a45b8fc
to
2f98ec0
Compare
Good catch :) |
23394f2
to
8c28344
Compare
When a `Module` is deleted, the `NMC` controller is removing the labels for this `Module` in the `NMC` object. As long as those labels for a specific module exists, the module's finalizer will not be removed upon module deletion and the module will keep hanging forever if deleted. When a module is created with a `.` in its name, the created label for `NMC` doesn't match the expected regexp for this label and, therefore, not removed upon module's deletion. Adding the `.` will allow the label to match the regexp, be removed upon deletion and deleting the module gracefully. Signed-off-by: Yoni Bettan <[email protected]>
8c28344
to
0b6d54d
Compare
/lgtm |
When a
Module
is deleted, theNMC
controller is removing the labels for thisModule
in theNMC
object.As long as those labels for a specific module exists, the module's finalizer will not be removed upon module deletion and the module will keep hanging forever if deleted.
When a module is created with a
.
in its name, the created label forNMC
doesn't match the expected regexp for this label and, therefore, not removed upon module's deletion.Adding the
.
will allow the label to match the regexp, be removed upon deletion and deleting the module gracefully./assign @yevgeny-shnaidman
/cc @TomerNewman
Fixes #967