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
* added skip vcn and subnet functionality without nsg skip
* webhook for nsg feature
* webhook verifications, reconcilitation for nsgs and service gateway and conversions
* added checks for igw, sgw, ngw and rt
* conversion beta1-beta2 changes
* added documentation for new feature
* minor changes
* comments to explain code
* changes according to suggestions
* adding comments and changes for more clarity
* added e2e test for nsg-feature
* changes in documents and comments for more clarity
* changes according to PR review
* changed from E4 shape to E5 to prevent issues during e2e
---------
Co-authored-by: dranicu <[email protected]>
Co-authored-by: Dragos Nicu <[email protected]>
allErrs=append(allErrs, field.Invalid(field.NewPath("spec", "NetworkSpec.Vcn.InternetGateway.Skip"), c.Spec.NetworkSpec.Vcn.InternetGateway.Skip, "field requires to be true when VCN is skipped"))
106
+
}
107
+
108
+
// If Skip field is True, Skip field of ServiceGateway should be true
allErrs=append(allErrs, field.Invalid(field.NewPath("spec", "NetworkSpec.Vcn.ServiceGateway.Skip"), c.Spec.NetworkSpec.Vcn.ServiceGateway.Skip, "field requires to be true when VCN is skipped"))
111
+
}
112
+
113
+
// If Skip field is True, Skip field of NATGateway should be true
allErrs=append(allErrs, field.Invalid(field.NewPath("spec", "NetworkSpec.Vcn.NATGateway.Skip"), c.Spec.NetworkSpec.Vcn.NATGateway.Skip, "field requires to be true when VCN is skipped"))
116
+
}
117
+
118
+
// If Skip field is True, Skip field of RouteTable should be true
allErrs=append(allErrs, field.Invalid(field.NewPath("spec", "NetworkSpec.Vcn.RouteTable.Skip"), c.Spec.NetworkSpec.Vcn.RouteTable.Skip, "field requires to be true when VCN is skipped"))
allErrs=append(allErrs, field.Invalid(field.NewPath("spec", "NetworkSpec.Vcn.InternetGateway.Skip"), c.Spec.NetworkSpec.Vcn.InternetGateway.Skip, "field requires to be true when VCN is skipped"))
196
+
}
197
+
198
+
// If Skip field is True, Skip field of ServiceGateway should be true
allErrs=append(allErrs, field.Invalid(field.NewPath("spec", "NetworkSpec.Vcn.ServiceGateway.Skip"), c.Spec.NetworkSpec.Vcn.ServiceGateway.Skip, "field requires to be true when VCN is skipped"))
201
+
}
202
+
203
+
// If Skip field is True, Skip field of NATGateway should be true
allErrs=append(allErrs, field.Invalid(field.NewPath("spec", "NetworkSpec.Vcn.NATGateway.Skip"), c.Spec.NetworkSpec.Vcn.NATGateway.Skip, "field requires to be true when VCN is skipped"))
206
+
}
207
+
208
+
// If Skip field is True, Skip field of RouteTable should be true
allErrs=append(allErrs, field.Invalid(field.NewPath("spec", "NetworkSpec.Vcn.RouteTable.Skip"), c.Spec.NetworkSpec.Vcn.RouteTable.Skip, "field requires to be true when VCN is skipped"))
0 commit comments