Skip to content

Commit

Permalink
fix: throw exception if configuration is missing for reconciler
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed Feb 28, 2022
1 parent 5f7496c commit 576779c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ CSVMetadataBuildItem gatherCSVMetadata(CombinedIndexBuildItem combinedIndexBuild
// figure out which group should be used to generate CSV
final var name = reconcilerInfo.name();
final var config = controllerConfigs.get(name);
if(config == null) {
throw new IllegalStateException("Missing configuration for reconciler " + name);
}
final var csvMetadata = getCSVMetadata(reconcilerInfo.classInfo(), name, index);
csvGroupMetadata.put(csvMetadata.name, csvMetadata);
final var resourceFullName = config.getResourceTypeName();
Expand Down

0 comments on commit 576779c

Please sign in to comment.