Skip to content

Commit

Permalink
fix vpc endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: l1b0k <[email protected]>
  • Loading branch information
l1b0k committed Sep 13, 2024
1 parent d636802 commit 38eeb31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/aliyun/credential/aliyun_client_mgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (c *ClientMgr) refreshToken() (bool, error) {
if err != nil {
return false, err
}
c.ecs.SetEndpointRules(c.ecs.EndpointMap, "regional", "public")
c.ecs.SetEndpointRules(c.ecs.EndpointMap, "regional", "vpc")

if c.ecsDomainOverride != "" {
c.ecs.Domain = c.ecsDomainOverride
Expand All @@ -191,7 +191,7 @@ func (c *ClientMgr) refreshToken() (bool, error) {
if err != nil {
return false, err
}
c.vpc.SetEndpointRules(c.vpc.EndpointMap, "regional", "public")
c.vpc.SetEndpointRules(c.vpc.EndpointMap, "regional", "vpc")

if c.vpcDomainOverride != "" {
c.vpc.Domain = c.vpcDomainOverride
Expand All @@ -201,7 +201,7 @@ func (c *ClientMgr) refreshToken() (bool, error) {
if err != nil {
return false, err
}
c.eflo.SetEndpointRules(c.eflo.EndpointMap, "regional", "public")
c.eflo.SetEndpointRules(c.eflo.EndpointMap, "regional", "vpc")

if c.efloDomainOverride != "" {
c.eflo.Domain = c.efloDomainOverride
Expand Down

0 comments on commit 38eeb31

Please sign in to comment.