source-controller/internal
Hidde Beydals c0a1099719 helm: only use Digest to calculcate index revision
In #1001 bits around the Helm repository reconciliation logic were
rewritten, mostly based on the documented behavior instead of the
actual code. This resulted in the reintroduction of a YAML marshal of
the (sorted) index YAML instead of reliance of just the checksum of the
file.

This to take situations into account in which a repository would e.g.
provide a new random order on every generation. However, this approach
is (extremely) expensive as the marshal goes through a JSON -> YAML
loop, eating lots of RAM in the process.

As the further (silently) introduced behavior has not resulted in any
reported issues, I deem this approach safe and better than e.g.
encoding to just JSON which would still require a substantial amount of
memory.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2023-02-22 23:33:59 +01:00
..
cache Build with Go 1.19 2022-09-28 15:35:26 +03:00
digest digest: register SHA1 digest algorithm 2023-02-14 12:48:36 +01:00
error Introduce Generic error and error Config 2022-05-20 19:52:03 +05:30
features Disable caching of secrets and configmaps 2023-01-27 11:38:56 +00:00
fs test: use `T.TempDir` to create temporary test directory 2022-04-29 23:01:39 +08:00
helm helm: only use Digest to calculcate index revision 2023-02-22 23:33:59 +01:00
index controllers: use digest for Bucket revision 2023-02-14 12:48:36 +01:00
mock mock/gcs: strip /storage/v1 URI element 2022-03-16 11:16:47 +01:00
object internal/object: setter/getter suspend & artifact 2022-10-20 17:22:11 +05:30
oci addressing review comments 2022-10-21 10:00:08 +02:00
predicates [RFC 0002] Flux OCI support for Helm (#690) 2022-05-19 14:50:16 +02:00
reconcile Use condition checker with gomega WithT 2023-02-07 20:11:46 +05:30
transport internal/helm/getter: remove transport reuse test 2022-06-14 09:25:52 +01:00
util Refactor internal OCI package 2022-09-20 18:34:02 +03:00