You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not allow to set both network and DHCP server details which will create conflict while creating new DHCP server on whether to use network name or DHCP server name
Copy file name to clipboardExpand all lines: api/v1beta2/ibmpowervscluster_types.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ type IBMPowerVSClusterSpec struct {
42
42
// 1. in the case of DHCPServer.Name is not set the name will be DHCPSERVER<CLUSTER_NAME>_Private.
43
43
// 2. if DHCPServer.Name is set the name will be DHCPSERVER<DHCPServer.Name>_Private.
44
44
// when Network.ID is set, its expected that there exist a network in PowerVS workspace with id or else system will give error.
45
-
// when Network.Name is set, system will first check for network with Name in PowerVS workspace, if not exist network will be created by DHCP service.
45
+
// when Network.Name is set, system will first check for network with Name in PowerVS workspace, if not exist system will check DHCP network with given Network.name, if that also not exist, it will create a new DHCP service and name will be DHCPSERVER<Network.Name>_Private.
46
46
// Network.RegEx is not yet supported and system will ignore the value.
Copy file name to clipboardExpand all lines: cloud/scope/powervs_cluster.go
+12-18Lines changed: 12 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -865,10 +865,11 @@ func (s *PowerVSClusterScope) createServiceInstance() (*resourcecontrollerv2.Res
865
865
}
866
866
867
867
// ReconcileNetwork reconciles network
868
-
// If only IBMPowerVSCluster.Spec.Network is set, network would be validated and if exists already will get used as cluster’s network or a new network will be created via DHCP service.
868
+
// If only IBMPowerVSCluster.Spec.Network is set, network would be validated and if exists already will get used as cluster’s network or DHCP network would be validated with this name if not exits then a new network will be created via DHCP service.
869
869
// If only IBMPowerVSCluster.Spec.DHCPServer is set, DHCP server would be validated and if exists already, will use DHCP server’s network as cluster network. If not a new DHCP service will be created and it’s network will be used.
870
-
// If both IBMPowerVSCluster.Spec.Network & IBMPowerVSCluster.Spec.DHCPServer is set, network and DHCP server would be validated and if both exists already then network is belongs to given DHCP server or not would be validated.
871
-
// If both IBMPowerVSCluster.Spec.Network & IBMPowerVSCluster.Spec.DHCPServer is not set, by default DHCP service will be created to setup cluster's network.
870
+
// Cannot set both IBMPowerVSCluster.Spec.Network & IBMPowerVSCluster.Spec.DHCPServer since it will cause collision during network creation if both are provided.
871
+
// If both IBMPowerVSCluster.Spec.Network & IBMPowerVSCluster.Spec.DHCPServer is not set, by default DHCP service will be created with the cluster name to setup cluster's network.
872
+
// Note: DHCP network name would be in `DHCPSERVER<Network.name or DHCPServer.name>_Private` this format.
Copy file name to clipboardExpand all lines: config/crd/bases/infrastructure.cluster.x-k8s.io_ibmpowervsclusters.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -460,7 +460,7 @@ spec:
460
460
1. in the case of DHCPServer.Name is not set the name will be DHCPSERVER<CLUSTER_NAME>_Private.
461
461
2. if DHCPServer.Name is set the name will be DHCPSERVER<DHCPServer.Name>_Private.
462
462
when Network.ID is set, its expected that there exist a network in PowerVS workspace with id or else system will give error.
463
-
when Network.Name is set, system will first check for network with Name in PowerVS workspace, if not exist network will be created by DHCP service.
463
+
when Network.Name is set, system will first check for network with Name in PowerVS workspace, if not exist system will check DHCP network with given Network.name, if that also not exist, it will create a new DHCP service and name will be DHCPSERVER<Network.Name>_Private.
464
464
Network.RegEx is not yet supported and system will ignore the value.
Copy file name to clipboardExpand all lines: config/crd/bases/infrastructure.cluster.x-k8s.io_ibmpowervsclustertemplates.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -493,7 +493,7 @@ spec:
493
493
1. in the case of DHCPServer.Name is not set the name will be DHCPSERVER<CLUSTER_NAME>_Private.
494
494
2. if DHCPServer.Name is set the name will be DHCPSERVER<DHCPServer.Name>_Private.
495
495
when Network.ID is set, its expected that there exist a network in PowerVS workspace with id or else system will give error.
496
-
when Network.Name is set, system will first check for network with Name in PowerVS workspace, if not exist network will be created by DHCP service.
496
+
when Network.Name is set, system will first check for network with Name in PowerVS workspace, if not exist system will check DHCP network with given Network.name, if that also not exist, it will create a new DHCP service and name will be DHCPSERVER<Network.Name>_Private.
497
497
Network.RegEx is not yet supported and system will ignore the value.
0 commit comments