From f0d749f25526f2e3e37f4e88361dd2c19c7b9444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Svantesson?= Date: Mon, 16 Sep 2024 16:15:05 +0200 Subject: [PATCH] feat: support loadBalancerSourceRanges for hook --- charts/lighthouse/templates/webhooks-service.yaml | 3 +++ charts/lighthouse/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/lighthouse/templates/webhooks-service.yaml b/charts/lighthouse/templates/webhooks-service.yaml index 47408e968..c521671d3 100644 --- a/charts/lighthouse/templates/webhooks-service.yaml +++ b/charts/lighthouse/templates/webhooks-service.yaml @@ -15,3 +15,6 @@ spec: name: http selector: app: {{ template "webhooks.name" . }} +{{ with .Values.webhooks.service.loadBalancerSourceRanges }} + loadBalancerSourceRanges: {{ toYaml . | nindent 2 }} +{{ end }} diff --git a/charts/lighthouse/values.yaml b/charts/lighthouse/values.yaml index dd083d255..1999c5692 100644 --- a/charts/lighthouse/values.yaml +++ b/charts/lighthouse/values.yaml @@ -156,6 +156,8 @@ webhooks: externalPort: 80 internalPort: 8080 annotations: {} + # Uncomment to set loadBalancerSourceRanges for service + # loadBalancerSourceRanges: [] resources: # webhooks.resources.limits -- Resource limits applied to the webhooks pods