| apiVersion: apiextensions.k8s.io/v1beta1 |
| kind: CustomResourceDefinition |
| metadata: |
| annotations: |
| "helm.sh/resource-policy": keep |
| labels: |
| app: mixer |
| chart: istio |
| heritage: Tiller |
| istio: core |
| package: istio.io.mixer |
| release: istio |
| name: rules.config.istio.io |
| spec: |
| group: config.istio.io |
| names: |
| categories: |
| - istio-io |
| - policy-istio-io |
| kind: rule |
| listKind: ruleList |
| plural: rules |
| singular: rule |
| preserveUnknownFields: false |
| scope: Namespaced |
| subresources: |
| status: {} |
| validation: |
| openAPIV3Schema: |
| properties: |
| spec: |
| description: 'Describes the rules used to configure Mixer''s policy and |
| telemetry features. See more details at: https://istio.io/docs/reference/config/policy-and-telemetry/istio.policy.v1beta1.html' |
| properties: |
| actions: |
| description: The actions that will be executed when match evaluates |
| to `true`. |
| items: |
| properties: |
| handler: |
| description: Fully qualified name of the handler to invoke. |
| format: string |
| type: string |
| instances: |
| items: |
| format: string |
| type: string |
| type: array |
| name: |
| description: A handle to refer to the results of the action. |
| format: string |
| type: string |
| type: object |
| type: array |
| match: |
| description: Match is an attribute based predicate. |
| format: string |
| type: string |
| requestHeaderOperations: |
| items: |
| properties: |
| name: |
| description: Header name literal value. |
| format: string |
| type: string |
| operation: |
| description: Header operation type. |
| enum: |
| - REPLACE |
| - REMOVE |
| - APPEND |
| type: string |
| values: |
| description: Header value expressions. |
| items: |
| format: string |
| type: string |
| type: array |
| type: object |
| type: array |
| responseHeaderOperations: |
| items: |
| properties: |
| name: |
| description: Header name literal value. |
| format: string |
| type: string |
| operation: |
| description: Header operation type. |
| enum: |
| - REPLACE |
| - REMOVE |
| - APPEND |
| type: string |
| values: |
| description: Header value expressions. |
| items: |
| format: string |
| type: string |
| type: array |
| type: object |
| type: array |
| sampling: |
| properties: |
| random: |
| description: Provides filtering of actions based on random selection |
| per request. |
| properties: |
| attributeExpression: |
| description: Specifies an attribute expression to use to override |
| the numerator in the `percent_sampled` field. |
| format: string |
| type: string |
| percentSampled: |
| description: The default sampling rate, expressed as a percentage. |
| properties: |
| denominator: |
| description: Specifies the denominator. |
| enum: |
| - HUNDRED |
| - TEN_THOUSAND |
| type: string |
| numerator: |
| description: Specifies the numerator. |
| type: integer |
| type: object |
| useIndependentRandomness: |
| description: By default sampling will be based on the value |
| of the request header `x-request-id`. |
| type: boolean |
| type: object |
| rateLimit: |
| properties: |
| maxUnsampledEntries: |
| description: Number of entries to allow during the `sampling_duration` |
| before sampling is enforced. |
| format: int64 |
| type: integer |
| samplingDuration: |
| description: Window in which to enforce the sampling rate. |
| type: string |
| samplingRate: |
| description: The rate at which to sample entries once the unsampled |
| limit has been reached. |
| format: int64 |
| type: integer |
| type: object |
| type: object |
| type: object |
| status: |
| type: object |
| x-kubernetes-preserve-unknown-fields: true |
| type: object |
| versions: |
| - name: v1alpha2 |
| served: true |
| storage: true |