diff --git a/pkg/cache/dbcache/dbpackage.go b/pkg/cache/dbcache/dbpackage.go index f3013acf..29ce57c5 100644 --- a/pkg/cache/dbcache/dbpackage.go +++ b/pkg/cache/dbcache/dbpackage.go @@ -147,7 +147,7 @@ func (p *dbPackage) metaAsJson() string { func (p *dbPackage) setMetaFromJson(jsonMeta string) { p.meta = metav1.ObjectMeta{} - json.Unmarshal([]byte(jsonMeta), p.meta) + json.Unmarshal([]byte(jsonMeta), &p.meta) } func (p *dbPackage) specAsJson() string { @@ -157,5 +157,5 @@ func (p *dbPackage) specAsJson() string { func (p *dbPackage) setSpecFromJson(jsonSpec string) { p.spec = v1alpha1.PackageSpec{} - json.Unmarshal([]byte(jsonSpec), p.spec) + json.Unmarshal([]byte(jsonSpec), &p.spec) } diff --git a/pkg/cache/dbcache/dbpackagerevision.go b/pkg/cache/dbcache/dbpackagerevision.go index 4e40a742..095a7081 100644 --- a/pkg/cache/dbcache/dbpackagerevision.go +++ b/pkg/cache/dbcache/dbpackagerevision.go @@ -266,7 +266,7 @@ func (pr *dbPackageRevision) metaAsJson() string { func (pr *dbPackageRevision) setMetaFromJson(jsonMeta string) { pr.meta = metav1.ObjectMeta{} - json.Unmarshal([]byte(jsonMeta), pr.meta) + json.Unmarshal([]byte(jsonMeta), &pr.meta) } func (pr *dbPackageRevision) specAsJson() string { @@ -276,5 +276,5 @@ func (pr *dbPackageRevision) specAsJson() string { func (pr *dbPackageRevision) setSpecFromJson(jsonSpec string) { pr.spec = v1alpha1.PackageRevisionSpec{} - json.Unmarshal([]byte(jsonSpec), pr.spec) + json.Unmarshal([]byte(jsonSpec), &pr.spec) }