This message was deleted.
# epinio
a
This message was deleted.
b
Hi @rapid-optician-64537, I guess the choice was made to cache the files, and reuse them during a rebuild
r
Thank you for answer, Are cache files actually being reused? During my testing, it seemed like a new binary format bucket name was generated every time.
There is no step in the service flow that removes the files, and it also doesn't seem like they are being reused in a cache format. I'm not sure if this is how it's supposed to work.
b
If you do a rebuild (not a push) they should be reused. The epinio server will get the same bucket pushed for that build and reuse it
I don't remember if there is something to set a number of builds to keep, or if there is some configuration on MinIO that can be used to avoid this issue
r
Thank you for the response. I believe the purpose of using Epinio is to create an OCI (Open Container Image) after the build. If the OCI is stored in a Docker Registry, wouldn't it be better for integrity to reuse the OCI from the registry? Wouldn't it be more effective to implement a feature that clears the information in the bucket after the build?
b
I was checking the docs and I found this
When you successfully push a new version of your application, Epinio removes the resources of the earlier staging process from the Kubernetes cluster. It also deletes the earlier version of the sources from S3. This way, Epinio doesn't store more than it needs on the S3 storage and no manual cleanup is necessary.
https://docs.epinio.io/howtos/customization/setup_external_s3
so maybe the behavior you are experiencing is not expected
1
r
Thank you!!
I just checked the source code, and when the stage API is called, the unstage API is not triggered, which means the files are not deleted from S3. Only when the deploy API is called, the unstage process is designed to remove all the existing resources. I believe that in the case of the stage API as well, all previous resources should be removed once the image is pushed. It seems like additional handling is required. Thank you very much for your response!!
b
you are welcome, and feel free to write an issue to discuss about this if you want 🙂
👍 1