bitnami / charts-syncer

Tool for synchronizing Helm Chart repositories.
https://bitnami.com
Apache License 2.0
169 stars 31 forks source link

Allow --from-date in OCI registries by using another client #200

Open wanddynosios opened 7 months ago

wanddynosios commented 7 months ago

Currently, the --date-from flag is not supported for OCI registries. The reasoning is given in the code:

// OCI registries does not provide info about the publishing date in any API endpoint.
// Therefore we cannot use the --from-date and we should publish everything.

However, the OCI spec does contain the info in the History struct. The reason (I assume) it was not possible to implement it was that go-containerregistry does not give out all available metadata, and there isn't too much activity in the related issue issue.

Other OCI clients might support this (containers/image I think does; also, harbor has this solved).

My question is: Would a PR, which uses another oci client than go-containerregistry, be accepted?