File tree 1 file changed +2
-2
lines changed
pkg/controller/operators/olm 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1149,7 +1149,7 @@ func (a *Operator) removeDanglingChildCSVs(csv *v1alpha1.ClusterServiceVersion)
1149
1149
1150
1150
func (a * Operator ) deleteChild (csv * v1alpha1.ClusterServiceVersion , logger * logrus.Entry ) error {
1151
1151
logger .Debug ("gcing csv" )
1152
- return a .client .OperatorsV1alpha1 ().ClusterServiceVersions (csv .GetNamespace ()).Delete (context .TODO (), csv .GetName (), * metav1 .NewDeleteOptions ( 0 ) )
1152
+ return a .client .OperatorsV1alpha1 ().ClusterServiceVersions (csv .GetNamespace ()).Delete (context .TODO (), csv .GetName (), metav1.DeleteOptions {} )
1153
1153
}
1154
1154
1155
1155
// syncClusterServiceVersion is the method that gets called when we see a CSV event in the cluster
@@ -2103,7 +2103,7 @@ func (a *Operator) transitionCSVState(in v1alpha1.ClusterServiceVersion) (out *v
2103
2103
syncError = fmt .Errorf ("marked as replacement, but no replacement CSV found in cluster" )
2104
2104
}
2105
2105
case v1alpha1 .CSVPhaseDeleting :
2106
- syncError = a .client .OperatorsV1alpha1 ().ClusterServiceVersions (out .GetNamespace ()).Delete (context .TODO (), out .GetName (), * metav1 .NewDeleteOptions ( 0 ) )
2106
+ syncError = a .client .OperatorsV1alpha1 ().ClusterServiceVersions (out .GetNamespace ()).Delete (context .TODO (), out .GetName (), metav1.DeleteOptions {} )
2107
2107
if syncError != nil {
2108
2108
logger .Debugf ("unable to get delete csv marked for deletion: %s" , syncError .Error ())
2109
2109
}
You can’t perform that action at this time.
0 commit comments