[Agent][Deploy] - cmii deploy template rearrange

This commit is contained in:
zeaslity
2024-06-18 09:52:28 +08:00
parent 51fbb2027d
commit 6b2dc33a34
46 changed files with 12655 additions and 13960 deletions

View File

@@ -28,6 +28,22 @@ var (
IngresApplyFilePath = ""
ConfigMapApplyFilePath = ""
K8sDashboardApplyFileName = "k8s-dashboard.yaml"
EmqxApplyFileName = "k8s-emqx.yaml"
MongoApplyFileName = "k8s-mongo.yaml"
RabbitMQApplyFileName = "k8s-rabbitmq.yaml"
RedisApplyFileName = "k8s-redis.yaml"
MySQLApplyFileName = "k8s-mysql.yaml"
NacosApplyFileName = "k8s-nacos.yaml"
PVCApplyFileName = "k8s-pvc.yaml"
NfsApplyFileName = "k8s-nfs.yaml"
NfsTestApplyFileName = "k8s-nfs-test.yaml"
SRSApplyFileName = "k8s-srs.yaml"
IngresApplyFileName = "k8s-ingress.yaml"
ConfigMapApplyFileName = "k8s-configmap.yaml"
FrontendApplyFileName = "k8s-frontend.yaml"
BackendApplyFileName = "k8s-backend.yaml"
log = logger.Log
Asserter = assert.Asserter
)
@@ -83,21 +99,21 @@ func (env *CommonEnvironmentConfig) GenerateApplyFilePath() {
Asserter.NotEmpty(env.ApplyFilePrefix, "apply file prefix is empty!")
K8sDashboardApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-dashboard.yaml")
EmqxApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-emqx.yaml")
MongoApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-mongo.yaml")
RabbitMQApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-rabbitmq.yaml")
RedisApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-redis.yaml")
MySQLApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-mysql.yaml")
NacosApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-nacos.yaml")
PVCApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-pvc.yaml")
NfsApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-nfs.yaml")
NfsTestApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-nfs-test.yaml")
BackendApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-backend.yaml")
FrontendApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-frontend.yaml")
SRSApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-srs.yaml")
IngresApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-ingress.yaml")
ConfigMapApplyFilePath = filepath.Join(env.ApplyFilePrefix, "k8s-configmap.yaml")
K8sDashboardApplyFilePath = filepath.Join(env.ApplyFilePrefix, K8sDashboardApplyFileName)
EmqxApplyFilePath = filepath.Join(env.ApplyFilePrefix, EmqxApplyFileName)
MongoApplyFilePath = filepath.Join(env.ApplyFilePrefix, MongoApplyFileName)
RabbitMQApplyFilePath = filepath.Join(env.ApplyFilePrefix, RabbitMQApplyFileName)
RedisApplyFilePath = filepath.Join(env.ApplyFilePrefix, RedisApplyFileName)
MySQLApplyFilePath = filepath.Join(env.ApplyFilePrefix, MySQLApplyFileName)
NacosApplyFilePath = filepath.Join(env.ApplyFilePrefix, NacosApplyFileName)
PVCApplyFilePath = filepath.Join(env.ApplyFilePrefix, PVCApplyFileName)
NfsApplyFilePath = filepath.Join(env.ApplyFilePrefix, NfsApplyFileName)
NfsTestApplyFilePath = filepath.Join(env.ApplyFilePrefix, NfsTestApplyFileName)
BackendApplyFilePath = filepath.Join(env.ApplyFilePrefix, BackendApplyFileName)
FrontendApplyFilePath = filepath.Join(env.ApplyFilePrefix, FrontendApplyFileName)
SRSApplyFilePath = filepath.Join(env.ApplyFilePrefix, SRSApplyFileName)
IngresApplyFilePath = filepath.Join(env.ApplyFilePrefix, IngresApplyFileName)
ConfigMapApplyFilePath = filepath.Join(env.ApplyFilePrefix, ConfigMapApplyFileName)
}