From c6f38c0aca5dd23464fcf7a96996a03e5464341e 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 54f43949c..bb33f7321 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