@@ -23,7 +23,6 @@ IMG := $(IMAGE_REPO):$(IMAGE_TAG)
2323
2424# Define dependency versions (use go.mod if we also use Go code from dependency)
2525export CERT_MGR_VERSION := v1.15.3
26- export CATALOGD_VERSION := $(shell go list -mod=mod -m -f "{{.Version}}" github.com/operator-framework/catalogd)
2726export WAIT_TIMEOUT := 60s
2827
2928# Install default ClusterCatalogs
@@ -235,12 +234,18 @@ e2e-coverage:
235234.PHONY : kind-load
236235kind-load : $(KIND ) # EXHELP Loads the currently constructed image onto the cluster.
237236 $(CONTAINER_RUNTIME ) save $(IMG ) | $(KIND ) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME )
237+ # TODO: Change it when we unify the Makefile commands
238+ $(CONTAINER_RUNTIME ) save quay.io/operator-framework/catalogd:devel | $(KIND ) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME )
238239
239240.PHONY : kind-deploy
240- kind-deploy : export MANIFEST=" ./operator-controller.yaml"
241- kind-deploy : manifests $(KUSTOMIZE ) # EXHELP Install controller and dependencies onto the kind cluster.
241+ kind-deploy : export MANIFEST := ./operator-controller.yaml
242+ kind-deploy : manifests $(KUSTOMIZE ) # EXHELP Install controller and dependencies, including catalogd, onto the kind cluster.
242243 $(KUSTOMIZE ) build $(KUSTOMIZE_BUILD_DIR ) > operator-controller.yaml
243- envsubst ' $$CATALOGD_VERSION,$$CERT_MGR_VERSION,$$INSTALL_DEFAULT_CATALOGS,$$MANIFEST' < scripts/install.tpl.sh | bash -s
244+ cd catalogd && $(KUSTOMIZE ) build config/overlays/cert-manager > catalogd.yaml
245+ envsubst ' $$CERT_MGR_VERSION,$$INSTALL_DEFAULT_CATALOGS,$$MANIFEST' < scripts/install.tpl.sh > install.sh
246+ bash install.sh \
247+ --catalogd-manifest=./catalogd/catalogd.yaml \
248+ --default-catalogs-manifest=./catalogd/config/base/default/clustercatalogs/default-catalogs.yaml
244249
245250.PHONY : kind-cluster
246251kind-cluster : $(KIND ) # EXHELP Standup a kind cluster.
@@ -299,6 +304,7 @@ run: docker-build kind-cluster kind-load kind-deploy #HELP Build the operator-co
299304.PHONY : docker-build
300305docker-build : build-linux # EXHELP Build docker image for operator-controller with GOOS=linux and local GOARCH.
301306 $(CONTAINER_RUNTIME ) build -t $(IMG ) -f Dockerfile ./bin/linux
307+ cd catalogd && $(MAKE ) build-container
302308
303309# SECTION Release
304310ifeq ($(origin ENABLE_RELEASE_PIPELINE ) , undefined)
@@ -316,10 +322,12 @@ release: $(GORELEASER) #EXHELP Runs goreleaser for the operator-controller. By d
316322 $(GORELEASER ) $(GORELEASER_ARGS )
317323
318324.PHONY : quickstart
319- quickstart : export MANIFEST := https://github.com/operator-framework/operator-controller/releases/download/ $( VERSION ) /operator-controller.yaml
325+ quickstart : export MANIFEST := . /operator-controller.yaml
320326quickstart : $(KUSTOMIZE ) manifests # EXHELP Generate the installation release manifests and scripts.
321327 $(KUSTOMIZE ) build $(KUSTOMIZE_BUILD_DIR ) | sed " s/:devel/:$( VERSION) /g" > operator-controller.yaml
322- envsubst ' $$CATALOGD_VERSION,$$CERT_MGR_VERSION,$$INSTALL_DEFAULT_CATALOGS,$$MANIFEST' < scripts/install.tpl.sh > install.sh
328+ cd catalogd && $(KUSTOMIZE ) build config/overlays/cert-manager > catalogd.yaml
329+ envsubst ' $$CERT_MGR_VERSION,$$INSTALL_DEFAULT_CATALOGS,$$MANIFEST' < scripts/install.tpl.sh > install.sh
330+
323331
324332# #@ Docs
325333
0 commit comments