(sourceNamespace string)
| 275 | } |
| 276 | |
| 277 | func (m *MirrorComponent) mapNamespaceAndName(sourceNamespace string) string { |
| 278 | namespace := sourceNamespace |
| 279 | if ns, found := mirrorOrganizationMap[sourceNamespace]; found { |
| 280 | namespace = ns |
| 281 | } else { |
| 282 | //map all organization to AIWizards if not found |
| 283 | namespace = "AIWizards" |
| 284 | } |
| 285 | |
| 286 | return namespace |
| 287 | } |
| 288 | |
| 289 | func (c *MirrorComponent) CheckMirrorProgress(ctx context.Context) error { |
| 290 | mirrors, err := c.mirrorStore.Unfinished(ctx) |