-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Inventory] List k8s entities in the grid #197292
base: main
Are you sure you want to change the base?
[Inventory] List k8s entities in the grid #197292
Conversation
…entory-k8s-entities-2
…entory-k8s-entities-2
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
const sort = `SORT ${entitiesSortField} ${sortDirection}`; | ||
const limit = `LIMIT ${MAX_NUMBER_OF_ENTITIES}`; | ||
|
||
const query = [from, ...where, sort, limit].join(' | '); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this, much easier to read.
const where: string[] = [getBuiltinEntityDefinitionIdESQLWhereClause()]; | ||
|
||
if (entityTypes) { | ||
where.push(getEntityTypesWhereClause(entityTypes)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now the entityTypes
could be any string that the user passes, maybe it's time to use the params. Up to you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried, but it was throwing an error. I was having another look at the types now and apparently I missed something... will try it again. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it only with the node scripts/synthtrace k8s_entities
and it looks good. it would be nice to have a way to test all the entities
I'll create a scenario with all entities we have support up until now. |
💔 Build Failed
Failed CI StepsMetrics [docs]Module Count
Async chunks
History
|
closes #196155
Blocked by #196916 (K8s entities alias patterns don't exist yet.)
Screen.Recording.2024-10-22.at.16.mp4