kubehound
If anyone is familiar with KubeHound DSL. Can someone explain why Query 1 is different from Query 2. They are both returning values that are very close to eachother but not exact:
Query 1
g.V()
.hasLabel('Container')
.out().emit().repeat((
.outE())
.inV()
.simplePath()
).until(
.has("critical", true)
.or()
.loops()
.is(15)
).has("critical", true)
.path()
.count()
.next()
Query 2
kh.containers().criticalPaths(15).count().next()
Context:
* I've pasted how the criticalPaths method works
* g.V() .hasLabel('Container').count() returns the same thing as kh.containers().count()
1 Reply
Solution
I figured it out, I've attached the fixed query 1