This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat/statefulsets): MeshService API changes for Headless Services (#…
…4704) * Introduce service.ProviderMapper to MeshService As a stepping stone for statefulset support (#3477), introduce a new interface describing the ability to map an entity back to a provider service (e.g. a Kubernetes service). This decouples the MeshService name from being a foreign key between the provider's collection of services and the MeshCatalog's set of services Signed-off-by: Keith Mattix II <[email protected]> * Add subdomain field to Meshservice Signed-off-by: Keith Mattix II <[email protected]> * Write tests for headless service functionality Signed-off-by: Keith Mattix II <[email protected]> * Address PR comments Signed-off-by: Keith Mattix II <[email protected]> * Filter MeshServices from headless service based on subdomain When retrieving MeshServices in order to create local clusters for a pod, exclude MeshServices whose subdomains don't match the pod's name Signed-off-by: Keith Mattix II <[email protected]> * Implement MeshService creation functions Tracking the unexported MeshService fields is difficult, and there are several hidden bugs that can occur depending on what fields are accessed. So, we create the NewMeshService and NewPartialMeshService functions to aid in correct usage Signed-off-by: Keith Mattix II <[email protected]> * Fix arg order Signed-off-by: Keith Mattix II <[email protected]> * Remove unnecessary function & newline Signed-off-by: Keith Mattix II <[email protected]> * Re-duplicate svc to meshsvc code and de-memoize MeshService Signed-off-by: Keith Mattix II <[email protected]> * Remove unneccesary Equals function Signed-off-by: Keith Mattix II <[email protected]> * Remove unneeded newline Signed-off-by: Keith Mattix II <[email protected]> * Add mock expectation Signed-off-by: Keith Mattix II <[email protected]> * Add kubecontroller to splitHostname functions Signed-off-by: Keith Mattix II <[email protected]> * Add mock test expectation Signed-off-by: Keith Mattix II <[email protected]> * Fix tests Signed-off-by: Keith Mattix II <[email protected]> * Fix tests again Signed-off-by: Keith Mattix II <[email protected]> * Address PR comments Signed-off-by: Keith Mattix II <[email protected]> * Remove unneded function Signed-off-by: Keith Mattix II <[email protected]> * Comment exported function Signed-off-by: Keith Mattix II <[email protected]> * Additional PR fixes Signed-off-by: Keith Mattix II <[email protected]> * Simplify tests Signed-off-by: Keith Mattix II <[email protected]>
- Loading branch information
1 parent
3395da5
commit 0af42df
Showing
26 changed files
with
954 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.