Skip to content

Commit

Permalink
feat: add flag to skip DevOps initialization
Browse files Browse the repository at this point in the history
- Add a new boolean flag `SkipDevOPSInit` to Meta struct
- Add corresponding flag definition to `GetCustomFlags` method

Signed-off-by: ysicing <[email protected]>
  • Loading branch information
ysicing committed Apr 15, 2024
1 parent 6dd3a15 commit a844420
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/quickon/quickon.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type Meta struct {
ConsolePassword string
DevopsMode bool
OffLine bool
SkipDevOPSInit bool
Type string
App string
kubeClient *k8s.Client
Expand Down Expand Up @@ -82,6 +83,12 @@ func (m *Meta) GetCustomFlags() []types.Flag {
V: false,
Hidden: true,
},
{
Name: "skip-devops-init",
Usage: "allow user skip devops init, default: false",
P: &m.SkipDevOPSInit,
V: false,
},
}
}

Expand Down Expand Up @@ -329,6 +336,10 @@ func (m *Meta) Init() error {
helmargs = append(helmargs, "--set", "env.CNE_MARKET_API_PORT=8088")
}

if m.SkipDevOPSInit {
helmargs = append(helmargs, "--set", "env.ZT_SKIP_DEVOPS_INIT=true")
}

helmargs = append(helmargs, "--set", fmt.Sprintf("ingress.host=%s", hostdomain))

if m.DevopsMode {
Expand Down

0 comments on commit a844420

Please sign in to comment.