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
aws/publicIpv4Pool: validate if Public IPv4 pool exists
Validate if Public IPv4 Pool (platform.aws.publicIpv4PoolId)
exists, and has enough free IPs in the pool when installing
a cluster with publish strategy external.
returnappend(allErrs, field.Invalid(fldPath, poolID, fmt.Errorf("publish strategy %s can't be used with custom Public IPv4 Pools", config.Publish).Error()))
154
+
}
155
+
156
+
// Pool validations
157
+
// Resources claiming Public IPv4 from Pool in regular 'External' installations:
expectErr: `^\Qplatform.aws.serviceEndpoints[0].url: Invalid value: "http://test": Head "http://test": dial tcp: lookup test\E.*: no such host$`,
810
+
}, {
811
+
name: "invalid public ipv4 pool private installation",
812
+
installConfig: func() *types.InstallConfig {
813
+
c:=validInstallConfig()
814
+
c.Publish=types.InternalPublishingStrategy
815
+
c.Platform.AWS.PublicIpv4Pool="ipv4pool-ec2-123"
816
+
c.Platform.AWS.Subnets= []string{}
817
+
returnc
818
+
}(),
819
+
availZones: validAvailZones(),
820
+
expectErr: `^platform.aws.publicIpv4PoolId: Invalid value: "ipv4pool-ec2-123": publish strategy Internal can't be used with custom Public IPv4 Pools$`,
0 commit comments