File tree Expand file tree Collapse file tree 5 files changed +15
-10
lines changed Expand file tree Collapse file tree 5 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ ## 🛑 Breaking changes 🛑
6
+
7
+ - ` f5cloud ` exporter (#3509 ):
8
+ - Renamed the config 'auth' field to 'f5cloud_auth'. This will prevent a config field name collision when [ Support for Custom Exporter Authenticators as Extensions] ( https://github.com/open-telemetry/opentelemetry-collector/pull/3128 ) is ready to be integrated.
9
+
5
10
## v0.27.0
6
11
7
12
# 🎉 OpenTelemetry Collector Contrib v0.27.0 (Beta) 🎉
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ The following settings are required:
13
13
- ` endpoint ` (no default): The URL to send data to. See your F5 Cloud account for details.
14
14
- ` source ` (no default): A unique identifier that is used to distinguish where this data is coming from (e.g. dev_cluster). This is in
15
15
addition to the pipeline attributes and resources.
16
- - ` auth .credential_file` (no default): Path to the credential file used to authenticate this client. See your F5
16
+ - ` f5cloud_auth .credential_file` (no default): Path to the credential file used to authenticate this client. See your F5
17
17
Cloud account for details.
18
18
19
19
The following settings can be optionally configured:
20
20
21
- - ` auth .audience` (no default): Identifies the recipient that the authentication JWT is intended for. See your F5 Cloud
21
+ - ` f5cloud_auth .audience` (no default): Identifies the recipient that the authentication JWT is intended for. See your F5 Cloud
22
22
account for details.
23
23
24
24
- ` timeout ` (default = 30s): HTTP request time limit. For details see https://golang.org/pkg/net/http/#Client
@@ -31,7 +31,7 @@ Example:
31
31
f5cloud :
32
32
endpoint : https://<ENDPOINT_FOUND_IN_F5_CLOUD_PORTAL>
33
33
source : prod
34
- auth :
34
+ f5cloud_auth :
35
35
credential_file : " /etc/creds/key.json"
36
36
` ` `
37
37
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ type Config struct {
31
31
Source string `mapstructure:"source"`
32
32
33
33
// AuthConfig represents the F5 Cloud authentication configuration options.
34
- AuthConfig AuthConfig `mapstructure:"auth "`
34
+ AuthConfig AuthConfig `mapstructure:"f5cloud_auth "`
35
35
}
36
36
37
37
func (c * Config ) sanitize () error {
@@ -49,11 +49,11 @@ func (c *Config) sanitize() error {
49
49
}
50
50
51
51
if len (c .AuthConfig .CredentialFile ) == 0 {
52
- return fmt .Errorf ("missing required \" auth .credential_file\" setting" )
52
+ return fmt .Errorf ("missing required \" f5cloud_auth .credential_file\" setting" )
53
53
}
54
54
55
55
if _ , err := os .Stat (c .AuthConfig .CredentialFile ); os .IsNotExist (err ) {
56
- return fmt .Errorf ("the provided \" auth .credential_file\" does not exist" )
56
+ return fmt .Errorf ("the provided \" f5cloud_auth .credential_file\" does not exist" )
57
57
}
58
58
59
59
if len (c .AuthConfig .Audience ) == 0 {
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ func TestConfig_sanitize(t *testing.T) {
119
119
Source : validSource ,
120
120
CredentialFile : "" ,
121
121
},
122
- errorMessage : "missing required \" auth .credential_file\" setting" ,
122
+ errorMessage : "missing required \" f5cloud_auth .credential_file\" setting" ,
123
123
shouldError : true ,
124
124
},
125
125
{
@@ -129,7 +129,7 @@ func TestConfig_sanitize(t *testing.T) {
129
129
Source : validSource ,
130
130
CredentialFile : "non-existent cred file" ,
131
131
},
132
- errorMessage : "the provided \" auth .credential_file\" does not exist" ,
132
+ errorMessage : "the provided \" f5cloud_auth .credential_file\" does not exist" ,
133
133
shouldError : true ,
134
134
},
135
135
{
Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ exporters:
8
8
f5cloud :
9
9
endpoint : " https://f5cloud"
10
10
source : " dev"
11
- auth :
11
+ f5cloud_auth :
12
12
credential_file : " /etc/creds/key.json"
13
13
f5cloud/allsettings :
14
14
endpoint : " https://f5cloud"
15
15
source : " dev"
16
- auth :
16
+ f5cloud_auth :
17
17
credential_file : " /etc/creds/key.json"
18
18
audience : " exampleaudience"
19
19
timeout : 10s
You can’t perform that action at this time.
0 commit comments