From 851bc0a74af5fbda8ba09f9535f0118d7949d7ad Mon Sep 17 00:00:00 2001 From: Wilfrido Vidana <4426659+wvidana@users.noreply.github.com> Date: Fri, 31 May 2019 20:16:24 -0500 Subject: [PATCH] [stable/sentry] Support loadBalancerSourceRanges on Service template (#13665) * Support loadBalancerSourceRanges on Service Signed-off-by: Wilfrido Vidana * Chart version bump Signed-off-by: Wilfrido Vidana * Adding default values and README Signed-off-by: Wilfrido Vidana * Revert "Adding default values and README" This reverts commit 940f3e294ec4ffef49603d7decde53ced2dcb013. Signed-off-by: Wilfrido Vidana * Version bump Signed-off-by: Wilfrido Vidana * Another version bump Signed-off-by: Wilfrido Vidana * Version bump Signed-off-by: Wilfrido Vidana * Add documentation on values and README Signed-off-by: Wilfrido Vidana --- stable/sentry/Chart.yaml | 2 +- stable/sentry/README.md | 1 + stable/sentry/templates/service.yaml | 4 ++++ stable/sentry/values.yaml | 3 +++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stable/sentry/Chart.yaml b/stable/sentry/Chart.yaml index 51b5f6b19870..88017c72398a 100644 --- a/stable/sentry/Chart.yaml +++ b/stable/sentry/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Sentry is a cross-platform crash reporting and aggregation platform. name: sentry -version: 1.4.0 +version: 1.4.1 appVersion: 9.1.1 keywords: - debugging diff --git a/stable/sentry/README.md b/stable/sentry/README.md index 4e48c88d46ee..b938caaafd79 100644 --- a/stable/sentry/README.md +++ b/stable/sentry/README.md @@ -104,6 +104,7 @@ The following table lists the configurable parameters of the Sentry chart and th | `service.internalPort` | Kubernetes internal service port | `9000` | | `service.annotations` | Service annotations | `{}` | | `service.nodePort` | Kubernetes service NodePort port | Randomly chosen by Kubernetes | +| `service.loadBalancerSourceRanges` | Allow list for the load balancer | `nil` | | `ingress.enabled` | Enable ingress controller resource | `false` | | `ingress.annotations` | Ingress annotations | `{}` | | `ingress.hostname` | URL to address your Sentry installation | `sentry.local` | diff --git a/stable/sentry/templates/service.yaml b/stable/sentry/templates/service.yaml index 79a88eaec058..8a4d323c682b 100644 --- a/stable/sentry/templates/service.yaml +++ b/stable/sentry/templates/service.yaml @@ -32,3 +32,7 @@ spec: selector: app: {{ template "fullname" . }} role: web + {{- with .Values.service.loadBalancerSourceRanges }} + loadBalancerSourceRanges: + {{- toYaml . | nindent 4 }} + {{- end }} diff --git a/stable/sentry/values.yaml b/stable/sentry/values.yaml index 45ec8ba29aab..500603102677 100644 --- a/stable/sentry/values.yaml +++ b/stable/sentry/values.yaml @@ -106,6 +106,9 @@ service: # externalIPs: # - 192.168.0.1 + ## Load Balancer allow-list + # loadBalancerSourceRanges: [] + ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ ##