-
Notifications
You must be signed in to change notification settings - Fork 394
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
✨ Simplify index pkg #3056
✨ Simplify index pkg #3056
Conversation
a1cad54
to
dd9f145
Compare
dd9f145
to
323486f
Compare
/retest |
323486f
to
fb3dd93
Compare
@sttts the first PR in mounts saga. ready to review. Closed other as it was changing too much. Now have stable branch, so gonna start moving them bit by bit |
/lgtm |
LGTM label has been added. Git tree hash: badfa8c09f6050d57970814e34523179a52a8a92
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sttts 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 |
@@ -28,8 +28,17 @@ import ( | |||
|
|||
// Index implements a mapping from logical cluster to (shard) URL. | |||
type Index interface { | |||
Lookup(path logicalcluster.Path) (shard string, cluster, canonicalPath logicalcluster.Path, found bool) | |||
LookupURL(logicalCluster logicalcluster.Path) (url string, canonicalPath logicalcluster.Path, found bool) | |||
Lookup(path logicalcluster.Path) Result |
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.
for follow-up, maybe Result, bool
is more canonical.
/kind feature |
Summary
Simplify index package and wire in the ability to forward to different URLs. For now only in insecure mode in dev, as we need to wire in certificates deeper into stack. This is preparation for the experimental feature "workspace mounts"
Follow-up PR will follow: #3057
Related issue(s)
Fixes #
Release Notes