[agent-go]-简化Agent 剔除Harbor K8s Image相关的内容

This commit is contained in:
zeaslity
2025-01-22 15:09:43 +08:00
parent 4edaf9f35a
commit 0d3bb30eed
15 changed files with 2569 additions and 2666 deletions

View File

@@ -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)