Skip to content

Commit

Permalink
Update ipam API versions to v1beta1 (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchcrab authored Jul 30, 2024
1 parent dc585da commit 0003207
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
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

- Update `ipam` API versions to `v1beta1`.

## [0.57.1] - 2024-07-24

## [0.57.0] - 2024-07-22
Expand Down
4 changes: 2 additions & 2 deletions helm/cluster-vsphere/templates/ipam/_ipam.tpl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{{/* vim: set filetype=mustache: */}}

{{- define "isIpamControlPlaneIPEnabled" -}}
{{- if and (and (not .Values.global.connectivity.network.controlPlaneEndpoint.host) (.Values.global.connectivity.network.controlPlaneEndpoint.ipPoolName)) (.Capabilities.APIVersions.Has "ipam.cluster.x-k8s.io/v1alpha1/IPAddressClaim") }}
{{- if and (and (not .Values.global.connectivity.network.controlPlaneEndpoint.host) (.Values.global.connectivity.network.controlPlaneEndpoint.ipPoolName)) (.Capabilities.APIVersions.Has "ipam.cluster.x-k8s.io/v1beta1/IPAddressClaim") }}
{{- printf "true" -}}
{{- end }}
{{- end }}

{{- define "isIpamSvcLoadBalancerEnabled" -}}
{{- if and (.Values.global.connectivity.network.loadBalancers.ipPoolName) (.Capabilities.APIVersions.Has "ipam.cluster.x-k8s.io/v1alpha1/IPAddressClaim") }}
{{- if and (.Values.global.connectivity.network.loadBalancers.ipPoolName) (.Capabilities.APIVersions.Has "ipam.cluster.x-k8s.io/v1beta1/IPAddressClaim") }}
{{- printf "true" -}}
{{- end }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion helm/cluster-vsphere/templates/ipam/ipAddressClaim.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if (include "isIpamControlPlaneIPEnabled" $) -}}
apiVersion: ipam.cluster.x-k8s.io/v1alpha1
apiVersion: ipam.cluster.x-k8s.io/v1beta1
kind: IPAddressClaim
metadata:
name: {{ include "resource.default.name" $ }}
Expand Down
2 changes: 1 addition & 1 deletion helm/cluster-vsphere/templates/ipam/ipAddressClaimLB.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if (include "isIpamSvcLoadBalancerEnabled" $) -}}
apiVersion: ipam.cluster.x-k8s.io/v1alpha1
apiVersion: ipam.cluster.x-k8s.io/v1beta1
kind: IPAddressClaim
metadata:
name: {{ include "lbClaimName" $ }}
Expand Down

0 comments on commit 0003207

Please sign in to comment.