Skip to content

Commit eca34fe

Browse files
jwcesigngitautomator[bot]
authored andcommitted
fix: get image status even it's expired
Signed-off-by: jwcesign <jwcesign@cloudpilot.ai>
1 parent 758d15e commit eca34fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/providers/imagefamily/image.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ func (p *DefaultProvider) getImagesWithAlias(k8sVersion string) (Images, error)
169169

170170
func (p *DefaultProvider) getImagesWithID(id string) (Images, error) {
171171
req := &ecs.DescribeImagesRequest{
172-
RegionId: tea.String(p.region),
173-
ImageId: tea.String(id),
172+
RegionId: tea.String(p.region),
173+
ImageId: tea.String(id),
174+
ShowExpired: tea.Bool(true),
174175
}
175176

176177
resp, err := p.ecsClient.DescribeImages(req)

0 commit comments

Comments
 (0)