-
Notifications
You must be signed in to change notification settings - Fork 369
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
Refactor existing index path functions to support multiple indexes later on #510
Conversation
Codecov Report
@@ Coverage Diff @@
## master #510 +/- ##
==========================================
+ Coverage 58.87% 59.12% +0.24%
==========================================
Files 23 23
Lines 997 1003 +6
==========================================
+ Hits 587 593 +6
Misses 350 350
Partials 60 60
Continue to review full report at Codecov.
|
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.
Overall looks good to me. However, you need to test both behaviors at the same time. I.e. you need to set up the X_KREW_ENABLE_MULTI_INDEX
env var in tests, so that you can test both branches.
In general, if you use |
LGTM but one major point surfaced up in all the patch. |
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.
Looks good overall. I have only some smaller nits, then let's merge this.
Ok, let's get this in. Once the conflict is solved, I'll merge. |
Add new functionality behind env var
Use constants variable for "default", update godoc, and remove unnecessary tests
6a97284
to
4462b8a
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahmetb, chriskim06 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 |
Add a name parameter to the index path functions (and behind the
X_KREW_ENABLE_MULTI_INDEX
variable) to return the path for the specified index, with "default" being implicit. Refactor the existing calls to use an empty string for now that gets ignored when the variable is unset.The integration tests fail when
X_KREW_ENABLE_MULTI_INDEX
is set since the other functionality doesn't exist yet.Related issue: #483