[agent-go]-简化Agent 剔除Harbor K8s Image相关的内容
This commit is contained in:
@@ -245,6 +245,7 @@ func buildOctopusTCPConnect(agentConfig *viper.Viper) *rabbitmq.RabbitTCPConnect
|
||||
}
|
||||
}
|
||||
|
||||
// refreshAgentInfoByStatusInfo 调用AgentStatus查询Agent的状态信息,
|
||||
func refreshAgentInfoByStatusInfo(agentInfo *a_status.AgentInfo, agentServerInfo *a_agent.AgentServerInfo) {
|
||||
|
||||
// cpu part
|
||||
|
||||
@@ -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