Closed MarcelMue closed 6 years ago
@MarcelMue and I discussed that. The desired state is actually a diff in this case, which is ugly. But we didn't have a better idea how to solve that without a big effort to make this thing just fit the framework (w/o further benefits).
This adds the create state functions and unit tests for them. The general idea is to get a desired set of IPs on an endpoint in the
desiredState
, comparing it with the existing IPs in thecurrentState
and emitting a set of IPs to be added in thecreateState
.