diff --git a/pkg/collection/k3s/k3s.go b/pkg/collection/k3s/k3s.go index b1cef80..e8688be 100644 --- a/pkg/collection/k3s/k3s.go +++ b/pkg/collection/k3s/k3s.go @@ -16,6 +16,8 @@ import ( "github.com/rancherfederal/ocil/pkg/artifacts/file" "github.com/rancherfederal/ocil/pkg/artifacts/file/getter" + + "github.com/rancherfederal/hauler/pkg/reference" ) var _ artifacts.OCICollection = (*k3s)(nil) @@ -98,7 +100,7 @@ func (k *k3s) executable() error { f := file.NewFile(fref) - ref := fmt.Sprintf("k3s:%s", k.dnsCompliantVersion()) + ref := fmt.Sprintf("%s/k3s:%s", reference.DefaultNamespace, k.dnsCompliantVersion()) k.contents[ref] = f return nil } @@ -106,7 +108,9 @@ func (k *k3s) executable() error { func (k *k3s) bootstrap() error { namedBootstrapUrl := fmt.Sprintf("%s?filename=%s", bootstrapUrl, "k3s-init.sh") f := file.NewFile(namedBootstrapUrl) - k.contents["k3s-init.sh"] = f + + ref := fmt.Sprintf("%s/k3s-init.sh:%s", reference.DefaultNamespace, reference.DefaultTag) + k.contents[ref] = f return nil }