feat(catalogue,helm,ci): add private OCI auth, offline catalogue mirror, CI image/SBOM, metrics config, and OpenShift overlay (#2153)
This commit is contained in:
23 files changed
+1095
-12
No files matched your search
@@ -85,6 +85,23 @@ func (m *Module) UseRemotes(cfg RemoteConfig) error {
|
||||
return m.host.UseRemotes(cfg)
|
||||
}
|
||||
|
||||
// CatalogueAuth configures private OCI registry authentication for fetching
|
||||
// the extension catalogue and artifacts.
|
||||
type CatalogueAuth = catalogue.RegistryAuth
|
||||
|
||||
// UseCatalogueAuth configures private OCI registry authentication for the
|
||||
// catalogue fetcher.
|
||||
func (m *Module) UseCatalogueAuth(cfg CatalogueAuth) error {
|
||||
credFn, err := cfg.CredentialFunc()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
m.pkgMu.Lock()
|
||||
m.fetcher.Auth = credFn
|
||||
m.pkgMu.Unlock()
|
||||
return nil
|
||||
}
|
||||
|
||||
// UseDefaultCatalogue overrides the fallback extension catalogue source used
|
||||
// when the control plane has not set a custom location.
|
||||
func (m *Module) UseDefaultCatalogue(location, publicKey string) error {
|
||||
|
||||
Reference in new issue
Block a user