Skip to content

Commit

Permalink
Update hash algo
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
  • Loading branch information
jabellard committed Jul 6, 2024
1 parent 9da129a commit 25c7a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/proposals/operator-custom-crd-download-url/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ release version, it should be left unspecified as part of the Karmada resource.

Currently, the cache for previously downloaded CRDs lives on the local file system at `/var/lib/karmada/<operator-release-version>`. To support custom CRD download URLs, we need to a new directory structure for the cache.
The Karmada operator can potentially be managing the lifecycle of multiple Karmada instances of heterogeneous versions, and as such, may have to download CRD tarballs from multiple URLs. We need to cache the CRDs for each URL.
Given some URL, it's cache entry will live on the local file system at path `/var/lib/karmada/cache/<cache-key>`. The cache key will be the computed MD5 hash of that URL after all leading and trailing white space has been removed.
Given some URL, it's cache entry will live on the local file system at path `/var/lib/karmada/cache/<cache-key>`. The cache key will be the computed SHA-256 hash of that URL after all leading and trailing white space has been removed.

0 comments on commit 25c7a50

Please sign in to comment.