Skip to content

Commit

Permalink
Remove pkgrev ownerRef metadata append
Browse files Browse the repository at this point in the history
  • Loading branch information
kushnaidu committed Aug 28, 2024
1 parent 6b3da56 commit df0bb88
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pkg/meta/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,12 @@ func (c *crdMetadataStore) Create(ctx context.Context, pkgRevMeta PackageRevisio

internalPkgRev := internalapi.PackageRev{
ObjectMeta: metav1.ObjectMeta{
Name: pkgRevMeta.Name,
Namespace: pkgRevMeta.Namespace,
Labels: labels,
Annotations: pkgRevMeta.Annotations,
Finalizers: finalizers,
Name: pkgRevMeta.Name,
Namespace: pkgRevMeta.Namespace,
Labels: labels,
Annotations: pkgRevMeta.Annotations,
Finalizers: finalizers,
OwnerReferences: pkgRevMeta.OwnerReferences,
},
}
klog.Infof("Creating packagerev %s/%s", internalPkgRev.Namespace, internalPkgRev.Name)
Expand All @@ -134,6 +135,7 @@ func (c *crdMetadataStore) Create(ctx context.Context, pkgRevMeta PackageRevisio
}
return PackageRevisionMeta{}, err
}

return toPackageRevisionMeta(&internalPkgRev), nil
}

Expand Down Expand Up @@ -224,7 +226,6 @@ func toPackageRevisionMeta(internalPkgRev *internalapi.PackageRev) PackageRevisi
finalizers = append(finalizers, f)
}
}

return PackageRevisionMeta{
Name: internalPkgRev.Name,
Namespace: internalPkgRev.Namespace,
Expand Down

0 comments on commit df0bb88

Please sign in to comment.