-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve environment variable implements #900
base: master
Are you sure you want to change the base?
Conversation
d460e2d
to
f6c47bd
Compare
} | ||
} | ||
|
||
public static void setEnvironmentAccessKeyId(String environmentAccessKeyId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这种方式还不能删掉,用户是可能会用到的,可以先置为弃用,标注弃用时间。时间到期再删。
@@ -1,48 +0,0 @@ | |||
package com.aliyuncs.utils; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这种方式还不能删掉,用户是可能会用到的,可以先置为弃用,标注弃用时间。时间到期再删。
@@ -16,7 +16,7 @@ public DefaultCredentialsProvider() throws ClientException { | |||
defaultProviders.add(new SystemPropertiesCredentialsProvider()); | |||
defaultProviders.add(new EnvironmentVariableCredentialsProvider()); | |||
defaultProviders.add(new ProfileCredentialsProvider()); | |||
String roleName = AuthUtils.getEnvironmentECSMetaData(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要保留和兼容之前的get方式,因为AuthUtils有对应的set方法
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #900 +/- ##
============================================
- Coverage 89.98% 89.92% -0.07%
+ Complexity 1654 1638 -16
============================================
Files 124 124
Lines 4734 4705 -29
Branches 544 543 -1
============================================
- Hits 4260 4231 -29
- Misses 347 348 +1
+ Partials 127 126 -1 ☔ View full report in Codecov by Sentry. |
No description provided.