Skip to content

Commit febbf25

Browse files
committed
remove the olm.managed label on legacy installed CRDs
This will allow cleanup of 'operator' objects which own these resources and got created by service operators prior to FR2
1 parent 1bdba69 commit febbf25

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/operator/bindata/merge.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ func mergeLabels(current, updated *uns.Unstructured) {
205205
curLabels["openstack.openstack.org/managed"] = "true"
206206
}
207207

208+
// remove the olm.managed label this allows cleanup of the operator objects
209+
// from legacy service operator deployments prior to FR2
210+
delete(curLabels, "olm.managed")
211+
208212
updated.SetLabels(curLabels)
209213
}
210214

0 commit comments

Comments
 (0)