[agent-deploy] - basic accomplish
This commit is contained in:
33
agent-operator/deploy/a_nfs/DeployNFS.go
Normal file
33
agent-operator/deploy/a_nfs/DeployNFS.go
Normal file
@@ -0,0 +1,33 @@
|
||||
package a_nfs
|
||||
|
||||
import (
|
||||
"wdd.io/agent-common/logger"
|
||||
"wdd.io/agent-operator/deploy/z_dep"
|
||||
)
|
||||
|
||||
var (
|
||||
NfsApplyFilePath = ""
|
||||
NfsTestApplyFilePath = ""
|
||||
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)
|
||||
}
|
||||
|
||||
func NFSTestDeploy(commonEnv *z_dep.CommonEnvironmentConfig) bool {
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiNFSTestTemplate, NfsTestApplyFilePath)
|
||||
}
|
||||
Reference in New Issue
Block a user