-
Notifications
You must be signed in to change notification settings - Fork 14
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
CI improvements #927
CI improvements #927
Conversation
The "inspect.sh" script currently retrieves logs from the kube-system and default namespaces, which sometimes isn't enough to identify cluster problems. We're adding a "--detailed" setting that will collect logs from all namespaces. This won't be the default since the logs may contain sensitive user information.
We're moving the Trivy and Tics test logic to separate scripts, simplifying the GH workflows and allowing these tests to be invoked locally.
7eeaa34
to
efce8a8
Compare
We moved those tests to separate scripts, however the workflows also run against other branches (main and release/*). We'll be able to clean up the workflows only after backporting those changes to the other branches.
efce8a8
to
01eecbd
Compare
Thanks @petrutlucian94! Adding a flag is OK with me, but is it possible to always collect info. from all namespaces? Does this pollute the inspection report too much for the majority of cases? |
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.
Generally LGTM, +1 on @eaudetcobello comments
@@ -173,6 +180,25 @@ if [ "$EUID" -ne 0 ]; then | |||
exit 1 | |||
fi | |||
|
|||
POSITIONAL_ARGS=() | |||
while [[ $# -gt 0 ]]; do |
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.
Bash is such a beautiful and simple language.
There were concerns about collecting sensitive user data: #892 (comment) |
* use absolute paths * use venv * fix project dir
movedcopied TICS and Trivy tests to separate scriptsmain
,release/*
). We need to backport the scripts there before being able to clean up the workflows.