Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for loadBalancerSourceRanges #169

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions charts/warpstream-agent/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.13.80] - 2025-01-27
- Add support for `loadBalancerSourceRanges` in services.

## [0.13.79] - 2025-01-24
- Update WarpStream Agent to v616.

Expand Down
2 changes: 1 addition & 1 deletion charts/warpstream-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: warpstream-agent
description: WarpStream Agent for Kubernetes.
type: application
version: 0.13.79
version: 0.13.80
appVersion: v616
icon: https://avatars.githubusercontent.com/u/132156278
home: https://docs.warpstream.com/warpstream/
Expand Down
6 changes: 6 additions & 0 deletions charts/warpstream-agent/templates/service-kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,11 @@ spec:
name: kafka
selector:
{{- include "warpstream-agent.selectorLabels" . | nindent 4 }}
{{- with .Values.kafkaService.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- range . }}
- {{ . }}
{{- end }}
{{- end }}
{{- end}}
{{- end}}
6 changes: 6 additions & 0 deletions charts/warpstream-agent/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ spec:
{{- end }}
selector:
{{- include "warpstream-agent.selectorLabels" . | nindent 4 }}
{{- with .Values.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- range . }}
- {{ . }}
{{- end }}
{{- end }}
...
{{- if .Values.service.perPod }}
{{- if and (eq (include "warpstream-agent.deploymentKind" .) "StatefulSet") (.Values.service.perPod.enabled) }}
Expand Down
10 changes: 10 additions & 0 deletions charts/warpstream-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ service:
schemaRegistryPort: 9094
labels: {}

# If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted
# to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.
# More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
# loadBalancerSourceRanges: []

# Create services per pod, this can be used in combination with deploymentKind=StatefulSet and statefulSetConfig.clusterDomain
# to expose each pod outside of the cluster when using Kong or Isto ingresses.
# See https://github.com/warpstreamlabs/charts/pull/156 for details
Expand All @@ -104,6 +109,11 @@ kafkaService:
type: ClusterIP
port: 9092

# If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted
# to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.
# More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
# loadBalancerSourceRanges: []

rbac:
create: true

Expand Down
Loading