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
[YUNIKORN-1369] Shim: Read configuration from configmaps and deprecate legacy configs #480
Conversation
Codecov Report
@@ Coverage Diff @@
## master #480 +/- ##
==========================================
+ Coverage 68.06% 69.30% +1.24%
==========================================
Files 42 42
Lines 7065 7592 +527
==========================================
+ Hits 4809 5262 +453
- Misses 2086 2153 +67
- Partials 170 177 +7
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
e7e082b
to
bcee1e1
Compare
bcee1e1
to
f63cb0d
Compare
case cache.DeletedFinalStateUnknown: | ||
configmap = utils.Convert2ConfigMap(obj) | ||
default: | ||
log.Logger().Debug("unable to convert to configmap") |
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 know it's an unlikely code path but I'd use an Error()
or Warn()
here.
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.
Fair point. I'll update in the next version.
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.
+1 LGTM (pending small change related to logging)
Merged to master, updated Debug() to Warn() as requested. |
What is this PR for?
Read configuration from new ConfigMap entries in addition to legacy values, and deprecate old configuration sources.
[WIP] Based on and depends on from YUNIKORN-1365.
What type of PR is it?
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-1369
How should this be tested?
Screenshots (if appropriate)
Questions: