Skip to content
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

Fix issue in URL #1236

Merged
merged 1 commit into from
Oct 28, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ import (
const (
policiesEndpoint string = "internal/data/v1/api-policies"
policiesByNameEndpoint string = "internal/data/v1/api-policies?policyName="
subscriptionsPoliciesEndpoint string = "internal/data/v1//subscription-policies"
subscriptionsPoliciesByNameEndpoint string = "internal/data/v1//subscription-policies?policyName="
subscriptionsPoliciesEndpoint string = "internal/data/v1/subscription-policies"
subscriptionsPoliciesByNameEndpoint string = "internal/data/v1/subscription-policies?policyName="
)

// FetchRateLimitPoliciesOnEvent fetches the policies from the control plane on the start up and notification event updates
Expand Down Expand Up @@ -252,7 +252,7 @@ func FetchSubscriptionRateLimitPoliciesOnEvent(ratelimitName string, organizatio
if cpName, exists := airl.ObjectMeta.Labels["CPName"]; exists {
found := false
for _, policy := range rateLimitPolicies {
if (policy.Name == cpName) {
if policy.Name == cpName {
found = true
break
}
Expand All @@ -271,7 +271,7 @@ func FetchSubscriptionRateLimitPoliciesOnEvent(ratelimitName string, organizatio
if cpName, exists := rl.ObjectMeta.Labels["CPName"]; exists {
found := false
for _, policy := range rateLimitPolicies {
if (policy.Name == cpName) {
if policy.Name == cpName {
found = true
break
}
Expand All @@ -286,7 +286,7 @@ func FetchSubscriptionRateLimitPoliciesOnEvent(ratelimitName string, organizatio
logger.LoggerSynchronizer.Errorf("Error while fetching ratelimitpolicies for cleaning up outdataed crs. Error: %+v", retrieveAllRLErr)
}
}

for _, policy := range rateLimitPolicies {
if policy.QuotaType == "aiApiQuota" {
if policy.DefaultLimit.AiAPIQuota != nil {
Expand Down
Loading