I experienced that yatai-deployment try to build images which already exist in ecr repository.
aws-sdk-go's list images doesn't ensure list all the images from repository. It returns 100 as default.
I'm not sure how to support this case in yatai-deployment.
But, I think only checking only 100 results is too small for current usecase.(Share one repository for all bentos)
Currently, I'm trying to handle this issue with ECR repository lifecycle policy.
references
|
input := &ecr.ListImagesInput{ |
- https://docs.aws.amazon.com/sdk-for-go/api/service/ecr/#ListImagesInput
I experienced that yatai-deployment try to build images which already exist in ecr repository.
aws-sdk-go's list images doesn't ensure list all the images from repository. It returns 100 as default.
I'm not sure how to support this case in yatai-deployment.
But, I think only checking only 100 results is too small for current usecase.(Share one repository for all bentos)
Currently, I'm trying to handle this issue with ECR repository lifecycle policy.
references
yatai-deployment/services/image_builder.go
Line 82 in cb5f5e2