Skip to content

[Feature] Support ESA CLI Sub Command#1345

Merged
AllyW merged 3 commits into
aliyun:masterfrom
msyysm1211:master
Jul 6, 2026
Merged

[Feature] Support ESA CLI Sub Command#1345
AllyW merged 3 commits into
aliyun:masterfrom
msyysm1211:master

Conversation

@msyysm1211

Copy link
Copy Markdown
Contributor

No description provided.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Jun 5, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@codecov-commenter

codecov-commenter commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.32%. Comparing base (808ef34) to head (28ec7ff).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1345      +/-   ##
==========================================
+ Coverage   84.00%   84.32%   +0.31%     
==========================================
  Files          65       65              
  Lines        8495     8496       +1     
==========================================
+ Hits         7136     7164      +28     
+ Misses        917      894      -23     
+ Partials      442      438       -4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread cliext/esacli/esacli.go Outdated
accessKeyId = profile.AccessKeyId
accessKeySecret = profile.AccessKeySecret
stsToken = profile.StsToken
case config.RamRoleArn:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other profile mode should be the same

Comment thread cliext/esacli/esacli.go
envs = append(envs, "ALIBABA_CLOUD_REGION_ID="+profile.RegionId)
}

envs = append(envs, "ALIBABA_CLOUD_ESA_CLI_COMPAT_MODE=aliyun esa-cli")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add to command usage template in esa-cli

使用 GetCredential 兜底处理所有认证模式,支持 EcsRamRole、OIDC 等,
同时修复错误被静默吞掉的问题。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@AllyW

AllyW commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

LGTM,ready to merge after next esa-cli release

@AllyW AllyW merged commit cba6277 into aliyun:master Jul 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants