AlexsJones
709489eefc
chore: improve the node analyzer reporting false positives
...
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
2025-05-06 16:23:10 +01:00
Alex Jones
e41ffd80d0
feat: add MCP support ( #1471 )
...
* feat: first mcp impl
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: update
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: wip
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: switcheed to stdio transport
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: readme
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat: fix the linter 🤖
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat: fix the linter 🤖
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat(mcp): implement MCP server and handler
- Implement MCP server and handler
- Add MCP server to serve
- Add MCP handler to handle MCP requests
- Add MCP server to serve
- Add MCP handler to handle MCP requests
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat: consolidating code duplication
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat: added http sse support
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: fixed broken tests
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated and fixed linter
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated and fixed linter
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated the linter issues
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
2025-04-29 09:22:44 +01:00
Antoine Deschênes
ebb0373f69
fix: reverse hpa ScalingLimited error condition ( #1366 )
...
* fix: reverse hpa ScalingLimited error condition
Signed-off-by: Antoine Deschênes <antoine.deschenes@linux.com >
* chore: removed break
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Antoine Deschênes <antoine.deschenes@linux.com >
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2025-04-22 11:27:02 +01:00
Alex Jones
a128906136
feat: new analyzers ( #1459 )
...
* chore: rebased
chore: removed trivy
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: updated deps
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* fix: missing error
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* fix: missing error
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* feat: switching old sonnet to message API
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* feat: added three new analyzers
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(main): release 0.4.2 (#1400 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* docs: remove extra dollar sign in README.md (#1410 )
Signed-off-by: Qian_Xiao <heyheyco@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* test: add tests for `k8sgpt/pkg/analyzer/events.go` (#913 )
* test: add tests for events_test.go
Signed-off-by: Eshaan Aggarwal <96648934+EshaanAgg@users.noreply.github.com >
* feat: fixed event tests
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Eshaan Aggarwal <96648934+EshaanAgg@users.noreply.github.com >
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* docs: add table of contents and cleanup (#1413 )
Signed-off-by: hadi2f244 <m.h.azaddel@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: linter (#1414 )
* chore: changing linter
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: changing linter
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: changing linter
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(deps): pin golangci/golangci-lint-action action to 1481404 (#1415 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(deps): update goreleaser/goreleaser-action digest to 9c156ee (#1411 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* fix: prometheus UTF8Validation (#1404 )
Signed-off-by: Kay Yan <kay.yan@daocloud.io >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* fix(deps): update module gopkg.in/yaml.v2 to v3 (#1363 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: added new AmazonBedrock model (#1390 )
* Update AI Bedrock region - Added mumbai region
Signed-off-by: Sakshi Singh <66963254+sakshirajput02@users.noreply.github.com >
* Update amazonbedrock.go
Signed-off-by: Sakshi Singh <66963254+sakshirajput02@users.noreply.github.com >
* Added new AI model to work for ap-south-1 region[that does not uses inference profile]
Signed-off-by: Sakshi Singh <66963254+sakshirajput02@users.noreply.github.com >
---------
Signed-off-by: Sakshi Singh <66963254+sakshirajput02@users.noreply.github.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(main): release 0.4.3 (#1412 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(deps): update module github.com/docker/docker to v28 (#1376 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: updating deps (#1422 )
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(deps): update docker/setup-buildx-action digest to b5ca514 (#1371 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(main): release 0.4.4 (#1421 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: fix workflows (#1423 )
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(main): release 0.4.5 (#1424 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: fixing docker build push action (#1426 )
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: updated actor for login (#1430 )
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(deps): pin docker/build-push-action action to 471d1dc (#1428 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(main): release 0.4.6 (#1427 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: fixing build (#1431 )
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(deps): update actions/upload-artifact digest to ea165f8 (#1425 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(main): release 0.4.7 (#1432 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: removed krew release (#1434 )
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(main): release 0.4.8 (#1435 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: fixing (#1437 )
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(deps): pin dependencies (#1440 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(main): release 0.4.9 (#1439 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* fix: pod analyzer catches errors when containers are in Terminated state (#1438 )
Signed-off-by: Guoxun Wei <guwe@microsoft.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* feat: add a naive support of bedrock inference profile (#1446 )
* feat: add a naive support of bedrock inference profile
Signed-off-by: Tony Chen <tony_chen@discovery.com >
* feat: improving the tests
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Tony Chen <tony_chen@discovery.com >
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* fix(deps): update module gopkg.in/yaml.v2 to v3 (#1417 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* fix(deps): update module helm.sh/helm/v3 to v3.17.3 [security] (#1448 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(main): release 0.4.10 (#1441 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* feat: call bedrock with inference profile (#1449 )
* call bedrock with inference profile
Signed-off-by: Tony Chen <tony_chen@discovery.com >
* add validation and test
Signed-off-by: Tony Chen <tony_chen@discovery.com >
* update test
Signed-off-by: Tony Chen <tony_chen@discovery.com >
---------
Signed-off-by: Tony Chen <tony_chen@discovery.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* fix(deps): update module gopkg.in/yaml.v2 to v3 (#1447 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* docs: fix the slack invite link (#1450 )
Signed-off-by: Pengfei Ni <feiskyer@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* feat: add verbose flag to enable detailed output (#1420 )
* feat: add verbose flag to enable detailed output
Signed-off-by: Yicheng <36285652+zyc140345@users.noreply.github.com >
* test: add verbose output tests for analysis.go and root.go
Signed-off-by: Yicheng <36285652+zyc140345@users.noreply.github.com >
---------
Signed-off-by: Yicheng <36285652+zyc140345@users.noreply.github.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* fix(deps): update module gopkg.in/yaml.v2 to v3 (#1453 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* feat: improved test coverage (#1455 )
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* fix: config ai provider in query (#1457 )
Signed-off-by: Guoxun Wei <guwe@microsoft.com >
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore(main): release 0.4.11 (#1451 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: fixed test
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: fixed test
---------
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
Signed-off-by: Qian_Xiao <heyheyco@gmail.com >
Signed-off-by: Eshaan Aggarwal <96648934+EshaanAgg@users.noreply.github.com >
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: hadi2f244 <m.h.azaddel@gmail.com >
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Kay Yan <kay.yan@daocloud.io >
Signed-off-by: Sakshi Singh <66963254+sakshirajput02@users.noreply.github.com >
Signed-off-by: Guoxun Wei <guwe@microsoft.com >
Signed-off-by: Tony Chen <tony_chen@discovery.com >
Signed-off-by: Pengfei Ni <feiskyer@gmail.com >
Signed-off-by: Yicheng <36285652+zyc140345@users.noreply.github.com >
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Qian_Xiao <heyheyco@gmail.com >
Co-authored-by: Eshaan Aggarwal <96648934+EshaanAgg@users.noreply.github.com >
Co-authored-by: Hadi Azaddel <m.h.azaddel@gmail.com >
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kay Yan <kay.yan@daocloud.io >
Co-authored-by: Sakshi Singh <66963254+sakshirajput02@users.noreply.github.com >
Co-authored-by: gossion <guwe@microsoft.com >
Co-authored-by: ju187 <tony_chen@discovery.com >
Co-authored-by: Pengfei Ni <feiskyer@users.noreply.github.com >
Co-authored-by: Yicheng <36285652+zyc140345@users.noreply.github.com >
2025-04-15 13:43:38 +01:00
Alex Jones
80904e3063
feat: improved test coverage ( #1455 )
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
2025-04-14 14:15:26 +01:00
gossion
dceda9a6a1
fix: pod analyzer catches errors when containers are in Terminated state ( #1438 )
...
Signed-off-by: Guoxun Wei <guwe@microsoft.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2025-04-08 10:49:53 +01:00
Eshaan Aggarwal
06d201ca5d
test: add tests for k8sgpt/pkg/analyzer/events.go ( #913 )
...
* test: add tests for events_test.go
Signed-off-by: Eshaan Aggarwal <96648934+EshaanAgg@users.noreply.github.com >
* feat: fixed event tests
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Eshaan Aggarwal <96648934+EshaanAgg@users.noreply.github.com >
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2025-03-31 14:33:02 +01:00
Alex Jones
da266b3c82
feat: dump ( #1322 )
...
* feat: reverting the cncf runners
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* feat: creating a dump file for debugging
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: ran the linter
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: updated
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: updated
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: improved the function readme
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* feat: added k8sgpt version info
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* feat: added k8sgpt version info
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
* chore: added additional command
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
---------
Signed-off-by: AlexsJones <alexsimonjones@gmail.com >
2024-11-12 12:04:01 +00:00
Naveen Thangaraj
d8fad956f4
feat: error from events for STS analyzer ( #1256 )
...
* error from events for sts analyzer
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com >
* Signedoff this commit
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com >
---------
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com >
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com >
2024-10-03 18:33:50 +01:00
Aris Boutselis
e02c0ddd2d
fix: typo ( #1244 )
...
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2024-09-17 08:39:39 +01:00
Xuetao Song
a4e44d59e3
feat: add event failure handling in service analyzer ( #1132 )
...
Signed-off-by: magicsong <songxuetao@bytedance.com >
Co-authored-by: magicsong <songxuetao@bytedance.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2024-08-13 06:36:15 +01:00
Naveen Thangaraj
a068310731
feat: getting the error from status field for HPA analyzer ( #1164 )
...
* getting the error from status field for hpa analyzer
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com >
* Signed-off
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com >
* Updated the hpaAnalyzer_test.go
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com >
* Updated hpa_test.go
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com >
* Updated the hpa
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com >
* Updated the Conflicts
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com >
* Resolved all the conflicts
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com >
* Updated the test case
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com >
---------
Signed-off-by: naveenthangaraj03 <tnaveen3402@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
Co-authored-by: Matthis <matthish29@gmail.com >
2024-07-22 09:25:38 +02:00
JuHyung Son
eb3b81f176
feat: add label selector ( #1201 )
...
* feat: fix the custom-analysis printing (#1195 )
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
* feat: add label selector
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
* feat: add label selector on analyzers
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
* chore(deps): pin goreleaser/goreleaser-action action to 286f3b1 (#1171 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
* fix(deps): update module buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc/go to v1.4.0-20240715142657-3785f0a44aae.2 (#1196 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
* chore(deps): update actions/upload-artifact digest to 0b2256b (#1175 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
* chore: update proto pkg version
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
* chore: fix typo
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
* feat: add label string to LabelSelector util func
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
* feat: add test using 2 label selector
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: JuHyung Son <sonju0427@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-18 14:31:41 +01:00
Kay Yan
4366ad97b8
feat: skip k3s node type EtcdIsVoter ( #1167 )
...
Signed-off-by: Kay Yan <kay.yan@daocloud.io >
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com >
2024-07-12 16:17:45 +01:00
Alex Jones
728555c0ef
fix: advisory k8sgpt ghsa 85rg 8m6h 825p ( #1139 )
...
* chore: updated helmclient and helmv3
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: fixing tests
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
2024-06-13 09:30:09 +01:00
Vaibhav Malik
2c7c74472c
test: added tests for the log analyzer ( #1010 )
...
* Added new tests for `LogAnalyzer` defined in the `pkg/analyzer`
package. Increased the code coverage of the `log.go` file to >90%
Partially addresses: https://github.com/k8sgpt-ai/k8sgpt/issues/889
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2024-05-09 07:18:22 +01:00
Peter Pan
b2ab94375e
fix: invalid ParentObj in output ( #1068 )
...
* Fix invalid ParentObj in output
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io >
* fix UT as well for ParentObj changes
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io >
* remove meta.Name in false output
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io >
* fix UT as well
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io >
---------
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io >
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com >
2024-04-26 07:26:06 +01:00
DragonAlex98
9a73d1923f
feat: add keda integration ( #1058 )
...
* refactor: move FetchLatestEvent inside util package
Signed-off-by: DragonAlex98 <a.antinori@reply.it >
* feat: add Keda integration and ScaledObject analyzer
Signed-off-by: DragonAlex98 <a.antinori@reply.it >
---------
Signed-off-by: DragonAlex98 <a.antinori@reply.it >
2024-04-25 11:41:01 +01:00
Vaibhav Malik
9dfcce842e
test: added missing tests for the Pod analyzer ( #1021 )
...
- Fixed a small bug where failures were being appended multiple times
for CrashLoopBackOff and ContainerCreating container status reasons.
- Added missing test cases to ensure proper testing of the Pod analyzer.
The addition of these missing test cases has increased the code
coverage of this analyzer to 98%.
- Added checks for init containers in a pod.
Partially addresses: https://github.com/k8sgpt-ai/k8sgpt/issues/889
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2024-04-13 21:08:33 +01:00
Vaibhav Malik
3c1c055ac7
test: added missing tests for the CronJob analyzer ( #1019 )
...
* test: added missing tests for the CronJob analyzer
- Fixed a small bug where pre-analysis was incorrectly appended to the
results every time at the end of the for loop. This caused the result
for a single cronjob failure to be appended multiple times in the
final results.
- Added missing test cases to ensure proper testing of the CronJob
analyzer. The addition of these missing test cases has increased the
code coverage of this analyzer to over 96%.
Partially Addresses: https://github.com/k8sgpt-ai/k8sgpt/issues/889
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
* test: removed failure strings matching from tests
It is possible that the error or failure strings might change in the
future, causing the tests to fail. This commit addresses that issue by
removing the matching of failure text from various analyzer tests.
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
---------
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2024-03-21 18:13:32 +00:00
Vaibhav Malik
ebfbba98ca
test: added missing test case for events.go ( #1017 )
...
With the addition of the latest changes, the missing test case when an
event happens after the currently set latest event has been covered.
Partially Addresses: https://github.com/k8sgpt-ai/k8sgpt/issues/889
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2024-03-21 11:42:12 +00:00
Vaibhav Malik
47463d4412
test: added missing tests for the Ingress analyzer ( #1020 )
...
- Added missing test cases to ensure proper testing of the Ingress
analyzer. The addition of these missing test cases has increased the
code coverage of this analyzer to over 97%.
Partially Addresses: https://github.com/k8sgpt-ai/k8sgpt/issues/889
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2024-03-21 11:02:19 +00:00
Vaibhav Malik
a1d0d0a180
test: added tests for the Node analyzer ( #1014 )
...
* Added new tests for the `Node` analyzer defined in the `pkg/analyzer`
package.
* The addition of these new tests has increased the code coverage of the
node.go file to over 96%.
Partially addresses: https://github.com/k8sgpt-ai/k8sgpt/issues/889
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2024-03-20 09:32:23 +00:00
Vaibhav Malik
f60467cd4d
test: added missing tests for the Netpool analyzer ( #1016 )
...
- Added a network policy allowing traffic to all pods. Resulting in
additional failures in the results.
Partially addresses: https://github.com/k8sgpt-ai/k8sgpt/issues/889
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2024-03-15 18:45:36 +00:00
Vaibhav Malik
531f0bc46d
test: added tests for the Service analyzer ( #1011 )
...
* Added new tests for the `Service` analyzer defined in the
`pkg/analyzer` package.
* The addition of these new tests has increased the code coverage of the
service.go file to over 97%.
* Additionally addressed some flaky tests related to the `ReplicaSet`and
`PersisentVolumeClaim` analyzers.
Partially addresses: https://github.com/k8sgpt-ai/k8sgpt/issues/889
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com >
2024-03-14 09:42:16 +00:00
Vaibhav Malik
3475e2de0c
test: fixed various flaky tests ( #1009 )
...
- Removed test cases which required access to `/root` from the
`pkg/util` package.
- Fixed flaky `PodDisruptionBudget` test.
- Fixed a typo in `PersistentVolumeClaim` test.
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2024-03-12 07:25:03 +00:00
Vaibhav Malik
a0225d4f70
test: added tests for the PVC analyzer ( #1000 )
...
This commit introduces comprehensive tests for the
`PersistentVolumeClaim` analyzer defined in the `pkg/analyzer` package.
Adding these tests increases the code coverage of the `pvc.go` file to
>95%.
I also made minor modifications to the ReplicaSet test to ensure all
expectations were met.
Partially addresses: https://github.com/k8sgpt-ai/k8sgpt/issues/889
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2024-03-08 19:26:19 +00:00
Vaibhav Malik
1340ead860
test: added tests for the PDB analyzer ( #1001 )
...
This commit introduces comprehensive tests for the `PodDisruptionBudget`
analyzer defined in the `pkg/analyzer` package.
Adding these tests increases the code coverage of the `pdb.go` file to
>96%.
Additionally, a potential crash in case of empty or nil PDB status
conditions has been addressed.
Partially addresses: https://github.com/k8sgpt-ai/k8sgpt/issues/889
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2024-03-08 11:09:14 +00:00
Vaibhav Malik
5199dadb2a
test: added tests for mutating webhook analyzer ( #995 )
...
This commit introduces comprehensive tests for the mutating webhook
analyzer defined in the `pkg/analyzer` package.
Adding these tests increases the code coverage of the
`mutating_webhook.go` file to almost 95%.
Partially addresses: https://github.com/k8sgpt-ai/k8sgpt/issues/889
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2024-03-08 08:18:20 +00:00
Vaibhav Malik
f5c3f18d87
test: added tests for the ReplicaSet analyzer ( #997 )
...
This commit introduces comprehensive tests for the ReplicaSet analyzer
defined in the `pkg/analyzer` package.
Adding these tests increases the code coverage of the `rs.go` file to
>95%.
Partially addresses: https://github.com/k8sgpt-ai/k8sgpt/issues/889
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2024-03-05 19:39:31 +00:00
Vaibhav Malik
16a4aaab81
test: added tests for validating webhook analyzer ( #996 )
...
This commit introduces comprehensive tests for the validating webhook
analyzer defined in the `pkg/analyzer` package.
Adding these tests increases the code coverage of the
`validating_webhook.go` file to almost 95%.
Partially addresses: https://github.com/k8sgpt-ai/k8sgpt/issues/889
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2024-03-05 13:36:55 +00:00
lili-wan
98286a965e
fix: log analyzer failed with multiple containers in the pod ( #920 )
...
* Log analyzer failed with multiple containers in the pod #884
Signed-off-by: lwan3 <lili_wan@intuit.com >
* Merge conflicts from main
Signed-off-by: lwan3 <lili_wan@intuit.com >
---------
Signed-off-by: lwan3 <lili_wan@intuit.com >
Co-authored-by: lwan3 <lili_wan@intuit.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2024-02-21 12:33:44 +00:00
Amit Amrutiya
3f0964ad38
fix: unused variable failure warning in webhooks file ( #916 )
...
Signed-off-by: amitamrutiya2210 <amitamrutiya2210@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2024-02-13 20:28:11 +00:00
Amit Amrutiya
3415031006
fix: lint errors ( #923 )
...
Signed-off-by: amitamrutiya2210 <amitamrutiya2210@gmail.com >
2024-02-07 11:30:45 +00:00
lili-wan
78126b2328
feat: added FailedMount event reason to get the failure ( #883 )
...
Signed-off-by: lwan3 <lili_wan@intuit.com >
Co-authored-by: lwan3 <lili_wan@intuit.com >
2024-02-01 18:57:20 +00:00
souleb
cdbeb146a2
fix: typo in httproute files name ( #877 )
...
Signed-off-by: Soule BA <bah.soule@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2024-01-23 07:51:57 +00:00
Alex Jones
2effbb345a
chore: linting improvements and catching false positives ( #882 )
...
* chore: linting improvements and catching false positives
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: linting improvements and catching false positives
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: linting improvements and catching false positives
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: increase linter time out
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
2024-01-23 07:46:01 +00:00
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