File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
pkg/controller/operators/olm Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -438,25 +438,6 @@ func (a *Operator) syncClusterServiceVersion(obj interface{}) (syncError error)
438
438
439
439
outCSV , syncError := a .transitionCSVState (* clusterServiceVersion )
440
440
441
- opNamespace , ok := clusterServiceVersion .Annotations ["olm.operatorNamespace" ]
442
- if ok {
443
- // ensure "parent" CSV has not been deleted
444
- csvs := a .csvsInNamespace (opNamespace )
445
- csv , found := csvs [clusterServiceVersion .Name ]
446
- if ! found {
447
- targetNamespaces , ok := clusterServiceVersion .Annotations ["olm.targetNamespaces" ]
448
- if ! ok {
449
- return fmt .Errorf ("Did not find targetNamespaces annotation on %v" , csv )
450
- }
451
- for _ , ns := range strings .Split (targetNamespaces , "," ) {
452
- if err := a .client .OperatorsV1alpha1 ().ClusterServiceVersions (ns ).Delete (csv .Name , & metav1.DeleteOptions {}); err != nil {
453
- return err
454
- }
455
- }
456
- return nil
457
- }
458
- }
459
-
460
441
// no changes in status, don't update
461
442
if outCSV .Status .Phase == clusterServiceVersion .Status .Phase && outCSV .Status .Reason == clusterServiceVersion .Status .Reason && outCSV .Status .Message == clusterServiceVersion .Status .Message {
462
443
return
You can’t perform that action at this time.
0 commit comments