plugins/kubernetes/app/models/kubernetes/resource.rb
# wait for delete to finish before doing further work so we don't run into duplication errors
# - first wait is 0 since the request itself already took a few ms
# - we wait long because deleting a deployment will wait for all its' pods to go away which can take time
wait for delete to finish before doing further work so we don't run into duplication errors
first wait is 0 since the request itself already took a few ms
we wait long because deleting a deployment will wait for all its' pods to go away which can take time
wait for delete to finish before doing further work so we don ' t run into duplication errors first wait is 0 since the request itself already took a few ms we wait long because deleting a deployment will wait for all its ' pods to go away which can take time
def delete
        return true unless exist?
        request_delete
        backoff_wait(DELETE_BACKOFF, "delete resource") do
          expire_resource_cache
          return true unless exist?
        end
      end
def delete return true unless exist? request_delete backoff_wait ( DELETE_BACKOFF , "delete resource" ) do expire_resource_cache return true unless exist? end end
wait for delete to finish before doing further work so we don't run into duplication errors
 first wait is 0 since the request itself already took a few ms
 we wait long because deleting a deployment will wait for all its' pods to go away which can take time
wait for delete to finish before doing further work so we don ' t run into duplication errors first wait is 0 since the request itself already took a few ms we wait long because deleting a deployment will wait for all its ' pods to go away which can take time