(ctx context.Context)
| 33 | return m.initAllCluster(ctx) |
| 34 | } |
| 35 | func (m *imlPluginClusterModule) initAllCluster(ctx context.Context) error { |
| 36 | |
| 37 | clusters, err := m.clusterService.List(ctx) |
| 38 | if err != nil { |
| 39 | return err |
| 40 | } |
| 41 | |
| 42 | for _, c := range clusters { |
| 43 | err := m.initCluster(ctx, c.Uuid) |
| 44 | if err != nil { |
| 45 | log.Warn("init cluster:%s %s", c.Name, err.Error()) |
| 46 | } |
| 47 | } |
| 48 | return nil |
| 49 | } |
| 50 | func (m *imlPluginClusterModule) initGateway(ctx context.Context, clusterId string, clientDriver gateway.IClientDriver) error { |
| 51 | configForPartitions, err := m.service.ListCluster(ctx, clusterId) |
| 52 | if err != nil { |
no test coverage detected