@@ -182,6 +182,21 @@ else
182182RELATED_IMAGE_WASMSHIM ?= oci://quay.io/kuadrant/wasm-shim:$(WASM_SHIM_VERSION )
183183endif
184184
185+ # # developer-portal-controller
186+ DEVELOPERPORTAL_VERSION ?= latest
187+ developerportal_version_is_semantic := $(call is_semantic_version,$(DEVELOPERPORTAL_VERSION ) )
188+
189+ ifeq (latest,$(DEVELOPERPORTAL_VERSION ) )
190+ RELATED_IMAGE_DEVELOPERPORTAL ?= quay.io/kuadrant/developer-portal-controller:latest
191+ DEVELOPERPORTAL_GITREF = main
192+ else ifeq (true,$(developerportal_version_is_semantic))
193+ RELATED_IMAGE_DEVELOPERPORTAL ?= quay.io/kuadrant/developer-portal-controller:v$(DEVELOPERPORTAL_VERSION )
194+ DEVELOPERPORTAL_GITREF = v$(DEVELOPERPORTAL_VERSION )
195+ else
196+ RELATED_IMAGE_DEVELOPERPORTAL ?= quay.io/kuadrant/developer-portal-controller:$(DEVELOPERPORTAL_VERSION )
197+ DEVELOPERPORTAL_GITREF = $(DEVELOPERPORTAL_VERSION )
198+ endif
199+
185200# # gatewayapi-provider
186201GATEWAYAPI_PROVIDER ?= istio
187202
@@ -332,10 +347,12 @@ extensions-manifests: controller-gen ## Generate WebhookConfiguration, ClusterRo
332347dependencies-manifests : export AUTHORINO_OPERATOR_GITREF := $(AUTHORINO_OPERATOR_GITREF )
333348dependencies-manifests : export LIMITADOR_OPERATOR_GITREF := $(LIMITADOR_OPERATOR_GITREF )
334349dependencies-manifests : export DNS_OPERATOR_GITREF := $(DNS_OPERATOR_GITREF )
350+ dependencies-manifests : export DEVELOPERPORTAL_GITREF := $(DEVELOPERPORTAL_GITREF )
335351dependencies-manifests : # # Update kuadrant dependencies manifests.
336352 $(call patch-config,config/dependencies/authorino/kustomization.template.yaml,config/dependencies/authorino/kustomization.yaml)
337353 $(call patch-config,config/dependencies/limitador/kustomization.template.yaml,config/dependencies/limitador/kustomization.yaml)
338354 $(call patch-config,config/dependencies/dns/kustomization.template.yaml,config/dependencies/dns/kustomization.yaml)
355+ $(call patch-config,config/dependencies/developer-portal/kustomization.template.yaml,config/dependencies/developer-portal/kustomization.yaml)
339356
340357.PHONY : generate
341358generate : controller-gen # # Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
@@ -430,14 +447,17 @@ bundle: $(OPM) $(YQ) manifests dependencies-manifests kustomize operator-sdk ##
430447 # Set desired Wasm-shim image
431448 V=" $( RELATED_IMAGE_WASMSHIM) " \
432449 $(YQ ) eval ' (select(.kind == "Deployment").spec.template.spec.containers[].env[] | select(.name == "RELATED_IMAGE_WASMSHIM").value) = strenv(V)' -i config/manager/manager.yaml
450+ # Set desired developer-portal-controller image
451+ V=" $( RELATED_IMAGE_DEVELOPERPORTAL) " \
452+ $(YQ ) eval ' (select(.kind == "Deployment").spec.template.spec.containers[].env[] | select(.name == "RELATED_IMAGE_DEVELOPERPORTAL").value) = strenv(V)' -i config/manager/manager.yaml
433453 # Set desired operator image
434454 cd config/manager && $(KUSTOMIZE ) edit set image controller=$(IMG )
435455 # Update CSV
436456 $(call update-csv-config,kuadrant-operator.v$(BUNDLE_VERSION ) ,config/manifests/bases/kuadrant-operator.clusterserviceversion.yaml,.metadata.name)
437457 $(call update-csv-config,$(BUNDLE_VERSION ) ,config/manifests/bases/kuadrant-operator.clusterserviceversion.yaml,.spec.version)
438458 $(call update-csv-config,$(IMG ) ,config/manifests/bases/kuadrant-operator.clusterserviceversion.yaml,.metadata.annotations.containerImage)
439459 # Generate bundle
440- $(KUSTOMIZE ) build config/manifests | $(OPERATOR_SDK ) generate bundle -q --overwrite --version $(BUNDLE_VERSION ) $(BUNDLE_METADATA_OPTS )
460+ $(KUSTOMIZE ) build config/manifests | $(OPERATOR_SDK ) generate bundle -q --overwrite --version $(BUNDLE_VERSION ) $(BUNDLE_METADATA_OPTS ) --extra-service-accounts=developer-portal-controller-manager
441461 $(MAKE ) bundle-post-generate LIMITADOR_OPERATOR_BUNDLE_IMG=$(LIMITADOR_OPERATOR_BUNDLE_IMG ) \
442462 AUTHORINO_OPERATOR_BUNDLE_IMG=$(AUTHORINO_OPERATOR_BUNDLE_IMG ) \
443463 DNS_OPERATOR_BUNDLE_IMG=$(DNS_OPERATOR_BUNDLE_IMG )
0 commit comments