Description of problem:
Unable to delete buildconfig
Version-Release number of selected component (if applicable):
OpenShift Container Platform 3.6
Post upgrade to 3.6 it's not possible to delete a buildconfig:
Tried with admin, cluster-admin as well, bot no luck
- while deleteing BC finalizers: orphan, where original BC does not contain finalizer.
<snip from BC>
Tried using cascade=false without success.
# oc delete bc BC-NAME --cascade=false
After removing finalizers definition bc disappeared immediately.
Build contains ownerReferences, suggested to delete build first and check,tried but did not work.
<snip from build file>
- apiVersion: v1
- apiVersion: build.openshift.io/v1
Steps to Reproduce:
I think the BuildConfig might also depend on secrets/etc. I'm not sure what changed in 3.6 regarding to ownerRefs and GC for BuildConfigs, Ben do you know?
If the Builds have ownerRefs to BuildConfig and the GC is running, I don't think you need a finalizer and the builds should be removed automatically with the GC. This might be a migration issue, where we should make sure no finalizers are present?
I believe the only ownerrefs we added were from builds to buildconfigs. The buildconfig may have refs to secrets but there shouldn't be any ownership relation between them (at least not one *we* setup, obviously a user could create them).
But the orphan finalizer isn't ours, we never had a finalizer for builds/buildconfigs, so I don't know where the finalizer is coming from?