Skip to content

Commit

Permalink
Error reconciling KafkaAccess resources : the server rejected our req…
Browse files Browse the repository at this point in the history
…uest due to an error in our request #39

Signed-off-by: Luca Burgazzoli <[email protected]>
  • Loading branch information
lburgazzoli committed Oct 19, 2023
1 parent 73ab2ca commit 286c880
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ public UpdateControl<KafkaAccess> reconcile(final KafkaAccess kafkaAccess, final
kafkaAccess.setStatus(status);
return status;
});

kafkaAccessStatus.setBinding(new BindingStatus(kafkaAccessName));
kafkaAccessStatus.setReadyCondition(true);
return UpdateControl.patchStatus(kafkaAccess);
kafkaAccessStatus.setReadyCondition(true, "Ready", "Ready");

return UpdateControl.updateStatus(kafkaAccess);
}

private void createOrUpdateSecret(final Map<String, String> data, final KafkaAccess kafkaAccess) {
Expand Down Expand Up @@ -202,6 +204,7 @@ public ErrorStatusUpdateControl<KafkaAccess> updateErrorStatus(KafkaAccess kafka
reason = "InvalidUserKind";
}
status.setReadyCondition(false, e.getMessage(), reason);
return ErrorStatusUpdateControl.patchStatus(kafkaAccess);

return ErrorStatusUpdateControl.updateStatus(kafkaAccess);
}
}

0 comments on commit 286c880

Please sign in to comment.