File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ impl EksCredentialProvider {
252252 }
253253}
254254
255- // TODO: Implement AwsCredentialLoad trait properly
255+ // TODO: Implement AwsCredentialLoad trait properly
256256// impl AwsCredentialLoad for EksCredentialProvider {}
257257
258258/// Aws S3 and compatible services (including minio, digitalocean space, Tencent Cloud Object Storage(COS) and so on) support.
@@ -1049,7 +1049,7 @@ impl Builder for S3Builder {
10491049 loader = Some ( v) ;
10501050 }
10511051
1052- // TODO: Container credentials support implementation
1052+ // TODO: Container credentials support implementation
10531053 // For now, container credentials would need to be loaded by custom credential loaders
10541054 // This is a placeholder for the container credentials feature
10551055 if let Some ( relative_uri) = & self . config . container_credentials_relative_uri {
@@ -1060,7 +1060,9 @@ impl Builder for S3Builder {
10601060 & self . config . container_credentials_full_uri ,
10611061 & self . config . container_authorization_token_file ,
10621062 ) {
1063- debug ! ( "EKS container credentials configured - URI: {full_uri}, token file: {token_file}" ) ;
1063+ debug ! (
1064+ "EKS container credentials configured - URI: {full_uri}, token file: {token_file}"
1065+ ) ;
10641066 debug ! ( "Note: Container credentials will be supported in a future update" ) ;
10651067 }
10661068
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ mod tests {
244244 "bucket": "test-bucket",
245245 "aws_container_credentials_relative_uri": "/v2/credentials/12345678-1234-1234-1234-123456789012"
246246 }"# ;
247-
247+
248248 let config1: S3Config = serde_json:: from_str ( json1) . unwrap ( ) ;
249249 assert_eq ! ( config1. bucket, "test-bucket" ) ;
250250 assert_eq ! (
@@ -258,7 +258,7 @@ mod tests {
258258 "container_credentials_full_uri": "https://localhost:1234/token",
259259 "container_authorization_token_file": "/var/run/secrets/eks.amazonaws.com/serviceaccount/token"
260260 }"# ;
261-
261+
262262 let config2: S3Config = serde_json:: from_str ( json2) . unwrap ( ) ;
263263 assert_eq ! ( config2. bucket, "test-bucket" ) ;
264264 assert_eq ! (
@@ -276,7 +276,7 @@ mod tests {
276276 "aws_container_credentials_full_uri": "https://localhost:1234/token",
277277 "aws_container_authorization_token_file": "/var/run/secrets/eks.amazonaws.com/serviceaccount/token"
278278 }"# ;
279-
279+
280280 let config3: S3Config = serde_json:: from_str ( json3) . unwrap ( ) ;
281281 assert_eq ! ( config3. bucket, "test-bucket" ) ;
282282 assert_eq ! (
@@ -292,7 +292,7 @@ mod tests {
292292 let json4 = r#"{
293293 "bucket": "test-bucket"
294294 }"# ;
295-
295+
296296 let config4: S3Config = serde_json:: from_str ( json4) . unwrap ( ) ;
297297 assert_eq ! ( config4. bucket, "test-bucket" ) ;
298298 assert_eq ! ( config4. container_credentials_relative_uri, None ) ;
You can’t perform that action at this time.
0 commit comments