Akhil Rane
03b63befa2
fix: lowercase logs before running regex matching in LogAnalyzer ( #794 )
...
Signed-off-by: Akhil Rane <akhil131192@gmail.com>
2023-12-21 16:59:13 +00:00
Akhil Rane
ff4aaf7c32
feat: add last termination state when pod is in CrashloopBackoff ( #792 )
...
Signed-off-by: Akhil Rane <akhil131192@gmail.com>
Co-authored-by: Akhil Rane <akhil_rane@intuit.com>
2023-12-20 12:57:17 +00:00
Aris Boutselis
ec08cac214
feat: add Gateway analysers ( #764 )
...
* feat: add GatewayClass analyser
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
* chore: add a valid GW class object
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
* feat: add gw analyzer and switch to controller-runtime client
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
* chore: add unit tests for gw analyser
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
* chore: replace constants with condition status
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
* feat: add httproute analyzer
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
* feat: add HTTPRoute individual tests.
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
* docs: add analyzers
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
---------
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
Signed-off-by: Aris Boutselis <aris.boutselis@senseon.io>
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com>
2023-11-24 10:09:54 +00:00
Jesang Myung
5b27c3e352
fix: cover more error reason messages ( #759 )
...
* fix: cover more error reasons (#758 )
Signed-off-by: Jesang Myung <jesang.myung@gmail.com>
* fix: refactoring for simplify conditions
Signed-off-by: Jesang Myung <jesang.myung@gmail.com>
---------
Signed-off-by: Jesang Myung <jesang.myung@gmail.com>
2023-11-20 13:01:04 +00:00
Alex Jones
d365886753
feat: log analyzer ( #744 )
...
* feat: wip log analyzer
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* chore: turns off log by default
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* chore: turns off log by default
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Co-authored-by: Thomas Schuetz <38893055+thschue@users.noreply.github.com>
2023-11-12 16:00:43 -05:00
Tsadok Levi Firseck
1a554ae840
Update pod.go - added handling of CreateContainerConfigError ( #639 )
...
Added handling of CreateContainerConfigError error
Signed-off-by: Tsadok Levi Firseck <tsadoklf@gmail.com>
Co-authored-by: Aris Boutselis <aris.boutselis@senseon.io>
Co-authored-by: Thomas Schuetz <38893055+thschue@users.noreply.github.com>
2023-11-12 21:24:41 +01:00
Ali
37721b5dd7
fix: ensure ingress HTTP rule exists to prevent panic ( #726 )
...
Signed-off-by: Ali Harris <aliharriss1995@gmail.com>
Co-authored-by: Aris Boutselis <aris.boutselis@senseon.io>
2023-11-03 14:02:51 +00:00
Alex Jones
3277b2ad4b
fix: pdb panic error guard ( #664 )
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Co-authored-by: Aris Boutselis <aris.boutselis@senseon.io>
2023-09-17 12:12:28 +01:00
Aris Boutselis
6c5a0628e4
fix: defer to service analyser when selectors are missing ( #652 )
...
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com>
Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
2023-09-14 16:57:27 +01:00
guangwu
c24825b810
chore: slice loop replace ( #627 )
...
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-09-04 20:19:48 +01:00
Alex Jones
5e17e66665
chore: updated protobuf libs ( #614 )
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-08-27 16:52:56 +01:00
Alex Jones
44d3613c1f
feat: configauditreport ( #609 )
...
* feat: adding config audit report
Signed-off-by: Alex Jones <alex@alexs-mbp.tailddc26.ts.net>
* feat: adding config audit report
Signed-off-by: Alex Jones <alex@alexs-mbp.tailddc26.ts.net>
* feat: adding config audit report analyzer mechnics
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alex@alexs-mbp.tailddc26.ts.net>
* feat: adding config audit report analyzer mechnics
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: Alex Jones <alex@alexs-mbp.tailddc26.ts.net>
* chore: updated naming
Signed-off-by: Alex Jones <alex@alexs-mbp.tailddc26.ts.net>
* chore: updated naming
Signed-off-by: Alex Jones <alex@alexs-mbp.tailddc26.ts.net>
* chore: updated var names
Signed-off-by: Alex Jones <alex@alexs-mbp.tailddc26.ts.net>
---------
Signed-off-by: Alex Jones <alex@alexs-mbp.tailddc26.ts.net>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Co-authored-by: Alex Jones <alex@alexs-mbp.tailddc26.ts.net>
2023-08-25 17:37:53 +01:00
Clever Hu
cc665ea4f3
fix: optimize analyze service ( #461 )
...
Signed-off-by: cleverhu <shouping.hu@daocloud.io>
Signed-off-by: cleverhu <zhubai.hsp@xuelanyun.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Co-authored-by: cleverhu <shouping.hu@daocloud.io>
Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
2023-08-19 20:52:46 +01:00
Aris Boutselis
153d38deb0
chore: continue on absent service ( #569 )
...
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com>
2023-07-20 13:49:06 +01:00
Alex Jones
c42221512b
chore: fixing edge cases with missing wh service ( #561 )
...
* chore: fixing edge cases with missing wh service
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* chore: fixing edge cases with missing wh service
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* Update validating_webhook.go
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Co-authored-by: Aris Boutselis <aris.boutselis@senseon.io>
2023-07-19 16:28:45 +01:00
Alex Jones
06e8532f88
feat: admission webhooks ( #553 )
...
* feat: add Validating/Mutating webhook analyzer
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
* change conditions
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
* fix: use GetClient to get pods and mask pod name
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
* fix: add new cases in util.GetParent
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
* feat: implements webhooks
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* feat: implements webhooks
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* feat: implements webhooks
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* feat: implements webhooks
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
---------
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Co-authored-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Co-authored-by: Aris Boutselis <aris.boutselis@senseon.io>
2023-07-14 10:44:15 +01:00
Alex Jones
731e1520ec
Revert "feat: add Validating/Mutating webhook analyzer ( #548 )" ( #551 )
...
This reverts commit 750a10d44c
.
2023-07-13 08:54:22 +01:00
Rakshit Gondwal
750a10d44c
feat: add Validating/Mutating webhook analyzer ( #548 )
...
* feat: add Validating/Mutating webhook analyzer
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
* change conditions
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
* fix: use GetClient to get pods and mask pod name
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
* fix: add new cases in util.GetParent
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
---------
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Co-authored-by: Aris Boutselis <aris.boutselis@senseon.io>
2023-07-12 14:20:18 +01:00
Jian Zhang
075066dd7c
fix: use the status
for pdb checking ( #477 )
...
The PDB event is a historical record, it's not a good choice to judge the pdb latest status based on it.
So, use the `stataus` instead of `event` to check it.
Closes : #476
Signed-off-by: Jian Zhang <jiazha@redhat.com>
2023-06-07 10:51:20 +01:00
golgoth31
f9621af7e4
feat: get official field doc ( #457 )
...
* fix(deps): update module github.com/aws/aws-sdk-go to v1.44.267 (#451 )
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* feat: get official field doc
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* feat: use schema from server
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* feat: add configuration api route (#459 )
* feat: add configuration api route
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
* feat: rename cache methods
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
---------
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* fix(deps): update module github.com/aws/aws-sdk-go to v1.44.269 (#458 )
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* fix: updated list.go to handle k8sgpt cache list crashing issue (#455 )
* Update list.go
Signed-off-by: Krishna Dutt Panchagnula <krishnadutt123@gmail.com>
* fix: updated list.go to handle k8sgpt cache list crashing issue
Signed-off-by: Krishna Dutt Panchagnula <krishnadutt123@gmail.com>
---------
Signed-off-by: Krishna Dutt Panchagnula <krishnadutt123@gmail.com>
Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* chore(main): release 0.3.5 (#452 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* chore(deps): update google-github-actions/release-please-action digest to 51ee8ae (#464 )
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* fix: name of sa reference in deployment (#468 )
Signed-off-by: Johannes Kleinlercher <johannes@kleinlercher.at>
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* fix(deps): update module github.com/aws/aws-sdk-go to v1.44.270 (#465 )
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* fix: typo (#463 )
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Co-authored-by: Thomas Schuetz <38893055+thschue@users.noreply.github.com>
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* fix(deps): update module github.com/aws/aws-sdk-go to v1.44.271 (#469 )
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* fix(deps): update module github.com/aws/aws-sdk-go to v1.44.269 (#458 )
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* fix(deps): update module github.com/aws/aws-sdk-go to v1.44.270 (#465 )
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* fix(deps): update module github.com/aws/aws-sdk-go to v1.44.271 (#469 )
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* feat: Add with-doc flag to enable/disable kubernetes doc
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* use fmt.Sprintf in apireference.go
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
* add --with-doc to readme
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
---------
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
Signed-off-by: Krishna Dutt Panchagnula <krishnadutt123@gmail.com>
Signed-off-by: Johannes Kleinlercher <johannes@kleinlercher.at>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: golgoth31 <golgoth31@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Matthis <99146727+matthisholleville@users.noreply.github.com>
Co-authored-by: Krishna Dutt Panchagnula <krishnadutt123@gmail.com>
Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Johannes Kleinlercher <johannes@kleinlercher.at>
Co-authored-by: Rakshit Gondwal <98955085+rakshitgondwal@users.noreply.github.com>
Co-authored-by: Thomas Schuetz <38893055+thschue@users.noreply.github.com>
2023-05-31 10:36:41 +01:00
Matthis
f0d3f36f6d
fix: use coreAnalyzer if there are no filters selected and no active_filters ( #432 )
...
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
2023-05-17 09:36:47 +01:00
Peter Pan
e66de8c4ce
chore: gofmt fix and enable in CI ( #414 )
...
* gofmt the files
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io>
* add UT and goFMT to PR Gate (Github Action for PR)
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io>
---------
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io>
Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
2023-05-15 06:53:59 +01:00
Peter Pan
ed73485d92
chore: make go-lint happy ( #405 )
...
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io>
2023-05-12 12:24:30 +01:00
Patrick Pichler
947e94f353
fix: use correct result slice for cronjob analyzer
...
Signed-off-by: Patrick Pichler <git@patrickpichler.dev>
2023-04-25 22:31:24 +02:00
Patrick Pichler
8adde6bf87
fix: report failure if network policy doesn't match any pods
...
Before, there was no failure reported by the netpol analyzer, if the
matcher on the policy doesn't match any pods.
Signed-off-by: Patrick Pichler <git@patrickpichler.dev>
2023-04-25 22:31:24 +02:00
Patrick Pichler
2616220935
fix: remove pointer to loop variable when searching the latest event to analyze ( #328 )
...
Having a pointer to a range variable will always yield the latest value
the loop sees. This leads to subtle bugs. To prevent this from
happening, the range variable was assigned to a temp variable, which is
then referenced as a pointer.
Signed-off-by: Patrick Pichler <git@patrickpichler.dev>
Co-authored-by: Patrick Pichler <git@patrickpichler.dev>
2023-04-25 11:06:45 +02:00
Thomas Schuetz
d0f7a1105f
chore: change license to Apache-2 ( #313 )
...
* chore: change license to Apache-2
Signed-off-by: Thomas Schuetz <thomas.schuetz@t-sc.eu>
2023-04-21 19:46:31 +02:00
Peter Pan
3c7e0bba1d
chore: analyze Pod ReadinessProbe faliure
...
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io>
2023-04-20 03:52:47 -04:00
Rakshit Gondwal
71732037fa
feat: improve HPA analyzer to check ScaleTargetRef resources ( #283 )
...
* feat: improve HPA analyzer to check ScaleTargetRef resources
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
* feat: modify tests
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
* feat: improve all ScaleTargetRef to check for resources
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
* test: add test cases for all ScaleTargetRef types
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
* refactor: use interface to avoid dupplication
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
* test: add test case for NoResourceConfiguredForScaleTargetRef
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
---------
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
Co-authored-by: Matthis <99146727+matthisholleville@users.noreply.github.com>
2023-04-18 15:27:06 +02:00
Matthis
3d684a2af7
fix: deployment/cronjob namespace filtering ( #290 )
...
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
2023-04-17 17:37:19 +02:00
Matthis
a3becc9906
feat: add server metrics ( #273 )
...
* feat: expose metrics path & init analyzer errors metrics
This commit add metrics path & the analyzer error metrics in the codebase. The changes have been made across all analyzers and include the addition of a new metric with label values for the analyzer's name, analyzed object's name, and namespace. The metric's value is set to the length of the analyzer objects failures.
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
* feat: add metric to cronjob & deployment & netpol
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
* feat: expose metric to NodeAnalyzer
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
---------
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
2023-04-15 19:03:37 +02:00
Dominik Augustin
6247a1c0f3
feat: add node analyzer ( #272 )
...
Signed-off-by: Dominik Augustin <dom.augustin@gmx.at>
2023-04-14 15:08:47 +02:00
Alex Jones
ddb51c7af4
chore: removing field
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-04-14 09:14:45 +01:00
Alex Jones
19e1b94e7c
feat: anoymization based on pr feedback
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-04-14 07:40:27 +01:00
Alex Jones
fe529510b6
feat: anoymization based on pr feedback
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-04-14 07:39:05 +01:00
Alex Jones
f9b25d9e85
chore: fixing up tests
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-04-13 21:48:33 +01:00
Alex Jones
498d454c17
chore: fixing up tests
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-04-13 21:44:33 +01:00
Alex Jones
23071fd2e6
chore: additional analyzers
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-04-13 21:25:41 +01:00
Matthis Holleville
c0afc0f5c9
feat: refactor integration to use Failure object
...
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
2023-04-12 11:40:51 +02:00
Alex Jones
ced0de6448
Merge branch 'main' into feat/integrate
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-04-11 19:24:30 +01:00
Alex Jones
4d20f70fb4
chore: fixing filters
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-04-11 19:22:12 +01:00
Alex Jones
3682f5c7eb
feat: integration ready for first review
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-04-11 19:22:12 +01:00
Alex Jones
c809af3f47
chore: Fixing broken tests
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-04-11 19:22:12 +01:00
Alex Jones
4984840de1
wip
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-04-11 19:22:06 +01:00
Alex Jones
80ac51c804
chore: compiling successfully
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-04-11 19:22:06 +01:00
Matthis Holleville
11326c1c5f
feat: improve documentation & update hpa message
...
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
2023-04-11 13:28:05 +02:00
Matthis Holleville
705d2a0dce
fix: pdb test
...
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
2023-04-10 23:44:16 +02:00
Matthis Holleville
30e33495e0
Merge branch 'main' into feature/add-anonymize-option
2023-04-10 23:12:30 +02:00
Matthis Holleville
d2a84ea2b5
feat: add anonymization flag
...
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
2023-04-10 23:12:02 +02:00
HOLLEVILLE Matthis
a582d444c5
fix: use hpa namespace instead analyzer namespace ( #230 )
...
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
2023-04-10 07:49:22 +02:00