@@ -152,7 +152,7 @@ func main() {
152152 // OFFLOADING MODULE
153153 // Storage Provisioner parameters
154154 enableStorage := pflag .Bool ("enable-storage" , false , "enable the liqo virtual storage class" )
155- virtualStorageClassName := pflag .String ("virtual-storage-class-name" , consts . DefaultLiqoNamespace , "Name of the virtual storage class" )
155+ virtualStorageClassName := pflag .String ("virtual-storage-class-name" , "liqo" , "Name of the virtual storage class" )
156156 realStorageClassName := pflag .String ("real-storage-class-name" , "" , "Name of the real storage class to use for the actual volumes" )
157157 storageNamespace := pflag .String ("storage-namespace" , "liqo-storage" , "Namespace where the liqo storage-related resources are stored" )
158158 // Service continuity
@@ -251,12 +251,13 @@ func main() {
251251 var ipamClient ipam.IpamClient
252252 if * ipamServer != "" {
253253 klog .Infof ("connecting to the IPAM server %q" , * ipamServer )
254- connection , err := grpc .NewClient (* ipamServer , grpc .WithTransportCredentials (insecure .NewCredentials ()))
254+ conn , err := grpc .NewClient (* ipamServer , grpc .WithTransportCredentials (insecure .NewCredentials ()))
255255 if err != nil {
256256 klog .Errorf ("failed to establish a connection to the IPAM %q" , * ipamServer )
257257 os .Exit (1 )
258258 }
259- ipamClient = ipam .NewIpamClient (connection )
259+ defer conn .Close ()
260+ ipamClient = ipam .NewIpamClient (conn )
260261 }
261262
262263 if err := modules .SetupNetworkingModule (ctx , mgr , & modules.NetworkingOption {
0 commit comments