Skip to content

Commit 69f1995

Browse files
committed
configure feature gates with helm chart
1 parent bdb42ea commit 69f1995

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Chart release v1.2.0 and later enables high availability configuration by defaul
163163
## Configuration
164164

165165
The following tables lists the configurable parameters of the chart and their default values.
166-
The default values set by the application itself can be confirmed [here](https://kubernetes-sigs.github.io/aws-load-balancer-controller/guide/controller/configurations/).
166+
The default values set by the application itself can be confirmed [here](https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.4/deploy/configurations/#controller-configuration-options).
167167

168168
| Parameter | Description | Default |
169169
|------------------------------------------------| -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
@@ -245,3 +245,4 @@ The default values set by the application itself can be confirmed [here](https:/
245245
| `serviceMonitor.interval` | Prometheus scrape interval | `1m` |
246246
| `serviceMonitor.namespace` | Namespace in which Prometheus is running | None |
247247
| `clusterSecretsPermissions.allowAllSecrets` | If `true`, controller has access to all secrets in the cluster. | `false` |
248+
| `controllerConfig.featureGates` | set of `key: value` pairs that describe AWS load balance controller features | `{}` |

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ spec:
143143
{{- if kindIs "bool" .Values.disableRestrictedSecurityGroupRules }}
144144
- --disable-restricted-sg-rules={{ .Values.disableRestrictedSecurityGroupRules }}
145145
{{- end }}
146+
{{- if .Values.controllerConfig.featureGates }}
147+
- --feature-gates={{ include "aws-load-balancer-controller.convertMapToCsv" .Values.controllerConfig.featureGates | trimSuffix "," }}
148+
{{- end }}
146149
{{- if .Values.env }}
147150
env:
148151
{{- range $key, $value := .Values.env }}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,13 @@ backendSecurityGroup:
284284
# disableRestrictedSecurityGroupRules specifies whether to disable creating port-range restricted security group rules for traffic
285285
disableRestrictedSecurityGroupRules:
286286

287+
# controllerConfig specifies controller configuration
288+
controllerConfig:
289+
# featureGates set of key: value pairs that describe AWS load balance controller features
290+
featureGates: {}
291+
# ServiceTypeLoadBalancerOnly: true
292+
# EndpointsFailOpen: true
293+
287294
# objectSelector for webhook
288295
objectSelector:
289296
matchExpressions:

0 commit comments

Comments
 (0)