Skip to content

Commit af4b47d

Browse files
authored
Revert "Generate mainfests automatically from Helm (nginx#4278)" (nginx#4618)
This reverts commit 1d7c8bd.
1 parent b036ba0 commit af4b47d

File tree

94 files changed

+421
-5782
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+421
-5782
lines changed

.github/workflows/build-plus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ jobs:
171171
This is the official implementation of NGINX Ingress Controller (based on NGINX Plus) from NGINX.
172172
usage-instructions: |
173173
This container requires Kubernetes and can be deployed to EKS.
174-
Review the installation instructions https://docs.nginx.com/nginx-ingress-controller/installation/ and utilize the deployment resources available https://github.com/nginxinc/kubernetes-ingress/tree/main/deploy
174+
Review the installation instructions https://docs.nginx.com/nginx-ingress-controller/installation/ and utilize the deployment resources available https://github.com/nginxinc/kubernetes-ingress/tree/master/deployments
175175
Use this image instead of building your own.
176176
if: ${{ github.ref_type == 'tag' && contains(inputs.target, 'aws') }}
177177

.github/workflows/release-pr.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,29 @@ jobs:
3939
DOCS_TO_UPDATE_FOLDER=docs/content
4040
4141
FILES_TO_UPDATE_IC_VERSION=(
42-
README.md
43-
charts/nginx-ingress/Chart.yaml
44-
charts/nginx-ingress/README.md
45-
charts/nginx-ingress/values.yaml
42+
README.md
43+
deployments/daemon-set/nginx-ingress.yaml
44+
deployments/daemon-set/nginx-plus-ingress.yaml
45+
deployments/deployment/nginx-ingress.yaml
46+
deployments/deployment/nginx-plus-ingress.yaml
47+
deployments/helm-chart/Chart.yaml
48+
deployments/helm-chart/README.md
49+
deployments/helm-chart/values-icp.yaml
50+
deployments/helm-chart/values-nsm.yaml
51+
deployments/helm-chart/values-plus.yaml
52+
deployments/helm-chart/values.yaml
4653
)
4754
4855
FILE_TO_UPDATE_HELM_CHART_VERSION=(
49-
charts/nginx-ingress/Chart.yaml
50-
charts/nginx-ingress/README.md
56+
deployments/helm-chart/Chart.yaml
57+
deployments/helm-chart/README.md
5158
)
5259
5360
ic_version=${{ github.event.inputs.version }}
5461
helm_chart_version=${{ github.event.inputs.helm_version }}
5562
56-
current_ic_version=$(yq '.appVersion' <charts/nginx-ingress/Chart.yaml)
57-
current_helm_chart_version=$(yq '.version' <charts/nginx-ingress/Chart.yaml)
63+
current_ic_version=$(yq '.appVersion' <deployments/helm-chart/Chart.yaml)
64+
current_helm_chart_version=$(yq '.version' <deployments/helm-chart/Chart.yaml)
5865
5966
sed -i "s/$current_ic_version/$ic_version/g" ${FILES_TO_UPDATE_IC_VERSION[*]}
6067
sed -i "s/$current_helm_chart_version/$helm_chart_version/g" ${FILE_TO_UPDATE_HELM_CHART_VERSION[*]}

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ Read the [documentation](https://github.com/nginxinc/kubernetes-ingress/tree/mai
4242
- The internal code is found at `internal/`
4343
- Build files for Docker are found at `build/`
4444
- CI files are found at `.github/workflows/`
45-
- Deployment yaml files are found at `deploy/`
46-
- Helm files are found at `charts/`
45+
- Deployment yaml files, and Helm files are found at `deployments/`
4746
- We use [Go modules](https://github.com/golang/go/wiki/Modules) for managing dependencies.
4847

4948
## Contributing

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ update-crds: ## Update CRDs
6969
kustomize build config/crd/app-protect-dos --load-restrictor='LoadRestrictionsNone' >deploy/crds-nap-dos.yaml
7070
kustomize build config/crd/app-protect-waf --load-restrictor='LoadRestrictionsNone' >deploy/crds-nap-waf.yaml
7171

72-
.PHONY: generate-manifests
73-
generate-manifests: ## Generate manifests
74-
./hack/generate-manifests.sh
75-
7672
.PHONY: certificate-and-key
7773
certificate-and-key: ## Create default cert and key
7874
./build/generate_default_cert_and_key.sh

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ your links to the correct versions:
119119
| Version | Description | Image for NGINX | Image for NGINX Plus | Installation Manifests and Helm Chart | Documentation and Examples |
120120
| ------- | ----------- | --------------- | -------------------- | ---------------------------------------| -------------------------- |
121121
| Latest stable release | For production use | Use the 3.3.2 images from [DockerHub](https://hub.docker.com/r/nginx/nginx-ingress/), [GitHub Container](https://github.com/nginxinc/kubernetes-ingress/pkgs/container/kubernetes-ingress), [Amazon ECR Public Gallery](https://gallery.ecr.aws/nginx/nginx-ingress) or [Quay.io](https://quay.io/repository/nginx/nginx-ingress) or [build your own image](https://docs.nginx.com/nginx-ingress-controller/installation/building-ingress-controller-image/). | Use the 3.3.2 images from the [F5 Container Registry](https://docs.nginx.com/nginx-ingress-controller/installation/pulling-ingress-controller-image/) or the [AWS Marketplace](https://aws.amazon.com/marketplace/search/?CREATOR=741df81b-dfdc-4d36-b8da-945ea66b522c&FULFILLMENT_OPTION_TYPE=CONTAINER&filters=CREATOR%2CFULFILLMENT_OPTION_TYPE) or [Build your own image](https://docs.nginx.com/nginx-ingress-controller/installation/building-ingress-controller-image/). | [Manifests](https://github.com/nginxinc/kubernetes-ingress/tree/v3.3.2/deployments). [Helm chart](https://github.com/nginxinc/kubernetes-ingress/tree/v3.3.2/deployments/helm-chart). | [Documentation](https://docs.nginx.com/nginx-ingress-controller/). [Examples](https://docs.nginx.com/nginx-ingress-controller/configuration/configuration-examples/). |
122-
| Edge/Nightly | For testing and experimenting | Use the edge or nightly images from [DockerHub](https://hub.docker.com/r/nginx/nginx-ingress/), [GitHub Container](https://github.com/nginxinc/kubernetes-ingress/pkgs/container/kubernetes-ingress), [Amazon ECR Public Gallery](https://gallery.ecr.aws/nginx/nginx-ingress) or [Quay.io](https://quay.io/repository/nginx/nginx-ingress) or [build your own image](https://github.com/nginxinc/kubernetes-ingress/tree/main/docs/content/installation/building-ingress-controller-image.md). | [Build your own image](https://github.com/nginxinc/kubernetes-ingress/tree/main/docs/content/installation/building-ingress-controller-image.md). | [Manifests](https://github.com/nginxinc/kubernetes-ingress/tree/main/deploy). [Helm chart](https://github.com/nginxinc/kubernetes-ingress/tree/main/charts/nginx-ingress). | [Documentation](https://github.com/nginxinc/kubernetes-ingress/tree/main/docs/content). [Examples](https://github.com/nginxinc/kubernetes-ingress/tree/main/examples). |
122+
| Edge/Nightly | For testing and experimenting | Use the edge or nightly images from [DockerHub](https://hub.docker.com/r/nginx/nginx-ingress/), [GitHub Container](https://github.com/nginxinc/kubernetes-ingress/pkgs/container/kubernetes-ingress), [Amazon ECR Public Gallery](https://gallery.ecr.aws/nginx/nginx-ingress) or [Quay.io](https://quay.io/repository/nginx/nginx-ingress) or [build your own image](https://github.com/nginxinc/kubernetes-ingress/tree/main/docs/content/installation/building-ingress-controller-image.md). | [Build your own image](https://github.com/nginxinc/kubernetes-ingress/tree/main/docs/content/installation/building-ingress-controller-image.md). | [Manifests](https://github.com/nginxinc/kubernetes-ingress/tree/main/deployments). [Helm chart](https://github.com/nginxinc/kubernetes-ingress/tree/main/charts/nginx-ingress). | [Documentation](https://github.com/nginxinc/kubernetes-ingress/tree/main/docs/content). [Examples](https://github.com/nginxinc/kubernetes-ingress/tree/main/examples). |
123123

124124
## SBOM (Software Bill of Materials)
125125

charts/nginx-ingress/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ To install the chart with the release name my-release (my-release is the name th
7878
For NGINX:
7979

8080
```console
81-
helm install my-release -n nginx-ingress --create-namespace oci://ghcr.io/nginxinc/charts/nginx-ingress --version 1.0.2
81+
helm install my-release oci://ghcr.io/nginxinc/charts/nginx-ingress --version 1.0.2
8282
```
8383

8484
For NGINX Plus: (assuming you have pushed the Ingress Controller image `nginx-plus-ingress` to your private registry
8585
`myregistry.example.com`)
8686

8787
```console
88-
helm install my-release -n nginx-ingress --create-namespace oci://ghcr.io/nginxinc/charts/nginx-ingress --version 1.0.2 --set controller.image.repository=myregistry.example.com/nginx-plus-ingress --set controller.nginxplus=true
88+
helm install my-release oci://ghcr.io/nginxinc/charts/nginx-ingress --version 1.0.2 --set controller.image.repository=myregistry.example.com/nginx-plus-ingress --set controller.nginxplus=true
8989
```
9090

9191
This will install the latest `edge` version of the Ingress Controller from GitHub Container Registry. If you prefer to
@@ -100,15 +100,15 @@ CRDs](#upgrading-the-crds).
100100
To upgrade the release `my-release`:
101101

102102
```console
103-
helm upgrade my-release -n nginx-ingress oci://ghcr.io/nginxinc/charts/nginx-ingress --version 1.0.2
103+
helm upgrade my-release oci://ghcr.io/nginxinc/charts/nginx-ingress --version 1.0.2
104104
```
105105

106106
### Uninstalling the Chart
107107

108108
To uninstall/delete the release `my-release`:
109109

110110
```console
111-
helm uninstall my-release -n nginx-ingress
111+
helm uninstall my-release
112112
```
113113

114114
The command removes all the Kubernetes components associated with the release and deletes the release.
@@ -123,7 +123,7 @@ version is built from the `main` branch of the NGINX Ingress Controller reposito
123123
by specifying the `--version` flag with the value `0.0.0-edge`:
124124

125125
```console
126-
helm install my-release -n nginx-ingress --create-namespace oci://ghcr.io/nginxinc/charts/nginx-ingress --version 0.0.0-edge
126+
helm install my-release oci://ghcr.io/nginxinc/charts/nginx-ingress --version 0.0.0-edge
127127
```
128128

129129
> **Warning**
@@ -157,13 +157,13 @@ To install the chart with the release name my-release (my-release is the name th
157157
For NGINX:
158158

159159
```console
160-
helm install my-release -n nginx-ingress --create-namespace .
160+
helm install my-release .
161161
```
162162

163163
For NGINX Plus:
164164

165165
```console
166-
helm install my-release -f values-plus.yaml -n nginx-ingress --create-namespace .
166+
helm install my-release -f values-plus.yaml .
167167
```
168168

169169
The command deploys the Ingress Controller in your Kubernetes cluster in the default configuration. The configuration
@@ -177,15 +177,15 @@ CRDs](#upgrading-the-crds).
177177
To upgrade the release `my-release`:
178178

179179
```console
180-
helm upgrade my-release -n nginx-ingress .
180+
helm upgrade my-release .
181181
```
182182

183183
### Uninstalling the Chart
184184

185185
To uninstall/delete the release `my-release`:
186186

187187
```console
188-
helm uninstall my-release -n nginx-ingress
188+
helm uninstall my-release
189189
```
190190

191191
The command removes all the Kubernetes components associated with the release and deletes the release.
@@ -379,8 +379,8 @@ The following tables lists the configurable parameters of the NGINX Ingress Cont
379379
|`controller.watchSecretNamespace` | Comma separated list of namespaces the Ingress Controller should watch for resources of type Secret. If this arg is not configured, the Ingress Controller watches the same namespaces for all resources. See `controller.watchNamespace` and `controller.watchNamespaceLabel`. Please note that if configuring multiple namespaces using the Helm cli `--set` option, the string needs to wrapped in double quotes and the commas escaped using a backslash - e.g. `--set controller.watchSecretNamespace="default\,nginx-ingress"`. | "" |
380380
|`controller.enableCustomResources` | Enable the custom resources. | true |
381381
|`controller.enableOIDC` | Enable OIDC policies. | false |
382-
|`controller.enableTLSPassthrough` | Enable TLS Passthrough on port 443. Requires `controller.enableCustomResources`. | false |
383-
|`controller.tlsPassThroughPort` | Set the port for the TLS Passthrough. Requires `controller.enableCustomResources` and `controller.enableTLSPassthrough`. | 443 |
382+
|`controller.enableTLSPassthrough` | Enable TLS Passthrough on default port 443. Requires `controller.enableCustomResources`. | false |
383+
|`controller.tlsPassThroughPort` | Set the port for the TLS Passthrough. Requires `controller.enableCustomResources` and `controller.enableTLSPassthrough`. | 443 |
384384
|`controller.enableCertManager` | Enable x509 automated certificate management for VirtualServer resources using cert-manager (cert-manager.io). Requires `controller.enableCustomResources`. | false |
385385
|`controller.enableExternalDNS` | Enable integration with ExternalDNS for configuring public DNS entries for VirtualServer resources using [ExternalDNS](https://github.com/kubernetes-sigs/external-dns). Requires `controller.enableCustomResources`. | false |
386386
|`controller.globalConfiguration.create` | Creates the GlobalConfiguration custom resource. Requires `controller.enableCustomResources`. | false |

charts/nginx-ingress/templates/controller-daemonset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ spec:
230230
- -disable-ipv6={{ .Values.controller.disableIPV6 }}
231231
{{- if .Values.controller.enableCustomResources }}
232232
- -enable-tls-passthrough={{ .Values.controller.enableTLSPassthrough }}
233-
{{- if .Values.controller.enableTLSPassthrough }}
233+
{{ if .Values.controller.enableTLSPassthrough }}
234234
- -tls-passthrough-port={{ .Values.controller.tlsPassthroughPort }}
235-
{{- end }}
235+
{{ end }}
236236
- -enable-cert-manager={{ .Values.controller.enableCertManager }}
237237
- -enable-oidc={{ .Values.controller.enableOIDC }}
238238
- -enable-external-dns={{ .Values.controller.enableExternalDNS }}

charts/nginx-ingress/templates/controller-deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,14 @@ spec:
173173
- -enable-app-protect={{ .Values.controller.appprotect.enable }}
174174
{{- if and .Values.controller.appprotect.enable .Values.controller.appprotect.logLevel }}
175175
- -app-protect-log-level={{ .Values.controller.appprotect.logLevel }}
176-
{{- end }}
176+
{{ end }}
177177
- -enable-app-protect-dos={{ .Values.controller.appprotectdos.enable }}
178178
{{- if .Values.controller.appprotectdos.enable }}
179179
- -app-protect-dos-debug={{ .Values.controller.appprotectdos.debug }}
180180
- -app-protect-dos-max-daemons={{ .Values.controller.appprotectdos.maxDaemons }}
181181
- -app-protect-dos-max-workers={{ .Values.controller.appprotectdos.maxWorkers }}
182182
- -app-protect-dos-memory={{ .Values.controller.appprotectdos.memory }}
183-
{{- end }}
183+
{{ end }}
184184
- -nginx-configmaps=$(POD_NAMESPACE)/{{ include "nginx-ingress.configName" . }}
185185
{{- if .Values.controller.defaultTLS.secret }}
186186
- -default-server-tls-secret={{ .Values.controller.defaultTLS.secret }}
@@ -237,9 +237,9 @@ spec:
237237
- -disable-ipv6={{ .Values.controller.disableIPV6 }}
238238
{{- if .Values.controller.enableCustomResources }}
239239
- -enable-tls-passthrough={{ .Values.controller.enableTLSPassthrough }}
240-
{{- if .Values.controller.enableTLSPassthrough }}
240+
{{ if .Values.controller.enableTLSPassthrough }}
241241
- -tls-passthrough-port={{ .Values.controller.tlsPassthroughPort }}
242-
{{- end }}
242+
{{ end }}
243243
- -enable-cert-manager={{ .Values.controller.enableCertManager }}
244244
- -enable-oidc={{ .Values.controller.enableOIDC }}
245245
- -enable-external-dns={{ .Values.controller.enableExternalDNS }}

charts/nginx-ingress/values-nsm.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
controller:
2+
name: controller
3+
enableLatencyMetrics: true
4+
nginxServiceMesh:
5+
enable: true
6+
enableEgress: true

charts/nginx-ingress/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ controller:
211211
## The number of Ingress Controller pods that can be unavailable. This is a mutually exclusive setting with "minAvailable".
212212
# maxUnavailable: 1
213213

214-
## Strategy used to replace old Pods by new ones. .spec.strategy.type can be "Recreate" or "RollingUpdate" for Deployments, and "OnDelete" or "RollingUpdate" for Daemonsets. "RollingUpdate" is the default value.
214+
## Strategy used to replace old Pods by new ones. .spec.strategy.type can be "Recreate" or "RollingUpdate" for Deployments, and "OnDelete" or "RollingUpdate" for Daemonsets. "RollingUpdate" is the default value.
215215
strategy: {}
216216

217217
## Extra containers for the Ingress Controller pods.
@@ -275,7 +275,7 @@ controller:
275275
create: false
276276

277277
## The spec of the GlobalConfiguration for defining the global configuration parameters of the Ingress Controller.
278-
spec: {}
278+
spec: {} ## Ensure both curly brackets are removed when adding listeners in YAML format.
279279
# listeners:
280280
# - name: dns-udp
281281
# port: 5353
@@ -380,7 +380,7 @@ controller:
380380

381381
## The name of the service account of the Ingress Controller pods. Used for RBAC.
382382
## Autogenerated if not set or set to "".
383-
name: nginx-ingress
383+
# name: nginx-ingress
384384

385385
## The name of the secret containing docker registry credentials.
386386
## Secret must exist in the same namespace as the helm release.

config/base/kustomization.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

config/base/namespace.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

config/overlays/app-protect-dos/deployment.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

config/overlays/app-protect-dos/kustomization.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

config/overlays/app-protect-dos/service.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)