Skip to content

Commit

Permalink
⭐️ add k8s query pack example (#224)
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hartmann <[email protected]>

Signed-off-by: Christoph Hartmann <[email protected]>
  • Loading branch information
chris-rock authored Oct 9, 2022
1 parent 1858632 commit f5ad821
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions examples/example-k8s.mql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
packs:
- uid: kubernetes-pod-security-info
filters:
- asset.platform == "k8s-pod"
queries:
- title: Gather Pods Security Context
uid: k8s-pods-security-context
query: |
k8s.pod {
initContainers {
securityContext
}
containers {
securityContext
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ packs:
- uid: linux-mixed-queries
context: os.linux
filters:
- asset.family.contains("linux")
- asset.family.contains("unix")

queries:
- title: Find all SSH packages that are installed
Expand Down

0 comments on commit f5ad821

Please sign in to comment.