// CreateBuild loads the builds definition from the file path, unifies the output image based on
// the identifier and creates it in a namespace
CreateBuild loads the builds definition from the file path, unifies the output image based on
the identifier and creates it in a namespace
// CreateBuild loads the builds definition from the file path unifies the output image based on // the identifier and creates it in a namespace
func createBuild(ctx *framework.Context, namespace string, identifier string, filePath string, timeout time.Duration, retry time.Duration) {
	Logf("Creating build %s", identifier)
	rootDir, err := getRootDir()
	Expect(err).ToNot(HaveOccurred())
	b, err := buildTestData(namespace, identifier, rootDir+"/"+filePath)
	Expect(err).ToNot(HaveOccurred())
	amendBuild(identifier, b)
	f := framework.Global
	err = f.Client.Create(context.TODO(), b, cleanupOptions(ctx, timeout, retry))
	Expect(err).ToNot(HaveOccurred(), "Unable to create build %s", identifier)
	Logf("Build %s created", identifier)
}
func createBuild ( ctx * framework . Context , namespace string , identifier string , filePath string , timeout time . Duration , retry time . Duration ) { Logf ( " " , identifier ) rootDir , err := getRootDir ( ) Expect ( err ) . ToNot ( HaveOccurred ( ) ) b , err := buildTestData ( namespace , identifier , rootDir + " " + filePath ) Expect ( err ) . ToNot ( HaveOccurred ( ) ) amendBuild ( identifier , b ) f := framework . Global err = f . Client . Create ( context . TODO ( ) , b , cleanupOptions ( ctx , timeout , retry ) ) Expect ( err ) . ToNot ( HaveOccurred ( ) , " " , identifier ) Logf ( " " , identifier ) }
CreateBuild loads the builds definition from the file path, unifies the output image based on
the identifier and creates it in a namespace
CreateBuild loads the builds definition from the file path unifies the output image based on the identifier and creates it in a namespace