Skip to content
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

feat: add default commands for unknown platform #409

Merged
merged 4 commits into from
Nov 1, 2024

Conversation

afdesk
Copy link
Contributor

@afdesk afdesk commented Oct 29, 2024

This PR adds default command for unknown platforms.

the test cases was updated. I couldn't find aks platfrom in Trivy-check kubernetes commands: https://github.com/aquasecurity/trivy-checks/blob/main/commands/kubernetes/.
so I've changed aks to rke2, and using aks as unknown platform.

Related issues

@afdesk afdesk marked this pull request as ready for review October 29, 2024 08:03
@afdesk afdesk requested review from simar7 and nikpivkin October 29, 2024 08:03
@afdesk
Copy link
Contributor Author

afdesk commented Oct 29, 2024

Hi guys @simar7 @nikpivkin
Could you take a look at this PR?
maybe I missed something.
thanks a lot!

Comment on lines +256 to +258
want: &NodeCommands{
Commands: commandsK8s,
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a comment saying why this gives us the k8s commands (because it is unknown). This would help with readability of the tests in the future.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, maybe it's better to just not use aks altogether as it may cause confusion. What if we just use unknown as a platform so it's more obvious that it doesn't exist?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, aks is really bad.
done 3da704c

@afdesk afdesk requested a review from simar7 November 1, 2024 10:01
@simar7 simar7 merged commit 89bffc3 into aquasecurity:main Nov 1, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants