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][fn] Make KubernetesRuntime translate characters in function tenant, namespace, and name during function removal to avoid label errors #19584
Conversation
…d function name characters that are not allowed within Kubernetes labels as part of function removal
The pr had no activity for 30 days, mark with Stale label. |
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, thanks for the contribution!
Closing and reopening to get a new build with a fresh merge commit for master branch in the build. |
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.
good catch! would you mind to add a test case?
Test added.
…On Wed, Apr 5, 2023 at 3:24 AM Nicolò Boschi ***@***.***> wrote:
***@***.**** requested changes on this pull request.
good catch! would you mind to add a test case?
—
Reply to this email directly, view it on GitHub
<#19584 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQ5QVSJOBEJ2NX5I3JWJL4DW7UMZRANCNFSM6AAAAAAVDNP4DI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
…mespace, name translation to k8s labels
b9202f9
to
8084c8f
Compare
Closing and re-opening to trigger a new CI build with changes from master branch. |
@csthomas1 would you mind merging changes from master (or rebasing the changes) and fixing the issues with current master? Kubernetes client version was upgraded from 12.0.1 version to 18.0.0 version in 93fb4f8 . There are minor API changes which need to be addressed.
|
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #19584 +/- ##
=============================================
+ Coverage 33.50% 73.02% +39.52%
- Complexity 12053 31941 +19888
=============================================
Files 1613 1867 +254
Lines 126120 138591 +12471
Branches 13749 15222 +1473
=============================================
+ Hits 42254 101210 +58956
+ Misses 78332 29345 -48987
- Partials 5534 8036 +2502
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Merging... Thank you! |
…ant, namespace, and name during function removal to avoid label errors (#19584) Co-authored-by: tison <wander4096@gmail.com>
…ant, namespace, and name during function removal to avoid label errors (#19584) Co-authored-by: tison <wander4096@gmail.com>
…ant, namespace, and name during function removal to avoid label errors (apache#19584) Co-authored-by: tison <wander4096@gmail.com> (cherry picked from commit 9340d6e) (cherry picked from commit 3a3c6f3)
Make KubernetesRuntime translate tenant, namespace, and function name characters that are not allowed within Kubernetes labels as part of function removal.
Fixes #19583
Motivation
See linked issue ticket.
Modifications
Updated KubernetesRuntime.deleteStatefulSet() to pass function tenant, namespace, and name values through the pre-existing getLabels() function to replace disallowed characters.
Verifying this change
Adds the following test cases:
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: (csthomas1#1)
(All tests passed -- the Flaky tests failure occurs after execution of the tests themselves and appears to be due to a failed CodeCov upload attempt)