1
0
mirror of synced 2026-05-03 02:03:31 +00:00

feat: adding support digest pinning for flux plugin install

Signed-off-by: iam-karan-suresh <karansuresh.info@gmail.com>
This commit is contained in:
iam-karan-suresh
2026-04-26 12:20:14 +05:30
parent 4e78a9d7e0
commit df3878d36a
5 changed files with 151 additions and 10 deletions

View File

@@ -98,6 +98,12 @@ func parseNameVersion(s string) (string, string) {
return s, ""
}
// isDigestRef reports whether ref is a content-addressable digest
// (e.g. "sha256:06e0a38...").
func isDigestRef(ref string) bool {
return strings.HasPrefix(ref, "sha256:")
}
// newCatalogClient creates a CatalogClient that respects FLUXCD_PLUGIN_CATALOG.
func newCatalogClient() *plugin.CatalogClient {
client := plugin.NewCatalogClient()