e2e: Make getConfigFile() generic

Update the getConfigFile() function to allow any file to be looked
at on the preferred location first and fall back to the alternate
location if it does not exist there.

Signed-off-by: karthik-us <ksubrahm@redhat.com>
This commit is contained in:
karthik-us
2023-06-06 18:46:27 +05:30
committed by mergify[bot]
parent 6ac3a4dabc
commit e4e373cd47
4 changed files with 8 additions and 7 deletions

View File

@ -130,7 +130,7 @@ func deleteRBDPlugin() {
}
func createORDeleteRbdResources(action kubectlAction) {
cephConfigFile := getConfigFile(deployPath + cephConfconfigMap)
cephConfigFile := getConfigFile(cephConfconfigMap, deployPath, examplePath)
resources := []ResourceDeployer{
// shared resources
&yamlResource{