Skip to content

Commit

Permalink
chore: remove noQuotaChange check from auto approval
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolezhanchik committed Sep 27, 2024
1 parent 87b07b6 commit 867bedc
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/helpers/auto-approval-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,11 @@ export const checkIfQuotaAutoApproval = async (
productionQuota: currentQuota.productionQuota,
};

let isAutoApprovalAvailable = checkNoQuotaChange(castCurrentQuota, requestedQuota);
if (!isAutoApprovalAvailable) {
isAutoApprovalAvailable = !checkIfQuotaUpgrade(castCurrentQuota, requestedQuota);
}
const namespaceNames: string[] = [];
const resourceNames: string[] = [];
let isAutoApprovalAvailable = !checkIfQuotaUpgrade(castCurrentQuota, requestedQuota);

if (!isAutoApprovalAvailable) {
const namespaceNames: string[] = [];
const resourceNames: string[] = [];
let hasIncreasedSignificantly = false;
// Iterate over each environment's quota
// @ts-ignore
Expand Down

0 comments on commit 867bedc

Please sign in to comment.