From 13175b8bf9a11d11d6a2ab9efbf1618913725005 Mon Sep 17 00:00:00 2001 From: Dmitri Fedotov Date: Tue, 17 Dec 2024 14:47:47 +0200 Subject: [PATCH] rename field to `Networking` --- pkg/cloudprovider/metal/config.go | 6 +++--- pkg/cloudprovider/metal/suite_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/cloudprovider/metal/config.go b/pkg/cloudprovider/metal/config.go index 6c1d2f0..81a5186 100644 --- a/pkg/cloudprovider/metal/config.go +++ b/pkg/cloudprovider/metal/config.go @@ -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 ( diff --git a/pkg/cloudprovider/metal/suite_test.go b/pkg/cloudprovider/metal/suite_test.go index 69f8848..75f8997 100644 --- a/pkg/cloudprovider/metal/suite_test.go +++ b/pkg/cloudprovider/metal/suite_test.go @@ -147,7 +147,7 @@ func SetupTest() (*corev1.Namespace, *cloudprovider.Interface, string) { }() cloudConfig := CloudConfig{ ClusterName: clusterName, - Networking: NetworkingOpts{ + Networking: Networking{ ConfigureNodeAddresses: true, }, }