@@ -9,28 +9,28 @@ export ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
9
9
10
10
GOLANG_VERSION := $(shell sed -En 's/^go (.* ) $$/\1/p' "go.mod")
11
11
# 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
14
14
endif
15
- export IMG_NAMESPACE
15
+ export IMAGE_REGISTRY
16
16
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
19
19
endif
20
- export OPERATOR_CONTROLLER_IMAGE_REPO
20
+ export OPCON_IMAGE_REPO
21
21
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
24
24
endif
25
- export CATALOGD_IMAGE_REPO
25
+ export CATD_IMAGE_REPO
26
26
27
27
ifeq ($(origin IMAGE_TAG ) , undefined)
28
28
IMAGE_TAG := devel
29
29
endif
30
30
export IMAGE_TAG
31
31
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 )
34
34
35
35
# Define dependency versions (use go.mod if we also use Go code from dependency)
36
36
export CERT_MGR_VERSION := v1.15.3
@@ -268,8 +268,8 @@ e2e-coverage:
268
268
269
269
.PHONY : kind-load
270
270
kind-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 )
273
273
274
274
.PHONY : kind-deploy
275
275
kind-deploy : export MANIFEST := ./operator-controller.yaml
@@ -333,15 +333,15 @@ go-build-linux: $(BINARIES)
333
333
.PHONY : run
334
334
run : docker-build kind-cluster kind-load kind-deploy wait # HELP Build the operator-controller then deploy it into a new kind cluster.
335
335
336
- CATALOGD_NAMESPACE := olmv1-system
336
+ CATD_NAMESPACE := olmv1-system
337
337
wait :
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
340
340
341
341
.PHONY : docker-build
342
342
docker-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
345
345
346
346
# SECTION Release
347
347
ifeq ($(origin ENABLE_RELEASE_PIPELINE ) , undefined)
@@ -356,7 +356,7 @@ export GORELEASER_ARGS
356
356
357
357
.PHONY : release
358
358
release : $(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 )
360
360
361
361
.PHONY : quickstart
362
362
quickstart : 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
368
368
# #@ Docs
369
369
370
370
.PHONY : crd-ref-docs
371
- OPERATOR_CONTROLLER_API_REFERENCE_FILENAME := operator-controller-api-reference.md
371
+ API_REFERENCE_FILENAME := operator-controller-api-reference.md
372
372
API_REFERENCE_DIR := $(ROOT_DIR ) /docs/api-reference
373
373
crd-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 )
375
375
$(CRD_REF_DOCS ) --source-path=$(ROOT_DIR ) /api/ \
376
376
--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 ) ;
378
378
379
379
VENVDIR := $(abspath docs/.venv)
380
380
0 commit comments