Skip to content

Commit 3cd2051

Browse files
Add support for multiple CIDR in vcn and fix dns label bug
1 parent aea123f commit 3cd2051

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cloud/scope/vcn_reconciler.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (s *ClusterScope) ReconcileVCN(ctx context.Context) error {
3737
}
3838
if vcn != nil {
3939
s.OCIClusterAccessor.GetNetworkSpec().Vcn.ID = vcn.Id
40-
if s.IsVcnEquals(vcn, spec) {
40+
if s.IsVcnEquals(vcn) {
4141
s.Logger.Info("No Reconciliation Required for VCN", "vcn", s.getVcnId())
4242
return nil
4343
}
@@ -48,8 +48,8 @@ func (s *ClusterScope) ReconcileVCN(ctx context.Context) error {
4848
return err
4949
}
5050

51-
func (s *ClusterScope) IsVcnEquals(actual *core.Vcn, desired infrastructurev1beta2.VCN) bool {
52-
if *actual.DisplayName != desired.Name {
51+
func (s *ClusterScope) IsVcnEquals(actual *core.Vcn) bool {
52+
if *actual.DisplayName != s.GetVcnName() {
5353
return false
5454
}
5555
return true
@@ -106,7 +106,7 @@ func (s *ClusterScope) GetVCN(ctx context.Context) (*core.Vcn, error) {
106106

107107
func (s *ClusterScope) UpdateVCN(ctx context.Context, vcn infrastructurev1beta2.VCN) error {
108108
updateVCNDetails := core.UpdateVcnDetails{
109-
DisplayName: common.String(vcn.Name),
109+
DisplayName: common.String(s.GetVcnName()),
110110
}
111111
vcnResponse, err := s.VCNClient.UpdateVcn(ctx, core.UpdateVcnRequest{
112112
UpdateVcnDetails: updateVCNDetails,

0 commit comments

Comments
 (0)