giantswarm / endpoint-operator

Apache License 2.0
2 stars 1 forks source link

Add GetCreateState and ProcessCreateState #8

Closed MarcelMue closed 6 years ago

MarcelMue commented 6 years ago

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 the currentState and emitting a set of IPs to be added in the createState.

kopiczko commented 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).