Skip to content

Commit b40c98b

Browse files
author
Jeff Wenzbauer
authored
Create optional serviceAnnotations value in helm chart (#2171)
* Create serviceAnnotations * Document serviceAnnotations * Update README.md * Update values.yaml
1 parent 8326f30 commit b40c98b

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ The default values set by the application itself can be confirmed [here](https:/
186186
| `webhookTLS.caCert` | TLS CA certificate for webhook (auto-generated if not provided) | "" |
187187
| `webhookTLS.cert` | TLS certificate for webhook (auto-generated if not provided) | "" |
188188
| `webhookTLS.key` | TLS private key for webhook (auto-generated if not provided) | "" |
189+
| `serviceAnnotations` | Annotations to be added to the provisioned webhook service resource | `{}` |
189190
| `serviceMaxConcurrentReconciles` | Maximum number of concurrently running reconcile loops for service | None |
190191
| `targetgroupbindingMaxConcurrentReconciles` | Maximum number of concurrently running reconcile loops for targetGroupBinding | None |
191192
| `targetgroupbindingMaxExponentialBackoffDelay` | Maximum duration of exponential backoff for targetGroupBinding reconcile failures | None |

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ kind: Service
33
metadata:
44
name: {{ template "aws-load-balancer-controller.namePrefix" . }}-webhook-service
55
namespace: {{ .Release.Namespace }}
6+
{{- with .Values.serviceAnnotations }}
7+
annotations:
8+
{{- toYaml . | nindent 4 }}
9+
{{- end }}
610
labels:
711
{{ include "aws-load-balancer-controller.labels" . | indent 4 }}
812
spec:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ updateStrategy: {}
7373
# maxSurge: 1
7474
# maxUnavailable: 1
7575

76+
# serviceAnnotations contains annotations to be added to the provisioned webhook service resource
77+
serviceAnnotations: {}
78+
7679
podAnnotations: {}
7780

7881
podLabels: {}

0 commit comments

Comments
 (0)