Skip to content

Commit 73bfecc

Browse files
authored
Merge pull request #1731 from vmware/fix-eks-network-validation-check
AV-228166 Relax subnet validation check for EKS deployments
2 parents f76c13b + cdd1914 commit 73bfecc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/k8s/crdcontroller.go

+7
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,13 @@ 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, disabling the subnet UUID validation for AWS to avoid impact on EKS deployments.
1008+
if lib.GetCloudType() == lib.CLOUD_AWS {
1009+
utils.AviLog.Infof("Cloud Type is AWS, skip validating references on controller")
1010+
return nil
1011+
}
10051012
var rest_response interface{}
10061013
utils.AviLog.Infof("Cloud is %s, checking network ref using uuid", lib.GetCloudType())
10071014
uri := fmt.Sprintf("/api/%s/%s?cloud_uuid=%s", refModelMap[refKey], refValue, lib.GetCloudUUID())

0 commit comments

Comments
 (0)