| 51 | } |
| 52 | |
| 53 | type CpApiServerCreationArguments struct { |
| 54 | Client persistence.PersistenceLayer |
| 55 | OutputFile string |
| 56 | PlacementPolicy placement_policy.PlacementPolicy |
| 57 | DataplaneCreator core.DataplaneFactory |
| 58 | WorkerNodeCreator core.WorkerNodeFactory |
| 59 | Cfg *config2.ControlPlaneConfig |
| 60 | } |
| 61 | |
| 62 | func CreateNewCpApiServer(args *CpApiServerCreationArguments) (*CpApiServer, chan leader_election.AnnounceLeadership) { |
| 63 | cp := control_plane.NewControlPlane( |
nothing calls this directly
no outgoing calls
no test coverage detected