charts-syncer
charts-syncer copied to clipboard
Allow --from-date in OCI registries by using another client
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?