Skip to content

Commit

Permalink
Merge pull request meshery#10216 from MUzairS15/MUzairS15/policy/eval
Browse files Browse the repository at this point in the history
[server] Server policy eval improvements.
  • Loading branch information
MUzairS15 authored Feb 5, 2024
2 parents f5ff5c8 + eabc329 commit 5d45a87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/handlers/policy_relationship_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (h *Handler) EvaluateRelationshipPolicy(
}
evalresults[query] = result
}
evalResults = evalresults
evalResults = core.Format.Prettify(evalresults, false)

// write the response
ec := json.NewEncoder(rw)
Expand Down
3 changes: 2 additions & 1 deletion server/meshmodel/kubernetes/policies/path.rego
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ ensureParentPathsExist(patches, object) = result {

missingPaths := {sprintf("/%s", [concat("/", prefixPath)]) |
paths[path]
path[i]
path[i] # walk over path


# If a path is missing, all its subpaths will be added.
# Eg: a/b/c: If path b is missing all its subpaths will be added.
Expand Down

0 comments on commit 5d45a87

Please sign in to comment.