|
1 | 1 | # variables that should not be overridden by the user
|
2 | 2 | VERSION = edge
|
3 |
| -SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST))) |
| 3 | +SELF_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) |
4 | 4 | CHART_DIR = $(SELF_DIR)charts/nginx-gateway-fabric
|
5 | 5 | NGINX_CONF_DIR = internal/mode/static/nginx/conf
|
6 | 6 | NJS_DIR = internal/mode/static/nginx/modules/src
|
7 | 7 | KIND_CONFIG_FILE = $(SELF_DIR)config/cluster/kind-cluster.yaml
|
8 |
| -NGINX_DOCKER_BUILD_PLUS_ARGS = --secret id=nginx-repo.crt,src=nginx-repo.crt --secret id=nginx-repo.key,src=nginx-repo.key |
9 |
| -BUILD_AGENT=local |
10 |
| -PLUS_ENABLED ?= false |
| 8 | +NGINX_DOCKER_BUILD_PLUS_ARGS = --secret id=nginx-repo.crt,src=$(SELF_DIR)nginx-repo.crt --secret id=nginx-repo.key,src=$(SELF_DIR)nginx-repo.key |
| 9 | +BUILD_AGENT = local |
11 | 10 |
|
12 | 11 | PROD_TELEMETRY_ENDPOINT = oss.edge.df.f5.com:443
|
13 | 12 | # the telemetry related variables below are also configured in goreleaser.yml
|
@@ -49,6 +48,8 @@ TARGET ?= local## The target of the build. Possible values: local and container
|
49 | 48 | OUT_DIR ?= build/out## The folder where the binary will be stored
|
50 | 49 | GOARCH ?= amd64## The architecture of the image and/or binary. For example: amd64 or arm64
|
51 | 50 | GOOS ?= linux## The OS of the image and/or binary. For example: linux or darwin
|
| 51 | +PLUS_ENABLED ?= false |
| 52 | +PLUS_LICENSE_FILE ?= $(SELF_DIR)license.jwt |
52 | 53 | override NGINX_DOCKER_BUILD_OPTIONS += --build-arg NJS_DIR=$(NJS_DIR) --build-arg NGINX_CONF_DIR=$(NGINX_CONF_DIR) --build-arg BUILD_AGENT=$(BUILD_AGENT)
|
53 | 54 |
|
54 | 55 | .DEFAULT_GOAL := help
|
@@ -227,7 +228,9 @@ helm-install-local: install-gateway-crds ## Helm install NGF on configured kind
|
227 | 228 |
|
228 | 229 | .PHONY: helm-install-local-with-plus
|
229 | 230 | helm-install-local-with-plus: install-gateway-crds ## Helm install NGF with NGINX Plus on configured kind cluster with local images. To build, load, and install with helm run make install-ngf-local-build-with-plus.
|
230 |
| - helm install nginx-gateway $(CHART_DIR) --set nginx.image.repository=$(NGINX_PLUS_PREFIX) --create-namespace --wait --set nginxGateway.image.pullPolicy=Never --set service.type=NodePort --set nginxGateway.image.repository=$(PREFIX) --set nginxGateway.image.tag=$(TAG) --set nginx.image.tag=$(TAG) --set nginx.image.pullPolicy=Never --set nginxGateway.gwAPIExperimentalFeatures.enable=$(ENABLE_EXPERIMENTAL) -n nginx-gateway --set nginx.plus=true $(HELM_PARAMETERS) |
| 231 | + kubectl create namespace nginx-gateway || true |
| 232 | + kubectl -n nginx-gateway create secret generic nplus-license --from-file $(PLUS_LICENSE_FILE) || true |
| 233 | + helm install nginx-gateway $(CHART_DIR) --set nginx.image.repository=$(NGINX_PLUS_PREFIX) --wait --set nginxGateway.image.pullPolicy=Never --set service.type=NodePort --set nginxGateway.image.repository=$(PREFIX) --set nginxGateway.image.tag=$(TAG) --set nginx.image.tag=$(TAG) --set nginx.image.pullPolicy=Never --set nginxGateway.gwAPIExperimentalFeatures.enable=$(ENABLE_EXPERIMENTAL) -n nginx-gateway --set nginx.plus=true $(HELM_PARAMETERS) |
231 | 234 |
|
232 | 235 | # Debug Targets
|
233 | 236 | .PHONY: debug-build
|
|
0 commit comments