Class ByCloudProviderServiceSelector
java.lang.Object
com.netflix.spinnaker.kork.web.selector.ByCloudProviderServiceSelector
- All Implemented Interfaces:
ServiceSelector
Provides logic to select a service from a configured list of options (e.g. a Clouddriver service
in Orca) using the cloudProvider as a criteria. This can be used to send traffic to a specific
service endpoint based on the cloud provider the traffic is touching.
Example usage in Orca
clouddriver:
readonly:
baseUrls:
- baseUrl: https://clouddriver-readonly-orca-1.example.com
priority: 10
config:
selectorClass: com.netflix.spinnaker.kork.web.selector.ByCloudProviderServiceSelector
cloudProviders:
- kubernetes
- titus
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ByCloudProviderServiceSelector
-
-
Method Details
-
getService
- Specified by:
getServicein interfaceServiceSelector
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceServiceSelector
-
supports
- Specified by:
supportsin interfaceServiceSelector
-