Skip to content

AV-228166 Relax subnet validation check for EKS deployments #1731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions internal/k8s/crdcontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,13 @@ func checkRefOnController(key, refKey, refValue, tenant string) error {
// If reference key is network uuid , then check using UUID.
if (lib.IsPublicCloud() && refModelMap[refKey] == "network") || refKey == "NetworkUUID" {
if lib.UsesNetworkRef() || refKey == "NetworkUUID" {
// 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,
// which is incorrect. The Avi Controller needs to be fixed.
// For now, disabling the subnet UUID validation for AWS to avoid impact on EKS deployments.
if lib.GetCloudType() == lib.CLOUD_AWS {
utils.AviLog.Infof("Cloud Type is AWS, skip validating references on controller")
return nil
}
var rest_response interface{}
utils.AviLog.Infof("Cloud is %s, checking network ref using uuid", lib.GetCloudType())
uri := fmt.Sprintf("/api/%s/%s?cloud_uuid=%s", refModelMap[refKey], refValue, lib.GetCloudUUID())
Expand Down
Loading