Skip to content

Commit e667548

Browse files
committed
Return kind/name for created objects
Signed-off-by: Shmuel Kallner <[email protected]>
1 parent a04d256 commit e667548

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/utils/utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,11 @@ func DeleteObjects(testConfig *TestConfig, kindAndNames []string) {
459459
}
460460
}
461461

462-
// applyYAMLFile reads a file containing YAML (possibly multiple docs)
462+
// ApplyYAMLFile reads a file containing YAML (possibly multiple docs)
463463
// and applies each object to the cluster.
464-
func ApplyYAMLFile(testConfig *TestConfig, filePath string) {
464+
func ApplyYAMLFile(testConfig *TestConfig, filePath string) []string {
465465
// Create the resources from the manifest file
466-
CreateObjsFromYaml(testConfig, ReadYaml(filePath))
466+
return CreateObjsFromYaml(testConfig, ReadYaml(filePath))
467467
}
468468

469469
// ReadYaml is a helper function to read in K8S YAML files and split by the --- separator

0 commit comments

Comments
 (0)