@@ -9,33 +9,34 @@ fully prepared development environment that allows you to contribute to the proj
9
9
Follow these steps to set up your development environment.
10
10
11
11
1 . Install:
12
- - [ Go] ( https://golang.org/doc/install ) v1.21.0+
13
- - [ Docker] ( https://docs.docker.com/get-docker/ ) v18.09+
14
- - [ Kubectl] ( https://kubernetes.io/docs/tasks/tools/#kubectl )
15
- - [ Kind] ( https://kind.sigs.k8s.io/docs/user/quick-start/ )
16
- - [ Helm] ( https://helm.sh/docs/intro/quickstart/#install-helm )
17
- - [ git] ( https://git-scm.com/ )
18
- - [ GNU Make] ( https://www.gnu.org/software/software.html )
19
- - [ yq] ( https://github.com/mikefarah/yq/#install )
20
- - [ fieldalignment] ( https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/fieldalignment ) :
21
-
22
- ``` shell
23
- go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latest
24
- ```
25
-
26
- - [pre-commit](https://pre-commit.com/# install):
27
12
28
- ` ` ` shell
29
- brew install pre-commit
30
- ` ` `
13
+ - [ Go] ( https://golang.org/doc/install ) v1.21.0+
14
+ - [ Docker] ( https://docs.docker.com/get-docker/ ) v18.09+
15
+ - [ Kubectl] ( https://kubernetes.io/docs/tasks/tools/#kubectl )
16
+ - [ Kind] ( https://kind.sigs.k8s.io/docs/user/quick-start/ )
17
+ - [ Helm] ( https://helm.sh/docs/intro/quickstart/#install-helm )
18
+ - [ git] ( https://git-scm.com/ )
19
+ - [ GNU Make] ( https://www.gnu.org/software/software.html )
20
+ - [ yq] ( https://github.com/mikefarah/yq/#install )
21
+ - [ fieldalignment] ( https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/fieldalignment ) :
31
22
32
- and then run
23
+ ``` shell
24
+ go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latest
25
+ ```
33
26
34
- ` ` ` shell
35
- pre-commit install
36
- ` ` `
27
+ - [ pre-commit] ( https://pre-commit.com/#install ) :
37
28
38
- in the project root directory to install the git hooks.
29
+ ``` shell
30
+ brew install pre-commit
31
+ ```
32
+
33
+ and then run
34
+
35
+ ``` shell
36
+ pre-commit install
37
+ ```
38
+
39
+ in the project root directory to install the git hooks.
39
40
40
41
2 . [ Fork the project repository] ( https://github.com/nginxinc/nginx-gateway-fabric/fork )
41
42
3 . Clone your repository, and install the project dependencies:
@@ -138,44 +139,44 @@ This will build the docker images `nginx-gateway-fabric:<your-user>` and `nginx-
138
139
139
140
- To install with Helm (where your release name is ` my-release ` ):
140
141
141
- ` ` ` shell
142
- helm install my-release ./charts/nginx-gateway-fabric --create-namespace --wait --set service.type=NodePort --set nginxGateway.image.repository=nginx-gateway-fabric --set nginxGateway.image.tag=$( whoami) --set nginxGateway.image.pullPolicy=Never --set nginx.image.repository=nginx-gateway-fabric/nginx --set nginx.image.tag=$( whoami) --set nginx.image.pullPolicy=Never -n nginx-gateway
143
- ` ` `
142
+ ``` shell
143
+ helm install my-release ./charts/nginx-gateway-fabric --create-namespace --wait --set service.type=NodePort --set nginxGateway.image.repository=nginx-gateway-fabric --set nginxGateway.image.tag=$( whoami) --set nginxGateway.image.pullPolicy=Never --set nginx.image.repository=nginx-gateway-fabric/nginx --set nginx.image.tag=$( whoami) --set nginx.image.pullPolicy=Never -n nginx-gateway
144
+ ```
144
145
145
146
- To install NGINX Plus with Helm (where your release name is ` my-release` ):
146
147
147
- ` ` ` shell
148
- helm install my-release ./charts/nginx-gateway-fabric --create-namespace --wait --set service.type=NodePort --set nginxGateway.image.repository=nginx-gateway-fabric --set nginxGateway.image.tag=$( whoami) --set nginxGateway.image.pullPolicy=Never --set nginx.image.repository=nginx-gateway-fabric/nginx-plus --set nginx.image.tag=$( whoami) --set nginx.image.pullPolicy=Never --set nginx.plus=true -n nginx-gateway
149
- ` ` `
148
+ ` ` ` shell
149
+ helm install my-release ./charts/nginx-gateway-fabric --create-namespace --wait --set service.type=NodePort --set nginxGateway.image.repository=nginx-gateway-fabric --set nginxGateway.image.tag=$( whoami) --set nginxGateway.image.pullPolicy=Never --set nginx.image.repository=nginx-gateway-fabric/nginx-plus --set nginx.image.tag=$( whoami) --set nginx.image.pullPolicy=Never --set nginx.plus=true -n nginx-gateway
150
+ ` ` `
150
151
151
152
> For more information on Helm configuration options see the Helm [README](../../charts/nginx-gateway-fabric/README.md).
152
153
153
154
- To install with manifests:
154
155
155
- ` ` ` shell
156
- make generate-manifests HELM_TEMPLATE_COMMON_ARGS=" --set nginxGateway.image.repository=nginx-gateway-fabric --set nginxGateway.image.tag=$( whoami) --set nginxGateway.image.pullPolicy=Never --set nginx.image.repository=nginx-gateway-fabric/nginx --set nginx.image.tag=$( whoami) --set nginx.image.pullPolicy=Never"
157
- kubectl apply -f deploy/manifests/ crds
158
- kubectl apply -f deploy/manifests/nginx-gateway.yaml
159
- kubectl apply -f deploy/manifests/service/nodeport.yaml
160
- ` ` `
156
+ ` ` ` shell
157
+ make generate-manifests HELM_TEMPLATE_COMMON_ARGS=" --set nginxGateway.image.repository=nginx-gateway-fabric --set nginxGateway.image.tag=$( whoami) --set nginxGateway.image.pullPolicy=Never --set nginx.image.repository=nginx-gateway-fabric/nginx --set nginx.image.tag=$( whoami) --set nginx.image.pullPolicy=Never"
158
+ kubectl apply -f deploy/crds.yaml
159
+ kubectl apply -f deploy/manifests/nginx-gateway.yaml
160
+ kubectl apply -f deploy/manifests/service/nodeport.yaml
161
+ ` ` `
161
162
162
163
- To install NGINX Plus with manifests:
163
164
164
- ` ` ` shell
165
- make generate-manifests HELM_TEMPLATE_COMMON_ARGS=" --set nginxGateway.image.repository=nginx-gateway-fabric --set nginxGateway.image.tag=$( whoami) --set nginxGateway.image.pullPolicy=Never --set nginx.image.repository=nginx-gateway-fabric/nginx-plus --set nginx.image.tag=$( whoami) --set nginx.image.pullPolicy=Never --set nginx.plus=true"
166
- kubectl apply -f deploy/manifests/ crds
167
- kubectl apply -f deploy/manifests/nginx-gateway.yaml
168
- kubectl apply -f deploy/manifests/service/nodeport.yaml
169
- ` ` `
165
+ ` ` ` shell
166
+ make generate-manifests HELM_TEMPLATE_COMMON_ARGS=" --set nginxGateway.image.repository=nginx-gateway-fabric --set nginxGateway.image.tag=$( whoami) --set nginxGateway.image.pullPolicy=Never --set nginx.image.repository=nginx-gateway-fabric/nginx-plus --set nginx.image.tag=$( whoami) --set nginx.image.pullPolicy=Never --set nginx.plus=true"
167
+ kubectl apply -f deploy/crds.yaml
168
+ kubectl apply -f deploy/manifests/nginx-gateway.yaml
169
+ kubectl apply -f deploy/manifests/service/nodeport.yaml
170
+ ` ` `
170
171
171
172
- To install with experimental manifests:
172
173
173
- ` ` ` shell
174
- make generate-manifests HELM_TEMPLATE_COMMON_ARGS=" --set nginxGateway.image.repository=nginx-gateway-fabric --set nginxGateway.image.tag=$( whoami) --set nginxGateway.image.pullPolicy=Never --set nginx.image.repository=nginx-gateway-fabric/nginx --set nginx.image.tag=$( whoami) --set nginx.image.pullPolicy=Never"
175
- kubectl apply -f deploy/manifests/ crds
176
- kubectl apply -f deploy/manifests/nginx-gateway-experimental.yaml
177
- kubectl apply -f deploy/manifests/service/nodeport.yaml
178
- ` ` `
174
+ ` ` ` shell
175
+ make generate-manifests HELM_TEMPLATE_COMMON_ARGS=" --set nginxGateway.image.repository=nginx-gateway-fabric --set nginxGateway.image.tag=$( whoami) --set nginxGateway.image.pullPolicy=Never --set nginx.image.repository=nginx-gateway-fabric/nginx --set nginx.image.tag=$( whoami) --set nginx.image.pullPolicy=Never"
176
+ kubectl apply -f deploy/crds.yaml
177
+ kubectl apply -f deploy/manifests/nginx-gateway-experimental.yaml
178
+ kubectl apply -f deploy/manifests/service/nodeport.yaml
179
+ ` ` `
179
180
180
181
# ## Run Examples
181
182
0 commit comments