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 @@ -1246,7 +1246,7 @@ func (a *Operator) removeDanglingChildCSVs(csv *v1alpha1.ClusterServiceVersion)
1246
1246
1247
1247
func (a * Operator ) deleteChild (csv * v1alpha1.ClusterServiceVersion , logger * logrus.Entry ) error {
1248
1248
logger .Debug ("gcing csv" )
1249
- return a .client .OperatorsV1alpha1 ().ClusterServiceVersions (csv .GetNamespace ()).Delete (context .TODO (), csv .GetName (), * metav1 .NewDeleteOptions ( 0 ) )
1249
+ return a .client .OperatorsV1alpha1 ().ClusterServiceVersions (csv .GetNamespace ()).Delete (context .TODO (), csv .GetName (), metav1.DeleteOptions {} )
1250
1250
}
1251
1251
1252
1252
// syncClusterServiceVersion is the method that gets called when we see a CSV event in the cluster
@@ -2287,7 +2287,7 @@ func (a *Operator) transitionCSVState(in v1alpha1.ClusterServiceVersion) (out *v
2287
2287
syncError = fmt .Errorf ("marked as replacement, but no replacement CSV found in cluster" )
2288
2288
}
2289
2289
case v1alpha1 .CSVPhaseDeleting :
2290
- syncError = a .client .OperatorsV1alpha1 ().ClusterServiceVersions (out .GetNamespace ()).Delete (context .TODO (), out .GetName (), * metav1 .NewDeleteOptions ( 0 ) )
2290
+ syncError = a .client .OperatorsV1alpha1 ().ClusterServiceVersions (out .GetNamespace ()).Delete (context .TODO (), out .GetName (), metav1.DeleteOptions {} )
2291
2291
if syncError != nil {
2292
2292
logger .Debugf ("unable to get delete csv marked for deletion: %s" , syncError .Error ())
2293
2293
}
You can’t perform that action at this time.
0 commit comments