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

fix: show trivy as active when activated with --no-install flag #675

Merged
merged 3 commits into from
Nov 13, 2023

Conversation

jkleinlercher
Copy link
Contributor

Closes #670

πŸ“‘ Description

when trivy integration is activated with "--no-install" flag, the helm release "trivy-operator-k8sgpt" is not deployed. therefore the check if helm release "trivy-operator-k8sgpt" is deployed is not a valid marker for every use case.

instead of checking for the installed helm release we can check if the api group "aquasecurity.github.io" is available on the K8s cluster and additionally check if at least one trivy filter is in the list of active filters. if we just check for the aquasec api group there is no chance to deactivate the integration again, so we also check for the active filters.

βœ… Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

β„Ή Additional Information

Signed-off-by: Johannes Kleinlercher <johannes@kleinlercher.at>
thschue and others added 2 commits November 12, 2023 21:26
Signed-off-by: Thomas Schuetz <38893055+thschue@users.noreply.github.com>
@AlexsJones AlexsJones merged commit 7368271 into k8sgpt-ai:main Nov 13, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug]: trivy integration not active with β€”-no-install
3 participants