Skip to content

Commit 7901857

Browse files
authored
Allow disabling ingress validation (#3847)
1 parent dc7e051 commit 7901857

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

helm/aws-load-balancer-controller/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ The default values set by the application itself can be confirmed [here](https:/
223223
| `ingressMaxConcurrentReconciles` | Maximum number of concurrently running reconcile loops for ingress | None |
224224
| `logLevel` | Set the controller log level - info, debug | None |
225225
| `metricsBindAddr` | The address the metric endpoint binds to | "" |
226+
| `webhookConfig.disableIngressValidation` | Disables the validation of resources of kind Ingress | None |
226227
| `webhookBindPort` | The TCP port the Webhook server binds to | None |
227228
| `webhookTLS.caCert` | TLS CA certificate for webhook (auto-generated if not provided) | "" |
228229
| `webhookTLS.cert` | TLS certificate for webhook (auto-generated if not provided) | "" |

helm/aws-load-balancer-controller/templates/webhook.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ webhooks:
181181
resources:
182182
- targetgroupbindings
183183
sideEffects: None
184+
{{- if not $.Values.webhookConfig.disableIngressValidation }}
184185
- clientConfig:
185186
{{ if not $.Values.enableCertManager -}}
186187
caBundle: {{ $tls.caCert }}
@@ -205,6 +206,7 @@ webhooks:
205206
resources:
206207
- ingresses
207208
sideEffects: None
209+
{{- end }}
208210
---
209211
{{- if not $.Values.enableCertManager }}
210212
apiVersion: v1

helm/aws-load-balancer-controller/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ logLevel:
201201
# The address the metric endpoint binds to. (default ":8080")
202202
metricsBindAddr: ""
203203

204+
webhookConfig:
205+
# disableIngressValidation disables the validation of resources of kind Ingress, false by default
206+
disableIngressValidation:
207+
204208
# The TCP port the Webhook server binds to. (default 9443)
205209
webhookBindPort:
206210

0 commit comments

Comments
 (0)