97 lines
4.4 KiB
YAML
97 lines
4.4 KiB
YAML
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
annotations:
|
|
controller-gen.kubebuilder.io/version: v0.15.0
|
|
labels:
|
|
app.kubernetes.io/name: airlock-microgateway-operator
|
|
app.kubernetes.io/version: 4.3.1
|
|
name: telemetries.microgateway.airlock.com
|
|
spec:
|
|
group: microgateway.airlock.com
|
|
names:
|
|
categories:
|
|
- airlock-microgateway
|
|
kind: Telemetry
|
|
listKind: TelemetryList
|
|
plural: telemetries
|
|
singular: telemetry
|
|
scope: Namespaced
|
|
versions:
|
|
- name: v1alpha1
|
|
schema:
|
|
openAPIV3Schema:
|
|
description: Telemetry contains the configuration for telemetry (logging, metrics & tracing).
|
|
properties:
|
|
apiVersion:
|
|
description: |-
|
|
APIVersion defines the versioned schema of this representation of an object.
|
|
Servers should convert recognized schemas to the latest internal value, and
|
|
may reject unrecognized values.
|
|
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
type: string
|
|
kind:
|
|
description: |-
|
|
Kind is a string value representing the REST resource this object represents.
|
|
Servers may infer this from the endpoint the client submits requests to.
|
|
Cannot be updated.
|
|
In CamelCase.
|
|
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
type: string
|
|
metadata:
|
|
type: object
|
|
spec:
|
|
description: Specification of the desired telemetry behavior.
|
|
properties:
|
|
correlation:
|
|
description: Correlation defines the correlation aspects of Telemetry.
|
|
properties:
|
|
idSource:
|
|
description: IDSource specifies how an external correlation ID should be obtained for a request. If not specified, no correlation ID will be logged.
|
|
properties:
|
|
header:
|
|
description: Header specifies to extract the correlation ID from a request header. If the header is absent from a request, no correlation ID will be logged.
|
|
properties:
|
|
name:
|
|
default: X-Correlation-Id
|
|
description: Name of the header (case-insensitive) from which to extract the correlation ID.
|
|
minLength: 1
|
|
type: string
|
|
type: object
|
|
required:
|
|
- header
|
|
type: object
|
|
request:
|
|
description: Request defines the request related correlation settings of Telemetry.
|
|
properties:
|
|
allowDownstreamRequestID:
|
|
default: true
|
|
description: AllowDownstreamRequestID defines whether trace sampling will consider a provided x-request-id.
|
|
type: boolean
|
|
alterRequestID:
|
|
default: true
|
|
description: AlterRequestID defines whether to alter the UUID to reflect the trace sampling decision. If disabled no modification to the UUID will be performed, this may break tracing in the upstream.
|
|
type: boolean
|
|
type: object
|
|
type: object
|
|
logging:
|
|
description: Logging defines the logging aspects of Telemetry.
|
|
properties:
|
|
accessLog:
|
|
description: AccessLog defines the access log settings of Telemetry.
|
|
properties:
|
|
format:
|
|
description: Format defines the Access Log format of the sidecar.
|
|
properties:
|
|
json:
|
|
description: JSON defines the Access Log format as JSON.
|
|
type: object
|
|
x-kubernetes-preserve-unknown-fields: true
|
|
type: object
|
|
type: object
|
|
type: object
|
|
type: object
|
|
type: object
|
|
served: true
|
|
storage: true
|