Skip to content

Commit

Permalink
fix: add missing mapping for UpdateApiEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiiiel committed Jan 29, 2025
1 parent 86042e4 commit 5d215a7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public interface ApiAdapter {
@ValueMapping(source = MappingConstants.ANY_REMAINING, target = MappingConstants.NULL)
@Mapping(source = "version", target = "apiVersion")
@Mapping(target = "disableMembershipNotifications", expression = "java(!spec.isNotifyMembers())")
@Mapping(target = "listeners", expression = "java((List<Listener>) spec.getListeners())")
@Mapping(target = "endpointGroups", expression = "java((List<EndpointGroup>) spec.getEndpointGroups())")
@Mapping(target = "flows", expression = "java((List<Flow>) spec.getFlows())")
UpdateApiEntity toUpdateApiEntity(ApiCRDSpec spec);

@ValueMapping(source = MappingConstants.ANY_REMAINING, target = MappingConstants.NULL)
Expand Down

0 comments on commit 5d215a7

Please sign in to comment.