Skip to content

Commit

Permalink
Add missing owner references (#1681)
Browse files Browse the repository at this point in the history
After hco deletion, service and route objects are
left. This PR fixes that issue.

Signed-off-by: Erkan Erol <[email protected]>

Co-authored-by: Erkan Erol <[email protected]>
  • Loading branch information
kubevirt-bot and Erkan Erol authored Dec 30, 2021
1 parent 65a643e commit b9e882f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/operands/cliDownload.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func newCliDownloadsServiceHandler(Client client.Client, Scheme *runtime.Scheme)
Scheme: Scheme,
crType: "Service",
removeExistingOwner: false,
setControllerReference: false,
setControllerReference: true,
hooks: &cliDownloadsServiceHooks{},
}
}
Expand Down Expand Up @@ -201,7 +201,7 @@ func newCliDownloadsRouteHandler(Client client.Client, Scheme *runtime.Scheme) *
Scheme: Scheme,
crType: "Route",
removeExistingOwner: false,
setControllerReference: false,
setControllerReference: true,
hooks: &cliDownloadsRouteHooks{},
}
}
Expand Down

0 comments on commit b9e882f

Please sign in to comment.