Skip to content

how to deal with nested assets #1533

Closed Answered by chris-rock
michaelkrieg asked this question in Q&A
Discussion options

You must be logged in to vote

I just tested it with the query pack:

cnquery scan k8s --incognito --discover clusters --querypack-bundle mondoo-kubernetes-incident-response.mql.yaml

and it worked as expected. Be aware that the discover flag needs to be --discover clusters.

For the asset filter you only need the following filter:

filters:
  - asset.platform == "k8s-cluster"

We use both filters in the query packs to be compatible with older versions of cnquery. If you are on the latest version you do not need to have that special handling.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@michaelkrieg
Comment options

Answer selected by michaelkrieg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants