Skip to content

Commit 6635dde

Browse files
feat: Building the feast image (#4775)
Adding code to build the feast container image during the operator test run. Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com>
1 parent a36f7e5 commit 6635dde

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

infra/feast-operator/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ run: manifests generate fmt vet ## Run a controller from your host.
144144
docker-build: ## Build docker image with the manager.
145145
$(CONTAINER_TOOL) build -t ${IMG} .
146146

147+
## Build feast docker image.
148+
.PHONY: feast-docker-build
149+
feast-image-build:
150+
cd ./../.. && VERSION=operator.v0 REGISTRY=example.com make build-feature-transformation-server-docker
151+
152+
147153
.PHONY: docker-push
148154
docker-push: ## Push docker image with the manager.
149155
$(CONTAINER_TOOL) push ${IMG}

infra/feast-operator/test/e2e/e2e_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ var _ = Describe("controller", Ordered, func() {
7171
err = utils.LoadImageToKindClusterWithName(projectimage)
7272
ExpectWithOffset(1, err).NotTo(HaveOccurred())
7373

74+
By("building the feast image")
75+
cmd = exec.Command("make", "feast-image-build")
76+
_, err = utils.Run(cmd)
77+
ExpectWithOffset(1, err).NotTo(HaveOccurred())
78+
79+
var feastImage = "example.com/feature-transformation-server:operator.v0"
80+
By("loading the the feast image on Kind")
81+
err = utils.LoadImageToKindClusterWithName(feastImage)
82+
ExpectWithOffset(1, err).NotTo(HaveOccurred())
83+
7484
By("installing CRDs")
7585
cmd = exec.Command("make", "install")
7686
_, err = utils.Run(cmd)

0 commit comments

Comments
 (0)