@@ -43,6 +43,8 @@ HELM_SCHEMA_VERSION = 0.18.1
4343PREFIX ?= nginx-gateway-fabric# # The name of the NGF image. For example, nginx-gateway-fabric
4444NGINX_PREFIX ?= $(PREFIX ) /nginx# # The name of the nginx image. For example: nginx-gateway-fabric/nginx
4545NGINX_PLUS_PREFIX ?= $(PREFIX ) /nginx-plus# # The name of the nginx plus image. For example: nginx-gateway-fabric/nginx-plus
46+ NGINX_SERVICE_TYPE ?= NodePort# # The type of the nginx service. Possible values: NodePort, LoadBalancer, ClusterIP
47+ PULL_POLICY ?= Never# # The pull policy of the images. Possible values: Always, IfNotPresent, Never
4648TAG ?= $(VERSION:v%=% ) # # The tag of the image. For example, 1.1.0
4749TARGET ?= local# # The target of the build. Possible values: local and container
4850OUT_DIR ?= build/out# # The folder where the binary will be stored
@@ -226,13 +228,13 @@ install-ngf-local-build-with-plus: check-for-plus-usage-endpoint build-images-wi
226228
227229.PHONY : helm-install-local
228230helm-install-local : install-gateway-crds # # Helm install NGF on configured kind cluster with local images. To build, load, and install with helm run make install-ngf-local-build.
229- helm install nginx-gateway $(CHART_DIR ) --set nginx.image.repository=$(NGINX_PREFIX ) --create-namespace --wait --set nginxGateway.image.pullPolicy=Never --set nginx.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 $(HELM_PARAMETERS )
231+ helm install nginx-gateway $(CHART_DIR ) --set nginx.image.repository=$(NGINX_PREFIX ) --create-namespace --wait --set nginxGateway.image.pullPolicy=$( PULL_POLICY ) --set nginx.service.type=$( NGINX_SERVICE_TYPE ) --set nginxGateway.image.repository=$(PREFIX ) --set nginxGateway.image.tag=$(TAG ) --set nginx.image.tag=$(TAG ) --set nginx.image.pullPolicy=$( PULL_POLICY ) --set nginxGateway.gwAPIExperimentalFeatures.enable=$(ENABLE_EXPERIMENTAL ) -n nginx-gateway $(HELM_PARAMETERS )
230232
231233.PHONY : helm-install-local-with-plus
232234helm-install-local-with-plus : check-for-plus-usage-endpoint 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.
233235 kubectl create namespace nginx-gateway || true
234236 kubectl -n nginx-gateway create secret generic nplus-license --from-file $(PLUS_LICENSE_FILE ) || true
235- helm install nginx-gateway $(CHART_DIR ) --set nginx.image.repository=$(NGINX_PLUS_PREFIX ) --wait --set nginxGateway.image.pullPolicy=Never --set nginx.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 --set nginx.usage.endpoint=$(PLUS_USAGE_ENDPOINT ) $(HELM_PARAMETERS )
237+ helm install nginx-gateway $(CHART_DIR ) --set nginx.image.repository=$(NGINX_PLUS_PREFIX ) --wait --set nginxGateway.image.pullPolicy=$( PULL_POLICY ) --set nginx.service.type=$( NGINX_SERVICE_TYPE ) --set nginxGateway.image.repository=$(PREFIX ) --set nginxGateway.image.tag=$(TAG ) --set nginx.image.tag=$(TAG ) --set nginx.image.pullPolicy=$( PULL_POLICY ) --set nginxGateway.gwAPIExperimentalFeatures.enable=$(ENABLE_EXPERIMENTAL ) -n nginx-gateway --set nginx.plus=true --set nginx.usage.endpoint=$(PLUS_USAGE_ENDPOINT ) $(HELM_PARAMETERS )
236238
237239.PHONY : check-for-plus-usage-endpoint
238240check-for-plus-usage-endpoint : # # Checks that the PLUS_USAGE_ENDPOINT is set in the environment. This env var is required when deploying or testing with N+.
0 commit comments