Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattes83 committed Aug 28, 2024
1 parent d17bae1 commit 76bd54b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 29 deletions.
10 changes: 4 additions & 6 deletions api/v1alpha1/ionoscloudmachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,11 @@ type IonosCloudMachineSpec struct {
Disk *Volume `json:"disk"`

// AdditionalNetworks defines the additional network configurations for the VM.
//
// +listType=map
// +listMapKey=networkID
//+optional
AdditionalNetworks Networks `json:"additionalNetworks,omitempty"`
AdditionalNetworks []Network `json:"additionalNetworks,omitempty"`

// IPAMConfig allows to obtain IP Addresses from existing IP pools instead of using DHCP.
IPAMConfig `json:",inline"`
Expand All @@ -175,11 +178,6 @@ type IonosCloudMachineSpec struct {
Type ServerType `json:"type,omitempty"`
}

// Networks contains a list of additional LAN IDs that should be attached to the VM.
// +listType=map
// +listMapKey=networkID
type Networks []Network

// Network contains the config for additional LANs.
type Network struct {
// NetworkID represents an ID an existing LAN in the data center.
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/ionoscloudmachine_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func defaultMachine() *IonosCloudMachine {
ID: "1eef-48ec-a246-a51a33aa4f3a",
},
},
AdditionalNetworks: Networks{
AdditionalNetworks: []Network{
{
NetworkID: 1,
},
Expand Down
23 changes: 1 addition & 22 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 76bd54b

Please sign in to comment.