@@ -97,7 +97,7 @@ type Resource struct {
97
97
// Exporter defines OTLP exporter configuration.
98
98
type Exporter struct {
99
99
// Endpoint is address of the collector with OTLP endpoint.
100
- // The TLS is enabled
100
+ // If the endpoint defines https:// scheme TLS has to be specified.
101
101
// +optional
102
102
Endpoint string `json:"endpoint,omitempty"`
103
103
@@ -110,21 +110,22 @@ type Exporter struct {
110
110
type TLS struct {
111
111
// SecretName defines secret name that will be used to configure TLS on the exporter.
112
112
// It is user responsibility to create the secret in the namespace of the workload.
113
- // The secret should contain keys ca.crt, tls.key, tls.crt
113
+ // The secret must contain client certificate (Cert) and private key (Key).
114
+ // The CA certificate might be defined in the secret or in the config map.
114
115
SecretName string `json:"secretName,omitempty"`
115
116
116
117
// ConfigMapName defines configmap name with CA certificate. If it is not defined CA certificate will be
117
118
// used from the secret defined in SecretName.
118
119
ConfigMapName string `json:"configMapName,omitempty"`
119
120
120
- // CA defines the key of certificate in the configmap map, secret or absolute path to a certificate.
121
+ // CA defines the key of certificate (e.g. ca.crt) in the configmap map, secret or absolute path to a certificate.
121
122
// The absolute path can be used when certificate is already present on the workload filesystem e.g.
122
123
// /var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt
123
124
CA string `json:"ca,omitempty"`
124
- // Cert defines the key of the client certificate in the secret or absolute path to a certificate.
125
+ // Cert defines the key (e.g. tls.crt) of the client certificate in the secret or absolute path to a certificate.
125
126
// The absolute path can be used when certificate is already present on the workload filesystem.
126
127
Cert string `json:"cert,omitempty"`
127
- // Key defines a key of the private key in the secret or absolute path to a certificate.
128
+ // Key defines a key (e.g. tls.key) of the private key in the secret or absolute path to a certificate.
128
129
// The absolute path can be used when certificate is already present on the workload filesystem.
129
130
Key string `json:"key,omitempty"`
130
131
}
0 commit comments