New ๐ŸŒŠ wave for @helm

Commit ac1b008b

ac1b008b9a08Merged

zhiliaev <[email protected]> ยท 4 years ago ยท 3 files ยท ~3 modified

Description

feat: support OCI

Details

Commit
ac1b008b9a08
Parent
1860365641ba

pkg/helper/helm.gomodifiedView file

@@ -2,6 +2,7 @@
22
33 import (
44 "fmt"
5+ "helm.sh/helm/v3/pkg/registry"
56 "os"
67
78 log "github.com/sirupsen/logrus"
@@ -31,6 +32,17 @@
3132 return nil, fmt.Errorf("failed to create helm configuration for %s namespace: %w", ns, err)
3233 }
3334
35+ registryClient, err := registry.NewClient(
36+ registry.ClientOptDebug(Helm.Debug),
37+ registry.ClientOptWriter(os.Stdout),
38+ registry.ClientOptCredentialsFile(Helm.RegistryConfig),
39+ )
40+ if err != nil {
41+ return cfg, err
42+ }
43+
44+ cfg.RegistryClient = registryClient
45+
3446 return cfg, nil
3547 }
3648