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