-
Notifications
You must be signed in to change notification settings - Fork 95
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
Add ConsoleLink Creation/Remove #448
Conversation
5cc1e17
to
773644e
Compare
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.
Nothing major, but a few suggestions
pkg/helper/webconsole.go
Outdated
err := c.Get(ctx, types.NamespacedName{Name: consoleLinkName}, consoleLink) | ||
if route != nil { | ||
if err != nil && apierrors.IsNotFound(err) { | ||
consoleLink = createNamespaceDashboardLink(consoleLinkName, route, apimanager) |
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.
This is a confusing function name. Makes me think you create it, whereas you apparently only create a local object, and create it later in the reconcile call.
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.
Which function name are you referring to?
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.
createNamespaceDashboardLink, in that it only creates an object in memory. Not a big deal, but maybe try to make that clear in the name.
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'm basing my code off of other consolelink creation examples (Teiid, Apicurio) to be consistent, but I can change the name no problem
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.
This one is not a big deal, so you could go either way, but as far as consistency, it only matters that the code is consistent with other parts of this operator.
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.
Fixed! Function name is now createConsoleLinkPointer.
Code Climate has analyzed commit 84e48fc and detected 0 issues on this pull request. View more on Code Climate. |
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.
Great job, LGTM!
Hi, Thanks for your contribution. We are currently evaluating/analysing the functionality and the pull request and we will come back to you as soon as possible with some feedback |
@rashelrr before going into deep review, two quick comments:
|
@eguzki Rashel was our summer intern who completed her internship last week. @myeung18 worked with her on this and other PRs, and would be able to pick this up and drive it home. However, he is on PTO this week and returns next week. Can we leave this PR alone and neither merge or close it, and let Marco open a new PR on top of these commits? That way, he can address these and other feedbacks in a new commit, and when resolved and merged, this PR will also automatically be marked as merged, so we can get Rashel's commits in. Does that work? |
Sure @bmozaffa |
@eguzki @bmozaffa |
Added ConsoleLink Creation/Remove
Added go mod vendor folder