Skip to content

Commit

Permalink
fix(installer): deploy registry earlier (#1753)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoryu committed Jan 24, 2022
1 parent c947e70 commit 66b2563
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions cmd/tke-installer/app/installer/installer.go
Expand Up @@ -299,6 +299,19 @@ func (t *TKE) initSteps() {
},
}...)

if t.Para.Config.Registry.TKERegistry != nil {
t.steps = append(t.steps, []types.Handler{
{
Name: "Install tke-registry-api",
Func: t.installTKERegistryAPI,
},
{
Name: "Install tke-registry-controller",
Func: t.installTKERegistryController,
},
}...)
}

if t.Para.Config.Gateway != nil {
if t.IncludeSelf {
t.steps = append(t.steps, []types.Handler{
Expand All @@ -320,19 +333,6 @@ func (t *TKE) initSteps() {
}...)
}

if t.Para.Config.Registry.TKERegistry != nil {
t.steps = append(t.steps, []types.Handler{
{
Name: "Install tke-registry-api",
Func: t.installTKERegistryAPI,
},
{
Name: "Install tke-registry-controller",
Func: t.installTKERegistryController,
},
}...)
}

if t.Para.Config.Registry.ThirdPartyRegistry == nil &&
t.Para.Config.Registry.TKERegistry != nil {
t.steps = append(t.steps, []types.Handler{
Expand Down

0 comments on commit 66b2563

Please sign in to comment.