9
9
configv1 "github.com/openshift/api/config/v1"
10
10
configv1client "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
11
11
log "github.com/sirupsen/logrus"
12
+ corev1 "k8s.io/api/core/v1"
12
13
k8serrors "k8s.io/apimachinery/pkg/api/errors"
13
14
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
14
15
"k8s.io/apimachinery/pkg/runtime/schema"
@@ -254,11 +255,13 @@ func relatedObjects(name, namespace string) []configv1.ObjectReference {
254
255
Group : olmv1 .GroupName ,
255
256
Resource : olmv1 .OperatorGroupKind ,
256
257
Namespace : namespace ,
258
+ Name : clusterOperatorOLM ,
257
259
},
258
260
{
259
261
Group : olmv1alpha1 .GroupName ,
260
262
Resource : olmv1alpha1 .ClusterServiceVersionKind ,
261
263
Namespace : namespace ,
264
+ Name : clusterOperatorOLM ,
262
265
},
263
266
}
264
267
case clusterOperatorCatalogSource :
@@ -267,15 +270,18 @@ func relatedObjects(name, namespace string) []configv1.ObjectReference {
267
270
Group : olmv1alpha1 .GroupName ,
268
271
Resource : olmv1alpha1 .SubscriptionKind ,
269
272
Namespace : namespace ,
273
+ Name : clusterOperatorCatalogSource ,
270
274
},
271
275
{
272
276
Group : olmv1alpha1 .GroupName ,
273
277
Resource : olmv1alpha1 .InstallPlanKind ,
274
278
Namespace : namespace ,
279
+ Name : clusterOperatorCatalogSource ,
275
280
},
276
281
}
277
282
}
278
283
namespaces := configv1.ObjectReference {
284
+ Group : corev1 .GroupName ,
279
285
Resource : "namespaces" ,
280
286
Name : namespace ,
281
287
}
0 commit comments