Skip to content

Commit c8c93ee

Browse files
authored
Merge pull request #1749 from vmware/fix-eks-network-validation-check-1.13.2
[release-1.13.2] Fix eks network validation check 1.13.2
2 parents f56251c + be9041a commit c8c93ee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/k8s/crdcontroller.go

+8
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,14 @@ func checkRefOnController(key, refKey, refValue, tenant string) error {
10021002
// If reference key is network uuid , then check using UUID.
10031003
if (lib.IsPublicCloud() && refModelMap[refKey] == "network") || refKey == "NetworkUUID" {
10041004
if lib.UsesNetworkRef() || refKey == "NetworkUUID" {
1005+
// During the portal-webapp migration from Python to Go, network views were not correctly ported. However, network APIs are now being routed through Go code,
1006+
// which is incorrect. The Avi Controller needs to be fixed.
1007+
// For now, subnet UUID validation is disabled for AWS and Azure clouds to avoid impact on EKS and AKS deployments.
1008+
cloudType := lib.GetCloudType()
1009+
if cloudType == lib.CLOUD_AWS || cloudType == lib.CLOUD_AZURE {
1010+
utils.AviLog.Infof("Cloud Type is %q, skip validating references on controller", cloudType)
1011+
return nil
1012+
}
10051013
var rest_response interface{}
10061014
utils.AviLog.Infof("Cloud is %s, checking network ref using uuid", lib.GetCloudType())
10071015
uri := fmt.Sprintf("/api/%s/%s?cloud_uuid=%s", refModelMap[refKey], refValue, lib.GetCloudUUID())

0 commit comments

Comments
 (0)