Adds check (#243)

* Adds check

* Remove interactive terminal

* Fix redisquota url
This commit is contained in:
Sebastien Vas 2017-05-16 15:59:06 -07:00 committed by GitHub
parent bcd75ce6e9
commit 182554aac3
2 changed files with 30 additions and 9 deletions

21
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,21 @@
#!groovy
@Library('testutils@stable-41b0bf6')
import org.istio.testutils.Utilities
import org.istio.testutils.GitUtilities
import org.istio.testutils.Bazel
// Utilities shared amongst modules
def gitUtils = new GitUtilities()
def utils = new Utilities()
mainFlow(utils) {
node {
gitUtils.initialize()
}
defaultNode(gitUtils) {
sh('docker run --rm --label=jekyll --volume=\$(pwd):/srv/jekyll ' +
'jekyll/jekyll sh -c "bundle install && rake test"')
}
}

View File

@ -1,7 +1,7 @@
---
title: Mixer Aspect Configuration
overview: Explains how to configure a Mixer Aspect and its dependencies.
order: 38
layout: docs
@ -13,15 +13,15 @@ type: markdown
{% capture mixerConfig %}{{home}}/docs/reference/config/mixer/mixer-config.html{% endcapture %}
{% capture tasks %}{{home}}/docs/tasks{% endcapture %}
Explains how to configure a Mixer _Aspect_ and its dependencies.
Explains how to configure a Mixer _Aspect_ and its dependencies.
## Overview
Mixer configuration expresses system behavior by specifying three
Mixer configuration expresses system behavior by specifying three
key pieces of information: **what** action to take, **how** to take that action, and **when** to take that action.
* **What action to take:** [_Aspect_](./mixer-config.html#Aspects) configuration defines _what_ action to take. These actions include
logging, metrics collection, list checks, quota enforcement and others.
logging, metrics collection, list checks, quota enforcement and others.
[_Descriptors_](./mixer-config.html#Descriptors) are named and re-usable parts of the aspect configuration.
For example the `metrics` aspect defines the [`MetricDescriptor`]({{mixerConfig}}#istio.mixer.v1.config.descriptor.MetricDescriptor) and refers to the MetricDescriptor instances by name.
@ -58,7 +58,7 @@ labels:
In this example, `rate_limit` is `true`, hence the `aspect` must specify an `expiration`.
Similarly, the `aspect` must supply one label of type `string`.
Mixer delegates the work of applying rate limits to an `adapter` that implements the `quotas` kind.
Mixer delegates the work of applying rate limits to an `adapter` that implements the `quotas` kind.
[adapters.yml](https://github.com/istio/mixer/blob/master/testdata/configroot/scopes/global/adapters.yml) defines this configuration.
```yaml
@ -105,9 +105,9 @@ The following table enumerates valid combinations of the `aspects`, the `descrip
|Aspect |Descriptors |Adapters
|-----------------------------------------------
|[Quota enforcement]({{aspectConfig}}/quotas.html ) | [QuotaDescriptor]({{mixerConfig}}#istio.mixer.v1.config.descriptor.QuotaDescriptor) | [memQuota]({{adapterConfig}}/memQuota.html), [redisQuota]({{adapterConfig}}/redisQuota.html)
|[Metrics collection]({{aspectConfig}}/metrics.html)| [MetricDescriptor]({{mixerConfig}}#metricdescriptor) |[prometheus]({{adapterConfig}}/prometheus.html),[statsd]({{adapterConfig}}/statsd.html)
|[Whitelist/Blacklist]({{aspectConfig}}/lists.html)| None |[genericListChecker]({{adapterConfig}}/genericListChecker.html),[ipListChecker]({{adapterConfig}}/ipListChecker.html)
|[Quota enforcement]({{aspectConfig}}/quotas.html ) | [QuotaDescriptor]({{mixerConfig}}#istio.mixer.v1.config.descriptor.QuotaDescriptor) | [memQuota]({{adapterConfig}}/memQuota.html), [redisQuota]({{adapterConfig}}/redisquota.html)
|[Metrics collection]({{aspectConfig}}/metrics.html)| [MetricDescriptor]({{mixerConfig}}#metricdescriptor) |[prometheus]({{adapterConfig}}/prometheus.html),[statsd]({{adapterConfig}}/statsd.html)
|[Whitelist/Blacklist]({{aspectConfig}}/lists.html)| None |[genericListChecker]({{adapterConfig}}/genericListChecker.html),[ipListChecker]({{adapterConfig}}/ipListChecker.html)
|[Access logs]({{aspectConfig}}/accessLogs.html)|[LogEntryDescriptor]({{mixerConfig}}#logentrydescriptor) |[stdioLogger]({{adapterConfig}}/stdioLogger.html)
|[Application logs]({{aspectConfig}}/applicationLogs.html)|[LogEntryDescriptor]({{mixerConfig}}#logentrydescriptor) |[stdioLogger]({{adapterConfig}}/stdioLogger.html)
|[Deny Request]({{aspectConfig}}/denials.html)| None |[denyChecker]({{adapterConfig}}/denyChecker.html)
@ -143,7 +143,7 @@ A temporary workaround allows you to push `adapters.yml` and `descriptors.yml` a
3. Edit the file and push it back.
```bash
kubectl cp adapters.yml istio-mixer-2657627433-3r0nn:/etc/opt/mixer/configroot/scopes/global/adapters.yml
kubectl cp adapters.yml istio-mixer-2657627433-3r0nn:/etc/opt/mixer/configroot/scopes/global/adapters.yml
```
4. `/etc/opt/mixer/configroot/scopes/global/descriptors.yml` is similarly updated.