Skip to content

Commit aee24f4

Browse files
Jeff Peelernjhale
authored andcommitted
fix(catalog): add ownerreferences for bundle image resources
1 parent bf5e886 commit aee24f4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkg/controller/operators/catalog/operator.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,18 @@ func (o *Operator) checkBundleLookups(plan *v1alpha1.InstallPlan) (bool, error)
10561056
}
10571057
logrus.Infof("Launched bundle job for image %v", bundleLookup.Image)
10581058

1059+
ownerutil.AddOwner(job, plan, false, false)
1060+
ownerutil.AddOwner(configmap, plan, false, false)
1061+
// TODO: fix this, maybe?
1062+
// catSrc, err := o.lister.OperatorsV1alpha1().CatalogSourceLister().CatalogSources(plan.Spec.CatalogSourceNamespace).Get(plan.Spec.CatalogSource)
1063+
// if err != nil {
1064+
// return false, err
1065+
// }
1066+
// err = ownerutil.AddOwnerLabels(configmap, catSrc)
1067+
// if err != nil {
1068+
// return false, err
1069+
// }
1070+
10591071
bundleLookup.BundleJob = &v1alpha1.BundleJob{
10601072
// job condition and completion time will be filled out later (installplan sync)
10611073
Name: job.GetName(),

0 commit comments

Comments
 (0)