embrace the thick chart

This commit is contained in:
Josh Wolf
2021-12-03 23:21:20 -07:00
parent a8e9d853db
commit e812c2107c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
// }
+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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