cleanup: Move common files to deploy folder

Few common files related to deployments were kept
in the examples folder initially. Moving them to
deploy folder and updating the relevant files.

Signed-off-by: karthik-us <ksubrahm@redhat.com>
This commit is contained in:
karthik-us
2023-05-30 20:47:51 +05:30
committed by mergify[bot]
parent b5e68c810e
commit 6ac3a4dabc
11 changed files with 27 additions and 13 deletions

View File

@ -1732,3 +1732,13 @@ func rwopMayFail(err error) bool {
return !rwopSupported
}
// getConfigFile returns the passed config file location if it exists, else
// returns the old location of the config file under 'examples/' directory.
func getConfigFile(configFile string) string {
if _, err := os.Stat(configFile); os.IsNotExist(err) {
configFile = examplePath + cephConfconfigMap
}
return configFile
}