Skip to content

Commit

Permalink
Allow disabling ingress validation (#3847)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarevalo2002 authored Sep 23, 2024
1 parent dc7e051 commit 7901857
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/aws-load-balancer-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ The default values set by the application itself can be confirmed [here](https:/
| `ingressMaxConcurrentReconciles` | Maximum number of concurrently running reconcile loops for ingress | None |
| `logLevel` | Set the controller log level - info, debug | None |
| `metricsBindAddr` | The address the metric endpoint binds to | "" |
| `webhookConfig.disableIngressValidation` | Disables the validation of resources of kind Ingress | None |
| `webhookBindPort` | The TCP port the Webhook server binds to | None |
| `webhookTLS.caCert` | TLS CA certificate for webhook (auto-generated if not provided) | "" |
| `webhookTLS.cert` | TLS certificate for webhook (auto-generated if not provided) | "" |
Expand Down
2 changes: 2 additions & 0 deletions helm/aws-load-balancer-controller/templates/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ webhooks:
resources:
- targetgroupbindings
sideEffects: None
{{- if not $.Values.webhookConfig.disableIngressValidation }}
- clientConfig:
{{ if not $.Values.enableCertManager -}}
caBundle: {{ $tls.caCert }}
Expand All @@ -205,6 +206,7 @@ webhooks:
resources:
- ingresses
sideEffects: None
{{- end }}
---
{{- if not $.Values.enableCertManager }}
apiVersion: v1
Expand Down
4 changes: 4 additions & 0 deletions helm/aws-load-balancer-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ logLevel:
# The address the metric endpoint binds to. (default ":8080")
metricsBindAddr: ""

webhookConfig:
# disableIngressValidation disables the validation of resources of kind Ingress, false by default
disableIngressValidation:

# The TCP port the Webhook server binds to. (default 9443)
webhookBindPort:

Expand Down

0 comments on commit 7901857

Please sign in to comment.