Skip to content

Commit db0cb99

Browse files
committed
Fixes from feedback
1 parent 4e42810 commit db0cb99

9 files changed

+13
-13
lines changed

api/v1alpha5/zz_generated.conversion.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha6/openstackmachine_conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func restorev1beta1MachineSpec(previous *infrav1.OpenStackMachineSpec, dst *infr
166166
dst.AdditionalBlockDevices = previous.AdditionalBlockDevices
167167
dst.ServerGroup = previous.ServerGroup
168168
dst.Image = previous.Image
169-
dst.FloatingAddressFromPoolRef = previous.FloatingAddressFromPoolRef
169+
dst.FloatingIPPoolRef = previous.FloatingIPPoolRef
170170
}
171171

172172
func convertNetworksToPorts(networks []NetworkParam, s apiconversion.Scope) ([]infrav1.PortOpts, error) {

api/v1alpha6/zz_generated.conversion.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha7/openstackmachine_conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func restorev1beta1MachineSpec(previous *infrav1.OpenStackMachineSpec, dst *infr
142142
restorev1beta1Port(&previous.Ports[i], &dst.Ports[i])
143143
}
144144
}
145-
dst.FloatingAddressFromPoolRef = previous.FloatingAddressFromPoolRef
145+
dst.FloatingIPPoolRef = previous.FloatingIPPoolRef
146146
}
147147

148148
func Convert_v1alpha7_OpenStackMachineSpec_To_v1beta1_OpenStackMachineSpec(in *OpenStackMachineSpec, out *infrav1.OpenStackMachineSpec, s apiconversion.Scope) error {

api/v1alpha7/zz_generated.conversion.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1beta1/conditions_consts.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const (
5858
// FloatingAddressFromPoolReadyCondition reports on the current status of the Floating IPs from ipam pool.
5959
FloatingAddressFromPoolReadyCondition clusterv1.ConditionType = "FloatingAddressFromPoolReady"
6060
// WaitingForIpamProviderReason used when machine is waiting for ipam provider to be ready before proceeding.
61-
FloatingAddressFromPoolWaitingForIpamProviderReason = "WaitingForIpamProvider"
62-
// FloatingAddressFromPoolErrorReason is used when FloatingAddressFromPool is used when there is and error attaching an IP from the pool.
61+
FloatingAddressFromPoolWaitingForIpamProviderReason = "WaitingForIPAMProvider"
62+
// FloatingAddressFromPoolErrorReason is used when there is an error attaching an IP from the pool to an machine.
6363
FloatingAddressFromPoolErrorReason = "FloatingIPError"
6464
)

api/v1beta1/openstackmachine_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ type OpenStackMachineSpec struct {
9595
// to an IPAddressClaim. Once the IPAddressClaim is fulfilled, the FloatingIP
9696
// will be assigned to the OpenStackMachine.
9797
// +optional
98-
FloatingAddressFromPoolRef *corev1.TypedLocalObjectReference `json:"floatingAddressFromPool,omitempty"`
98+
FloatingIPPoolRef *corev1.TypedLocalObjectReference `json:"floatingAddressFromPool,omitempty"`
9999
}
100100

101101
type ServerMetadata struct {

api/v1beta1/zz_generated.deepcopy.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controllers/openstackmachine_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func GetPortIDs(ports []infrav1.PortStatus) []string {
350350
// reconcileFloatingAddressFromPool reconciles the floating IP address from the pool.
351351
// It returns the IPAddressClaim and a boolean indicating if the IPAddressClaim is ready.
352352
func (r *OpenStackMachineReconciler) reconcileFloatingAddressFromPool(ctx context.Context, scope *scope.WithLogger, openStackMachine *infrav1.OpenStackMachine, openStackCluster *infrav1.OpenStackCluster) (*ipamv1.IPAddressClaim, bool, error) {
353-
if openStackMachine.Spec.FloatingAddressFromPoolRef == nil {
353+
if openStackMachine.Spec.FloatingIPPoolRef == nil {
354354
return nil, false, nil
355355
}
356356
var claim *ipamv1.IPAddressClaim
@@ -371,7 +371,7 @@ func (r *OpenStackMachineReconciler) reconcileFloatingAddressFromPool(ctx contex
371371
func (r *OpenStackMachineReconciler) getOrCreateIPAddressClaimForFloatingAddress(ctx context.Context, scope *scope.WithLogger, openStackMachine *infrav1.OpenStackMachine, openStackCluster *infrav1.OpenStackCluster) (*ipamv1.IPAddressClaim, error) {
372372
var err error
373373

374-
poolRef := openStackMachine.Spec.FloatingAddressFromPoolRef
374+
poolRef := openStackMachine.Spec.FloatingIPPoolRef
375375
claimName := names.GetFloatingAddressClaimName(openStackMachine.Name)
376376
claim := &ipamv1.IPAddressClaim{}
377377

@@ -466,7 +466,7 @@ func (r *OpenStackMachineReconciler) associateIPAddressFromIPAddressClaim(ctx co
466466
func (r *OpenStackMachineReconciler) reconcileDeleteFloatingAddressFromPool(scope *scope.WithLogger, openStackMachine *infrav1.OpenStackMachine) error {
467467
log := scope.Logger().WithValues("openStackMachine", openStackMachine.Name)
468468
log.Info("Reconciling Machine delete floating address from pool")
469-
if openStackMachine.Spec.FloatingAddressFromPoolRef == nil {
469+
if openStackMachine.Spec.FloatingIPPoolRef == nil {
470470
return nil
471471
}
472472
claimName := names.GetFloatingAddressClaimName(openStackMachine.Name)

0 commit comments

Comments
 (0)