Skip to content

Commit

Permalink
rename field to Networking
Browse files Browse the repository at this point in the history
  • Loading branch information
defo89 committed Dec 17, 2024
1 parent 5b465d0 commit 13175b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/cloudprovider/metal/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ type CloudProviderConfig struct {
cloudConfig CloudConfig
}

type NetworkingOpts struct {
type Networking struct {
ConfigureNodeAddresses bool `json:"configureNodeAddresses"`
}

type CloudConfig struct {
ClusterName string `json:"clusterName"`
Networking NetworkingOpts `json:"networkingOpts"`
ClusterName string `json:"clusterName"`
Networking Networking `json:"networking"`
}

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/cloudprovider/metal/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func SetupTest() (*corev1.Namespace, *cloudprovider.Interface, string) {
}()
cloudConfig := CloudConfig{
ClusterName: clusterName,
Networking: NetworkingOpts{
Networking: Networking{
ConfigureNodeAddresses: true,
},
}
Expand Down

0 comments on commit 13175b8

Please sign in to comment.