[agent-go]-简化Agent 剔除Harbor K8s Image相关的内容
This commit is contained in:
@@ -33,7 +33,8 @@ const (
|
||||
InstallDocker = "docker"
|
||||
InstallDockerCompose = "dockercompose"
|
||||
InstallHarbor = "harbor"
|
||||
InstallDefaultSsh = "ssh"
|
||||
InstallDefaultSsh = "sshkey"
|
||||
ModifySSHConfig = "sshconfig"
|
||||
DisableSwap = "swap"
|
||||
DisableSelinux = "selinux"
|
||||
DisableFirewall = "firewall"
|
||||
@@ -113,6 +114,8 @@ func BastionModeInit() {
|
||||
switch inputCommand {
|
||||
case InstallDefaultSsh:
|
||||
beautifulPrintExeResult(agentOperator.InstallDefaultSshBastion())
|
||||
case ModifySSHConfig:
|
||||
beautifulPrintExeResult(agentOperator.ModifySSHConfigBastion())
|
||||
case DisableSwap:
|
||||
beautifulPrintExeResult(agentOperator.DisableSwapBastion())
|
||||
case DisableSelinux:
|
||||
@@ -165,6 +168,7 @@ func buildBastionModeFunction() {
|
||||
tcc.Insert(InstallDockerCompose)
|
||||
tcc.Insert(InstallMinio)
|
||||
tcc.Insert(InstallDefaultSsh)
|
||||
tcc.Insert(ModifySSHConfig)
|
||||
tcc.Insert(DisableSwap)
|
||||
tcc.Insert(DisableSelinux)
|
||||
tcc.Insert(DisableFirewall)
|
||||
|
||||
Reference in New Issue
Block a user