[Agent][Deploy] - cmii update
This commit is contained in:
17
agent-deploy/a_nfs/DeployNFS.go
Normal file → Executable file
17
agent-deploy/a_nfs/DeployNFS.go
Normal file → Executable file
@@ -6,28 +6,17 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
NfsApplyFilePath = ""
|
||||
NfsTestApplyFilePath = ""
|
||||
log = logger.Log
|
||||
log = logger.Log
|
||||
)
|
||||
|
||||
type NfsDeployConfig struct {
|
||||
NfsLocalPath string
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
NfsApplyFilePath = z_dep.ApplyFilePrefix + "k8s-nfs.yaml"
|
||||
NfsTestApplyFilePath = z_dep.ApplyFilePrefix + "k8s-nfs-test.yaml"
|
||||
|
||||
log.InfoF("NfsApplyFilePath : %s\n", NfsApplyFilePath)
|
||||
log.InfoF("NfsTestApplyFilePath : %s\n", NfsTestApplyFilePath)
|
||||
}
|
||||
|
||||
func NFSDeploy(commonEnv *z_dep.CommonEnvironmentConfig) bool {
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiNfsTemplate, NfsApplyFilePath)
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiNfsTemplate, z_dep.NfsApplyFilePath)
|
||||
}
|
||||
|
||||
func NFSTestDeploy(commonEnv *z_dep.CommonEnvironmentConfig) bool {
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiNFSTestTemplate, NfsTestApplyFilePath)
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiNFSTestTemplate, z_dep.NfsTestApplyFilePath)
|
||||
}
|
||||
|
||||
0
agent-deploy/a_nfs/TemplateNFS.go
Normal file → Executable file
0
agent-deploy/a_nfs/TemplateNFS.go
Normal file → Executable file
0
agent-deploy/a_nfs/TemplateNFSTest.go
Normal file → Executable file
0
agent-deploy/a_nfs/TemplateNFSTest.go
Normal file → Executable file
Reference in New Issue
Block a user