Skip to content

Commit

Permalink
feat(output): refine OTLPgrpc output
Browse files Browse the repository at this point in the history
Signed-off-by: Szilard Parrag <szilard.parrag@axoflow.com>
  • Loading branch information
OverOrion committed Feb 1, 2024
1 parent 1a72eec commit 1db1fbf
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/telemetry/v1alpha1/otlp_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ type GRPCClientSettings struct {
// components configuring TLS client connections.
type TLSClientSetting struct {
// squash ensures fields are correctly decoded in embedded struct.
//TLSSetting `json:",inline"`
TLSSetting `json:",inline"`

// These are config options specific to client connections.

Expand Down
1 change: 1 addition & 0 deletions api/telemetry/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions config/crd/bases/telemetry.kube-logging.dev_oteloutputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,23 @@ spec:
tls:
description: TLSSetting struct exposes TLS client configuration.
properties:
ca_file:
description: |-
Path to the CA cert. For a client this verifies the server certificate.
For a server this verifies client certificates. If empty uses system root CA.
(optional)
type: string
ca_pem:
description: In memory PEM encoded cert. (optional)
type: string
cert_file:
description: Path to the TLS cert to use for TLS required
connections. (optional)
type: string
cert_pem:
description: In memory PEM encoded TLS cert to use for TLS
required connections. (optional)
type: string
insecure:
description: |-
In gRPC when set to true, this is used to disable the client transport security.
Expand All @@ -178,6 +195,30 @@ spec:
description: InsecureSkipVerify will enable TLS but not verify
the certificate.
type: boolean
key_file:
description: Path to the TLS key to use for TLS required connections.
(optional)
type: string
key_pem:
description: In memory PEM encoded TLS key to use for TLS
required connections. (optional)
type: string
max_version:
description: |-
MaxVersion sets the maximum TLS version that is acceptable.
If not set, refer to crypto/tls for defaults. (optional)
type: string
min_version:
description: |-
MinVersion sets the minimum TLS version that is acceptable.
If not set, TLS 1.2 will be used. (optional)
type: string
reload_interval:
description: |-
ReloadInterval specifies the duration after which the certificate will be reloaded
If not set, it will never be reloaded (optional)
format: int64
type: integer
server_name_override:
description: |-
ServerName requested by client for virtual hosting.
Expand Down

0 comments on commit 1db1fbf

Please sign in to comment.