@@ -9,28 +9,28 @@ export ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
99
1010GOLANG_VERSION := $(shell sed -En 's/^go (.* ) $$/\1/p' "go.mod")
1111# Image URL to use all building/pushing image targets
12- ifeq ($(origin IMG_NAMESPACE ) , undefined)
13- IMG_NAMESPACE := quay.io/operator-framework
12+ ifeq ($(origin IMAGE_REGISTRY ) , undefined)
13+ IMAGE_REGISTRY := quay.io/operator-framework
1414endif
15- export IMG_NAMESPACE
15+ export IMAGE_REGISTRY
1616
17- ifeq ($(origin OPERATOR_CONTROLLER_IMAGE_REPO ) , undefined)
18- OPERATOR_CONTROLLER_IMAGE_REPO := $(IMG_NAMESPACE ) /operator-controller
17+ ifeq ($(origin OPCON_IMAGE_REPO ) , undefined)
18+ OPCON_IMAGE_REPO := $(IMAGE_REGISTRY ) /operator-controller
1919endif
20- export OPERATOR_CONTROLLER_IMAGE_REPO
20+ export OPCON_IMAGE_REPO
2121
22- ifeq ($(origin CATALOGD_IMAGE_REPO ) , undefined)
23- CATALOGD_IMAGE_REPO := $(IMG_NAMESPACE ) /catalogd
22+ ifeq ($(origin CATD_IMAGE_REPO ) , undefined)
23+ CATD_IMAGE_REPO := $(IMAGE_REGISTRY ) /catalogd
2424endif
25- export CATALOGD_IMAGE_REPO
25+ export CATD_IMAGE_REPO
2626
2727ifeq ($(origin IMAGE_TAG ) , undefined)
2828IMAGE_TAG := devel
2929endif
3030export IMAGE_TAG
3131
32- OPERATOR_CONTROLLER_IMG := $(OPERATOR_CONTROLLER_IMAGE_REPO ) :$(IMAGE_TAG )
33- CATALOGD_IMG := $(CATALOGD_IMAGE_REPO ) :$(IMAGE_TAG )
32+ OPCON_IMG := $(OPCON_IMAGE_REPO ) :$(IMAGE_TAG )
33+ CATD_IMG := $(CATD_IMAGE_REPO ) :$(IMAGE_TAG )
3434
3535# Define dependency versions (use go.mod if we also use Go code from dependency)
3636export CERT_MGR_VERSION := v1.15.3
@@ -268,8 +268,8 @@ e2e-coverage:
268268
269269.PHONY : kind-load
270270kind-load : $(KIND ) # EXHELP Loads the currently constructed images into the KIND cluster.
271- $(CONTAINER_RUNTIME ) save $(OPERATOR_CONTROLLER_IMG ) | $(KIND ) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME )
272- $(CONTAINER_RUNTIME ) save $(CATALOGD_IMG ) | $(KIND ) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME )
271+ $(CONTAINER_RUNTIME ) save $(OPCON_IMG ) | $(KIND ) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME )
272+ $(CONTAINER_RUNTIME ) save $(CATD_IMG ) | $(KIND ) load image-archive /dev/stdin --name $(KIND_CLUSTER_NAME )
273273
274274.PHONY : kind-deploy
275275kind-deploy : export MANIFEST := ./operator-controller.yaml
@@ -333,15 +333,15 @@ go-build-linux: $(BINARIES)
333333.PHONY : run
334334run : docker-build kind-cluster kind-load kind-deploy wait # HELP Build the operator-controller then deploy it into a new kind cluster.
335335
336- CATALOGD_NAMESPACE := olmv1-system
336+ CATD_NAMESPACE := olmv1-system
337337wait :
338- kubectl wait --for=condition=Available --namespace=$(CATALOGD_NAMESPACE ) deployment/catalogd-controller-manager --timeout=60s
339- kubectl wait --for=condition=Ready --namespace=$(CATALOGD_NAMESPACE ) certificate/catalogd-service-cert # Avoid upgrade test flakes when reissuing cert
338+ kubectl wait --for=condition=Available --namespace=$(CATD_NAMESPACE ) deployment/catalogd-controller-manager --timeout=60s
339+ kubectl wait --for=condition=Ready --namespace=$(CATD_NAMESPACE ) certificate/catalogd-service-cert # Avoid upgrade test flakes when reissuing cert
340340
341341.PHONY : docker-build
342342docker-build : build-linux # EXHELP Build docker image for operator-controller and catalog with GOOS=linux and local GOARCH.
343- $(CONTAINER_RUNTIME ) build -t $(OPERATOR_CONTROLLER_IMG ) -f Dockerfile.operator-controller ./bin/linux
344- $(CONTAINER_RUNTIME ) build -t $(CATALOGD_IMG ) -f Dockerfile.catalogd ./bin/linux
343+ $(CONTAINER_RUNTIME ) build -t $(OPCON_IMG ) -f Dockerfile.operator-controller ./bin/linux
344+ $(CONTAINER_RUNTIME ) build -t $(CATD_IMG ) -f Dockerfile.catalogd ./bin/linux
345345
346346# SECTION Release
347347ifeq ($(origin ENABLE_RELEASE_PIPELINE ) , undefined)
@@ -356,7 +356,7 @@ export GORELEASER_ARGS
356356
357357.PHONY : release
358358release : $(GORELEASER ) # EXHELP Runs goreleaser for the operator-controller. By default, this will run only as a snapshot and will not publish any artifacts unless it is run with different arguments. To override the arguments, run with "GORELEASER_ARGS=...". When run as a github action from a tag, this target will publish a full release.
359- OPERATOR_CONTROLLER_IMAGE_REPO =$(OPERATOR_CONTROLLER_IMAGE_REPO ) CATALOGD_IMAGE_REPO =$(CATALOGD_IMAGE_REPO ) $(GORELEASER ) $(GORELEASER_ARGS )
359+ OPCON_IMAGE_REPO =$(OPCON_IMAGE_REPO ) CATD_IMAGE_REPO =$(CATD_IMAGE_REPO ) $(GORELEASER ) $(GORELEASER_ARGS )
360360
361361.PHONY : quickstart
362362quickstart : export MANIFEST := https://github.com/operator-framework/operator-controller/releases/download/$(VERSION ) /operator-controller.yaml
@@ -368,13 +368,13 @@ quickstart: $(KUSTOMIZE) manifests #EXHELP Generate the unified installation rel
368368# #@ Docs
369369
370370.PHONY : crd-ref-docs
371- OPERATOR_CONTROLLER_API_REFERENCE_FILENAME := operator-controller-api-reference.md
371+ API_REFERENCE_FILENAME := operator-controller-api-reference.md
372372API_REFERENCE_DIR := $(ROOT_DIR ) /docs/api-reference
373373crd-ref-docs : $(CRD_REF_DOCS ) # EXHELP Generate the API Reference Documents.
374- rm -f $(API_REFERENCE_DIR ) /$(OPERATOR_CONTROLLER_API_REFERENCE_FILENAME )
374+ rm -f $(API_REFERENCE_DIR ) /$(API_REFERENCE_FILENAME )
375375 $(CRD_REF_DOCS ) --source-path=$(ROOT_DIR ) /api/ \
376376 --config=$(API_REFERENCE_DIR ) /crd-ref-docs-gen-config.yaml \
377- --renderer=markdown --output-path=$(API_REFERENCE_DIR ) /$(OPERATOR_CONTROLLER_API_REFERENCE_FILENAME ) ;
377+ --renderer=markdown --output-path=$(API_REFERENCE_DIR ) /$(API_REFERENCE_FILENAME ) ;
378378
379379VENVDIR := $(abspath docs/.venv)
380380
0 commit comments