Skip to content

Commit

Permalink
WIP: Adding initiall support for OVA migration
Browse files Browse the repository at this point in the history
Signed-off-by: Bella Khizgiyaev <[email protected]>
  • Loading branch information
bkhizgiy committed Jul 4, 2023
1 parent 4ddd4f2 commit da5e719
Show file tree
Hide file tree
Showing 8 changed files with 503 additions and 57 deletions.
16 changes: 13 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ OPERATOR_INDEX_IMAGE ?= $(REGISTRY)/$(REGISTRY_ACCOUNT)/forklift-operator-index:
POPULATOR_CONTROLLER_IMAGE ?= $(REGISTRY)/$(REGISTRY_ACCOUNT)/populator-controller:$(REGISTRY_TAG)
OVIRT_POPULATOR_IMAGE ?= $(REGISTRY)/$(REGISTRY_ACCOUNT)/ovirt-populator:$(REGISTRY_TAG)
OPENSTACK_POPULATOR_IMAGE ?= $(REGISTRY)/$(REGISTRY_ACCOUNT)/openstack-populator:$(REGISTRY_TAG)
OVA_PARSER_IMAGE ?= $(REGISTRY)/$(REGISTRY_ACCOUNT)/ova-parser:$(REGISTRY_TAG)

### External images
MUST_GATHER_IMAGE ?= quay.io/kubev2v/forklift-must-gather:latest
Expand Down Expand Up @@ -210,7 +211,8 @@ build-operator-bundle-image: check_container_runtmime
--action_env API_IMAGE=$(API_IMAGE) \
--action_env POPULATOR_CONTROLLER_IMAGE=$(POPULATOR_CONTROLLER_IMAGE) \
--action_env OVIRT_POPULATOR_IMAGE=$(OVIRT_POPULATOR_IMAGE) \
--action_env OPENSTACK_POPULATOR_IMAGE=$(OPENSTACK_POPULATOR_IMAGE)
--action_env OPENSTACK_POPULATOR_IMAGE=$(OPENSTACK_POPULATOR_IMAGE)\
--action_env OVA_PARSER_IMAGE=$(OVA_PARSER_IMAGE)

push-operator-bundle-image: build-operator-bundle-image
$(CONTAINER_CMD) tag bazel/operator:forklift-operator-bundle-image $(OPERATOR_BUNDLE_IMAGE)
Expand Down Expand Up @@ -257,6 +259,12 @@ build-openstack-populator-image: check_container_runtmime
push-openstack-populator-image: build-openstack-populator-image
$(CONTAINER_CMD) push $(OPENSTACK_POPULATOR_IMAGE)

build-ova-parses-image: build-ova-parses-image
$(CONTAINER_CMD) build -f hack/ova-parser/Containerfile -t $(OVA_PARSER_IMAGE) .

push-ova-parses-image: push-ova-parses-image
$(CONTAINER_CMD) push $(OVA_PARSER_IMAGE)

build-all-images: build-api-image \
build-controller-image \
build-validation-image \
Expand All @@ -267,7 +275,8 @@ build-all-images: build-api-image \
build-operator-index-image \
build-populator-controller-image \
build-ovirt-populator-image \
build-openstack-populator-image
build-openstack-populator-image\
build-ova-parses-image

push-all-images: push-api-image \
push-controller-image \
Expand All @@ -279,7 +288,8 @@ push-all-images: push-api-image \
push-operator-index-image \
push-populator-controller-image \
push-ovirt-populator-image \
push-openstack-populator-image
push-openstack-populator-image\
push-ova-parses-image

.PHONY: check_container_runtmime
check_container_runtmime:
Expand Down
14 changes: 14 additions & 0 deletions cmd/ova-parser/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
name = "ova-parser_lib",
srcs = ["ova-parser.go"],
importpath = "github.com/konveyor/forklift-controller/cmd/ova-parser",
visibility = ["//visibility:private"],
)

go_binary(
name = "ova-parser",
embed = [":ova-parser_lib"],
visibility = ["//visibility:public"],
)
Loading

0 comments on commit da5e719

Please sign in to comment.