Skip to content

Commit

Permalink
Do not delete resource in case of wait for readiness fail
Browse files Browse the repository at this point in the history
Signed-off-by: David Kornel <kornys@outlook.com>
  • Loading branch information
kornys committed Oct 21, 2024
1 parent dfce8f0 commit 3978d4d
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,14 +476,6 @@ public final <T extends HasMetadata> boolean waitResourceCondition(T resource, R
T res = getKubeClient().getClient().resource(resource).get();
resourceReady[0] = condition.predicate().test(res);
return resourceReady[0];
},
() -> {
T res = getKubeClient().getClient().resource(resource).get();
if (type == null) {
client.getClient().resource(resource).delete();
} else {
type.delete(res);
}
});

return resourceReady[0];
Expand Down

0 comments on commit 3978d4d

Please sign in to comment.