Skip to content

Commit

Permalink
Merge pull request #143 from Kuadrant/enforced-httproute-gateway
Browse files Browse the repository at this point in the history
Fix for Gateways/HTTPRoutes not marked as enforced
  • Loading branch information
openshift-merge-bot[bot] authored Nov 11, 2024
2 parents c957b1e + 0350e24 commit 32b9632
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/ResourceList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ const getStatusLabel = (obj) => {
const policiesAffected = policiesMap[kind] || [];

const hasAllPoliciesEnforced = (conditions) => {
return policiesAffected.every((policy) =>
const relevantPolicies = policiesAffected.filter((policy) =>
conditions.some((cond) => cond.type === policy),
);

return relevantPolicies.every((policy) =>
conditions.some((cond) => cond.type === policy && cond.status === 'True'),
);
};
Expand Down

0 comments on commit 32b9632

Please sign in to comment.