mirror of
https://github.com/hauler-dev/hauler.git
synced 2026-08-27 14:07:17 +00:00
embrace the thick chart
This commit is contained in:
@@ -41,7 +41,7 @@ func (o *AddFileOpts) AddFlags(cmd *cobra.Command) {
|
||||
// loc = f.Name(reference)
|
||||
//
|
||||
// case "chart":
|
||||
// oci, err := chart.NewChart(ch.Name, ch.RepoURL, ch.Version)
|
||||
// oci, err := chart.NewThickChart(ch.Name, ch.RepoURL, ch.Version)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
|
||||
@@ -130,7 +130,7 @@ func SyncCmd(ctx context.Context, o *SyncOpts, s *store.Store) error {
|
||||
}
|
||||
|
||||
for _, cfg := range cfg.Spec.Charts {
|
||||
tc, err := tchart.NewChart(cfg)
|
||||
tc, err := tchart.NewThickChart(cfg)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ type tchart struct {
|
||||
contents map[string]artifact.OCI
|
||||
}
|
||||
|
||||
func NewChart(cfg v1alpha1.ThickChart) (artifact.Collection, error) {
|
||||
func NewThickChart(cfg v1alpha1.ThickChart) (artifact.Collection, error) {
|
||||
o, err := chart.NewChart(cfg.Name, cfg.RepoURL, cfg.Version)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user