Skip to content

Commit

Permalink
🎨 k8s: Try to dump k8s condition in a more firendly manner.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignaudo committed Jun 22, 2024
1 parent dea3285 commit 9b1d31f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ public void onUpdate(final Cluster oldObj, final Cluster newObj) {
latch.countDown();
LOG.info("Cluster: {} created.", newObj.getMetadata().getName());
} else {
LOG.debug("Not correct state: {}", conds);
LOG.debug("Not correct state: {}", dumpConds(conds));
}
}

private static Object dumpConds(final List<Conditions> conds) {
return conds.stream().map(Conditions::getStatus).toList();
}

@Override
public void onDelete(final Cluster obj, final boolean deletedFinalStateUnknown) {
//
Expand Down

0 comments on commit 9b1d31f

Please sign in to comment.