You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
(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]>
0 commit comments