Class ByAccountServiceSelector
java.lang.Object
com.netflix.spinnaker.kork.web.selector.ByAccountServiceSelector
- 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 account name as a criteria. This can be used to send traffic to a specific
service endpoint based on the account the traffic is interacting with.
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.ByAccountServiceSelector
accountPattern: kube-internal-.*
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ByAccountServiceSelector
-
-
Method Details
-
getService
- Specified by:
getServicein interfaceServiceSelector
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceServiceSelector
-
supports
- Specified by:
supportsin interfaceServiceSelector
-