Closed BlaineEXE closed 3 years ago
Why not also check for nil in addition to empty here? Eg:
if ob == nil || ob.Spec.ClaimRef == nil || *ob.Spec.ClaimRef == emptyRef {
Would this eliminate the need for createdOB
in updateOnSuccess
?
This OB copy and the OBC copy below add a GC burden that may not be necessary.
deleteSecretAndWait
(called by deleteExistingSecretAndConfigMapIfExist
) gets the Secret. But we already have the Secret so I don't see the need to re-get it. This is a nit comment that perhaps can be looked into in a separate PR. Does not impact merge-ability of this pr.
deleteSecretAndWait
(called bydeleteExistingSecretAndConfigMapIfExist
) gets the Secret. But we already have the Secret so I don't see the need to re-get it. This is a nit comment that perhaps can be looked into in a separate PR. Does not impact merge-ability of this pr.
I did also notice that today. Let's handle that in an update if that sounds good? Created https://github.com/kube-object-storage/lib-bucket-provisioner/issues/202 for this.
Signed-off-by: Blaine Gardner blaine.gardner@redhat.com