Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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-2651]Update the unchecked error for make lint warnings #850
[YUNIKORN-2651]Update the unchecked error for make lint warnings #850
Changes from 9 commits
be9d1b3
92c2099
55a6080
7e48f93
5c1b506
f7478de
df82ab6
0113fff
30f7429
e6b78bb
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 123 in pkg/admission/conf/am_conf.go
Codecov / codecov/patch
pkg/admission/conf/am_conf.go#L120-L123
Check warning on line 126 in pkg/admission/conf/am_conf.go
Codecov / codecov/patch
pkg/admission/conf/am_conf.go#L126
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.
ditto. I don't think admission controller should start with those failures
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.
Yeah. Good insight. Updated in the new commit.
Check warning on line 65 in pkg/admission/namespace_cache.go
Codecov / codecov/patch
pkg/admission/namespace_cache.go#L65
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.
We don't need it as caller has log, right?
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. Many Thanks. Update the code to delete the useless log.
Check warning on line 50 in pkg/admission/priority_class_cache.go
Codecov / codecov/patch
pkg/admission/priority_class_cache.go#L49-L50
Check warning on line 123 in pkg/cache/context.go
Codecov / codecov/patch
pkg/cache/context.go#L123
Check warning on line 134 in pkg/cache/context.go
Codecov / codecov/patch
pkg/cache/context.go#L134
Check warning on line 144 in pkg/cache/context.go
Codecov / codecov/patch
pkg/cache/context.go#L144
Check warning on line 154 in pkg/cache/context.go
Codecov / codecov/patch
pkg/cache/context.go#L154
Check warning on line 1472 in pkg/cache/context.go
Codecov / codecov/patch
pkg/cache/context.go#L1471-L1472
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.
We have an API change here. It's probably OK but this type has been there for a long time.
cc @wilfred-s
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.
Yeah. When we change the
AddEventHandler
to return error, it affects theAPIProvider interface
, too. If there is any suggestion for this part, please let me know. Many thanks.Check warning on line 147 in pkg/client/apifactory.go
Codecov / codecov/patch
pkg/client/apifactory.go#L147
Check warning on line 171 in pkg/client/apifactory.go
Codecov / codecov/patch
pkg/client/apifactory.go#L170-L171
Check warning on line 173 in pkg/client/apifactory.go
Codecov / codecov/patch
pkg/client/apifactory.go#L173
Check warning on line 178 in pkg/client/apifactory.go
Codecov / codecov/patch
pkg/client/apifactory.go#L177-L178
Check warning on line 181 in pkg/client/apifactory.go
Codecov / codecov/patch
pkg/client/apifactory.go#L181
Check warning on line 184 in pkg/client/apifactory.go
Codecov / codecov/patch
pkg/client/apifactory.go#L184
Check warning on line 187 in pkg/client/apifactory.go
Codecov / codecov/patch
pkg/client/apifactory.go#L187
Check warning on line 190 in pkg/client/apifactory.go
Codecov / codecov/patch
pkg/client/apifactory.go#L190
Check warning on line 193 in pkg/client/apifactory.go
Codecov / codecov/patch
pkg/client/apifactory.go#L193
Check warning on line 196 in pkg/client/apifactory.go
Codecov / codecov/patch
pkg/client/apifactory.go#L196
Check warning on line 199 in pkg/client/apifactory.go
Codecov / codecov/patch
pkg/client/apifactory.go#L199
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.
If we fail to add handler, the initialization should be viewed as "failure"
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. Many thanks.
Check warning on line 204 in pkg/client/apifactory.go
Codecov / codecov/patch
pkg/client/apifactory.go#L203-L204
Check warning on line 206 in pkg/client/apifactory.go
Codecov / codecov/patch
pkg/client/apifactory.go#L206
Check warning on line 223 in pkg/client/apifactory_mock.go
Codecov / codecov/patch
pkg/client/apifactory_mock.go#L223
Check warning on line 228 in pkg/client/apifactory_mock.go
Codecov / codecov/patch
pkg/client/apifactory_mock.go#L228
Check warning on line 234 in pkg/client/apifactory_mock.go
Codecov / codecov/patch
pkg/client/apifactory_mock.go#L234
Check warning on line 68 in pkg/cmd/admissioncontroller/main.go
Codecov / codecov/patch
pkg/cmd/admissioncontroller/main.go#L66-L68
Check warning on line 73 in pkg/cmd/admissioncontroller/main.go
Codecov / codecov/patch
pkg/cmd/admissioncontroller/main.go#L70-L73
Check warning on line 78 in pkg/cmd/admissioncontroller/main.go
Codecov / codecov/patch
pkg/cmd/admissioncontroller/main.go#L75-L78