@@ -67,6 +67,19 @@ generate-crds: ## Generate CRDs and Go types using kubebuilder
67
67
go run sigs.k8s.io/controller-tools/cmd/controller-gen crd paths=./apis/... output:crd:dir=deploy/helm-chart/crds
68
68
go run sigs.k8s.io/controller-tools/cmd/controller-gen object paths=./apis/...
69
69
70
+ .PHONY : generate-manifests
71
+ generate-manifests : # # Generate manifests using Helm.
72
+ cp $(CHART_DIR ) /crds/* $(MANIFEST_DIR ) /crds/
73
+ helm template nginx-gateway $(CHART_DIR ) $(HELM_TEMPLATE_COMMON_ARGS ) $(HELM_TEMPLATE_EXTRA_ARGS_FOR_ALL_MANIFESTS_FILE ) -n nginx-gateway | cat $(strip $(MANIFEST_DIR ) ) /namespace.yaml - > $(strip $(MANIFEST_DIR ) ) /nginx-gateway.yaml
74
+ helm template nginx-gateway $(CHART_DIR ) $(HELM_TEMPLATE_COMMON_ARGS ) --set metrics.enable=false -n nginx-gateway -s templates/deployment.yaml > conformance/provisioner/static-deployment.yaml
75
+ helm template nginx-gateway $(CHART_DIR ) $(HELM_TEMPLATE_COMMON_ARGS ) -n nginx-gateway -s templates/service.yaml > $(strip $(MANIFEST_DIR ) ) /service/loadbalancer.yaml
76
+ helm template nginx-gateway $(CHART_DIR ) $(HELM_TEMPLATE_COMMON_ARGS ) --set service.annotations.' service\.beta\.kubernetes\.io\/aws-load-balancer-type' =" nlb" -n nginx-gateway -s templates/service.yaml > $(strip $(MANIFEST_DIR ) ) /service/loadbalancer-aws-nlb.yaml
77
+ helm template nginx-gateway $(CHART_DIR ) $(HELM_TEMPLATE_COMMON_ARGS ) --set service.type=NodePort --set service.externalTrafficPolicy=" " -n nginx-gateway -s templates/service.yaml > $(strip $(MANIFEST_DIR ) ) /service/nodeport.yaml
78
+
79
+ .PHONY : crds-release-file
80
+ crds-release-file : # # Generate combined crds file for releases
81
+ scripts/combine-crds.sh
82
+
70
83
.PHONY : clean
71
84
clean : # # Clean the build
72
85
-rm -r $(OUT_DIR )
@@ -132,14 +145,5 @@ debug-build: build ## Build binary with debug info, symbols, and no optimization
132
145
.PHONY : build-ngf-debug-image
133
146
build-ngf-debug-image : debug-build build-ngf-image # # Build NGF image with debug binary
134
147
135
- .PHONY : generate-manifests
136
- generate-manifests : # # Generate manifests using Helm.
137
- cp $(CHART_DIR ) /crds/* $(MANIFEST_DIR ) /crds/
138
- helm template nginx-gateway $(CHART_DIR ) $(HELM_TEMPLATE_COMMON_ARGS ) $(HELM_TEMPLATE_EXTRA_ARGS_FOR_ALL_MANIFESTS_FILE ) -n nginx-gateway | cat $(strip $(MANIFEST_DIR ) ) /namespace.yaml - > $(strip $(MANIFEST_DIR ) ) /nginx-gateway.yaml
139
- helm template nginx-gateway $(CHART_DIR ) $(HELM_TEMPLATE_COMMON_ARGS ) --set metrics.enable=false -n nginx-gateway -s templates/deployment.yaml > conformance/provisioner/static-deployment.yaml
140
- helm template nginx-gateway $(CHART_DIR ) $(HELM_TEMPLATE_COMMON_ARGS ) -n nginx-gateway -s templates/service.yaml > $(strip $(MANIFEST_DIR ) ) /service/loadbalancer.yaml
141
- helm template nginx-gateway $(CHART_DIR ) $(HELM_TEMPLATE_COMMON_ARGS ) --set service.annotations.' service\.beta\.kubernetes\.io\/aws-load-balancer-type' =" nlb" -n nginx-gateway -s templates/service.yaml > $(strip $(MANIFEST_DIR ) ) /service/loadbalancer-aws-nlb.yaml
142
- helm template nginx-gateway $(CHART_DIR ) $(HELM_TEMPLATE_COMMON_ARGS ) --set service.type=NodePort --set service.externalTrafficPolicy=" " -n nginx-gateway -s templates/service.yaml > $(strip $(MANIFEST_DIR ) ) /service/nodeport.yaml
143
-
144
148
.PHONY : dev-all
145
149
dev-all : deps fmt njs-fmt vet lint unit-test njs-unit-test # # Run all the development checks
0 commit comments