Skip to content

[release-1.13.2] Fix eks network validation check 1.13.2 #1749

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 24, 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
8 changes: 8 additions & 0 deletions internal/k8s/crdcontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,14 @@ 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, subnet UUID validation is disabled for AWS and Azure clouds to avoid impact on EKS and AKS deployments.
cloudType := lib.GetCloudType()
if cloudType == lib.CLOUD_AWS || cloudType == lib.CLOUD_AZURE {
utils.AviLog.Infof("Cloud Type is %q, skip validating references on controller", cloudType)
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