This enables feature state injection with Istio, by attaching the feature targeting adapter to ingress gateways.
This is the main point of configuring how you would like feature targeting to happen, mainly:
- Which parts of the request should be available to target implicit features (i.e. the template instance configuration)
- Which methods of explicit feature targeting you'd like to enable (i.e. the handler configuration) NOTE this is hardcoded for now
- Create a cluster and install istio (see readme)
kustomize build . | kubectl apply -f -
What have we just done?
- Deployed the server responsible for processing requests into feature state (
feature-targeting-server.yml
) - Declared a protocol used by Istio Mixer to talk to our server (
feature-targeting-template.yml
) - Register the server as a Mixer adapter and declared its configuration shape (
feature-targeting.yml
) - Created a handler (adapter instance) with specific configuration (
handler.yml
) - Created an instance (of the template) and configured how it's populated by
request attributes provided by Istio (
instance.yml
) - Attach the handler and instance to the ingress gateway proxies in Istio and
configured how the requests get modified (
rule.yml
)
It may be helpful to read about the architecture of Mixer adapters.