Skip to content

Commit a844420

Browse files
committed
feat: add flag to skip DevOps initialization
- Add a new boolean flag `SkipDevOPSInit` to Meta struct - Add corresponding flag definition to `GetCustomFlags` method Signed-off-by: ysicing <[email protected]>
1 parent 6dd3a15 commit a844420

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pkg/quickon/quickon.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ type Meta struct {
4343
ConsolePassword string
4444
DevopsMode bool
4545
OffLine bool
46+
SkipDevOPSInit bool
4647
Type string
4748
App string
4849
kubeClient *k8s.Client
@@ -82,6 +83,12 @@ func (m *Meta) GetCustomFlags() []types.Flag {
8283
V: false,
8384
Hidden: true,
8485
},
86+
{
87+
Name: "skip-devops-init",
88+
Usage: "allow user skip devops init, default: false",
89+
P: &m.SkipDevOPSInit,
90+
V: false,
91+
},
8592
}
8693
}
8794

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

339+
if m.SkipDevOPSInit {
340+
helmargs = append(helmargs, "--set", "env.ZT_SKIP_DEVOPS_INIT=true")
341+
}
342+
332343
helmargs = append(helmargs, "--set", fmt.Sprintf("ingress.host=%s", hostdomain))
333344

334345
if m.DevopsMode {

0 commit comments

Comments
 (0)