Skip to content
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

Merged
merged 1 commit into from
Dec 13, 2023
Merged

Conversation

mjudeikis
Copy link
Contributor

@mjudeikis mjudeikis commented Dec 9, 2023

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

Simplify index package for frontproxy

@kcp-ci-bot kcp-ci-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has signed the DCO. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 9, 2023
@mjudeikis mjudeikis changed the title ✨ Simplify index pk ✨ Simplify index pkg Dec 9, 2023
@mjudeikis mjudeikis requested a review from sttts December 9, 2023 19:30
@mjudeikis mjudeikis marked this pull request as draft December 9, 2023 19:33
@mjudeikis mjudeikis marked this pull request as draft December 9, 2023 19:33
@kcp-ci-bot kcp-ci-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Dec 9, 2023
@mjudeikis mjudeikis force-pushed the mjudeikis/index.simplify branch from a1cad54 to dd9f145 Compare December 10, 2023 09:00
@mjudeikis mjudeikis marked this pull request as ready for review December 10, 2023 09:19
@kcp-ci-bot kcp-ci-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 10, 2023
@mjudeikis mjudeikis force-pushed the mjudeikis/index.simplify branch from dd9f145 to 323486f Compare December 10, 2023 09:55
@mjudeikis
Copy link
Contributor Author

/retest

@mjudeikis mjudeikis force-pushed the mjudeikis/index.simplify branch from 323486f to fb3dd93 Compare December 10, 2023 16:16
@kcp-ci-bot kcp-ci-bot added do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. and removed release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Dec 10, 2023
@mjudeikis
Copy link
Contributor Author

@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

@kcp-ci-bot kcp-ci-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Dec 10, 2023
@sttts
Copy link
Member

sttts commented Dec 13, 2023

/lgtm
/approve

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 13, 2023
@kcp-ci-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: badfa8c09f6050d57970814e34523179a52a8a92

@kcp-ci-bot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 13, 2023
@kcp-ci-bot kcp-ci-bot merged commit a852978 into kcp-dev:main Dec 13, 2023
@@ -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
Copy link
Member

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.

@embik
Copy link
Member

embik commented Jan 24, 2024

/kind feature

@kcp-ci-bot kcp-ci-bot added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has signed the DCO. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants