Skip to content

Commit

Permalink
Infrastructure: Fix machine placement target defaults (#2151)
Browse files Browse the repository at this point in the history
Make sure that the optional fields for the
VPCMachinePlacementTarget definition are configured properly
for JSON serialization.

Related: #2150
  • Loading branch information
cjschaef authored Jan 29, 2025
1 parent dad5ba9 commit 4830261
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/v1beta2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,10 @@ type VPCMachinePlacementTarget struct {

// DedicatedHostGroup defines the Dedicated Host Group to use when placing a VPC Machine (Instance).
// +optional
DedicatedHostGroup *VPCResource `json:"dedicatedHostGroup"`
DedicatedHostGroup *VPCResource `json:"dedicatedHostGroup,omitempty"`

// PlacementGroup defines the Placement Group to use when placing a VPC Machine (Instance).
// +optional
PlacementGroup *VPCResource `json:"placementGroup,omitempty"`
}

Expand Down

0 comments on commit 4830261

Please sign in to comment.