mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 06:46:36 +01:00
Merge pull request #8910 from openshift-cherrypick-robot/cherry-pick-8906-to-release-4.16
[release-4.16] OCPBUGS-38964: IngressController subnet selection in AWS
This commit is contained in:
@@ -213,6 +213,9 @@ func validateSubnets(ctx context.Context, meta *Metadata, fldPath *field.Path, s
|
||||
if err != nil {
|
||||
return append(allErrs, field.Invalid(fldPath, subnets, err.Error()))
|
||||
}
|
||||
if publish == types.InternalPublishingStrategy && len(publicSubnets) > 0 {
|
||||
logrus.Warnf("Public subnets should not be provided when publish is set to %s", types.InternalPublishingStrategy)
|
||||
}
|
||||
publicSubnetsIdx := map[string]int{}
|
||||
for idx, id := range subnets {
|
||||
if _, ok := publicSubnets[id]; ok {
|
||||
|
||||
Reference in New Issue
Block a user