(ctx context.Context, clusterId string, name string, config *dto.PluginSetting)
| 150 | } |
| 151 | |
| 152 | func (m *imlPluginClusterModule) Set(ctx context.Context, clusterId string, name string, config *dto.PluginSetting) error { |
| 153 | |
| 154 | err := m.service.SetCluster(ctx, clusterId, name, config.Status, config.Config) |
| 155 | if err != nil { |
| 156 | return err |
| 157 | } |
| 158 | |
| 159 | return m.initCluster(ctx, clusterId) |
| 160 | } |
| 161 | |
| 162 | func (m *imlPluginClusterModule) initCluster(ctx context.Context, clusterId string) error { |
| 163 | client, err := m.clusterService.GatewayClient(ctx, clusterId) |
nothing calls this directly
no test coverage detected