Skip to content

Commit

Permalink
Fix IPAM for service load balancers (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erkan Erol authored Aug 1, 2024
1 parent 855cb53 commit 2827999
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Disable IPAM for service load balancers if `.global.connectivity.network.loadBalancers.cidrBlocks` is set.

## [0.58.1] - 2024-07-31

### Changed
Expand Down
2 changes: 1 addition & 1 deletion helm/cluster-vsphere/templates/ipam/_ipam.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{- end }}

{{- define "isIpamSvcLoadBalancerEnabled" -}}
{{- if and (.Values.global.connectivity.network.loadBalancers.ipPoolName) (.Capabilities.APIVersions.Has "ipam.cluster.x-k8s.io/v1beta1/IPAddressClaim") }}
{{- if and (and (not .Values.global.connectivity.network.loadBalancers.cidrBlocks) (.Values.global.connectivity.network.loadBalancers.ipPoolName)) (.Capabilities.APIVersions.Has "ipam.cluster.x-k8s.io/v1beta1/IPAddressClaim") }}
{{- printf "true" -}}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 2827999

Please sign in to comment.