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
Adding the option for the users to create a NAT gateway for the
compute nodes as an option to replace the traditional load balancer
setup. This is only for a single NAT gateway in the compute
subnet as CAPZ expects an outbound LB for control planes.
allErrs=append(allErrs, field.Invalid(fldPath.Child("outboundType"), p.OutboundType, fmt.Sprintf("%s is only allowed when installing to pre-existing network", azure.UserDefinedRoutingOutboundType)))
100
99
}
101
-
ifp.OutboundType==azure.NatGatewayOutboundType {
102
-
ific.FeatureSet!=configv1.TechPreviewNoUpgrade {
103
-
allErrs=append(allErrs, field.Invalid(fldPath.Child("outboundType"), p.OutboundType, "not supported in this feature set"))
// For now, BYO network and NAT gateways are not compatible
107
-
allErrs=append(allErrs, field.Invalid(fldPath.Child("outboundType"), p.OutboundType, fmt.Sprintf("%s is not allowed when installing to pre-existing network", azure.NatGatewayOutboundType)))
103
+
allErrs=append(allErrs, field.Invalid(fldPath.Child("outboundType"), p.OutboundType, fmt.Sprintf("%s is not allowed when installing to pre-existing network", p.OutboundType)))
expected: `^test-path\.outboundType: Invalid value: "UserDefinedRouting": UserDefinedRouting is only allowed when installing to pre-existing network$`,
147
147
},
148
-
{
149
-
name: "invalid nat gateway",
150
-
platform: func() *azure.Platform {
151
-
p:=validPlatform()
152
-
p.OutboundType=azure.NatGatewayOutboundType
153
-
returnp
154
-
}(),
155
-
expected: `^test-path\.outboundType: Invalid value: "NatGateway": not supported in this feature set$`,
0 commit comments