Skip to content
This repository was archived by the owner on Feb 2, 2022. It is now read-only.

Commit bce28ed

Browse files
stishkinstas
andauthored
Rename repository to registry for better consistency (#47)
Co-authored-by: stas <[email protected]>
1 parent 49bfcfc commit bce28ed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Orchestrator/OrchestratorLogic/Orchestrator.fs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ module ContainerInstances =
101101

102102
type DockerConfig =
103103
{
104-
Repository: string
104+
Registry: string
105105
User: string
106106
Password: string
107107
}
@@ -292,7 +292,7 @@ module ContainerInstances =
292292
|> Seq.tryPick( fun (k, v) ->
293293
let t = sprintf"{%s}" k
294294
if c.Container.Contains(t, StringComparison.OrdinalIgnoreCase) then
295-
Some (c.Container.Replace(t, v.Repository, StringComparison.OrdinalIgnoreCase))
295+
Some (c.Container.Replace(t, v.Registry, StringComparison.OrdinalIgnoreCase))
296296
else
297297
None
298298
)
@@ -608,15 +608,15 @@ module ContainerInstances =
608608
let _1_2 =
609609
let dockerConfigs =
610610
dockerConfigs
611-
|> Seq.distinctBy(fun (_, dockerConfig) -> dockerConfig.Repository)
611+
|> Seq.distinctBy(fun (_, dockerConfig) -> dockerConfig.Registry)
612612

613613
if Seq.isEmpty dockerConfigs then
614614
_1_1.WithPublicImageRegistryOnly()
615615
else
616616
let h = snd (Seq.head dockerConfigs)
617-
(_1_1.WithPrivateImageRegistry(h.Repository, h.User, h.Password), Seq.tail dockerConfigs)
617+
(_1_1.WithPrivateImageRegistry(h.Registry, h.User, h.Password), Seq.tail dockerConfigs)
618618
||> Seq.fold(fun a (_, v) ->
619-
a.WithPrivateImageRegistry(v.Repository, v.User, v.Password)
619+
a.WithPrivateImageRegistry(v.Registry, v.User, v.Password)
620620
)
621621

622622
let _1 =

0 commit comments

Comments
 (0)