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
Alex Jones
fe81d16f75
feat: codecov ( #1023 )
...
* chore: missing schedule on auto merge
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat: adding codecoverage back in
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
2024-03-20 11:07:33 +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
20892b48d0
test: removed useless tests from pkg/kubernetes ( #1015 )
...
- This commit removes unnecessary tests defined in the pkg/kubernetes
package.
- The removed tests were found to be flaky and were causing a
significant increase in CI time without adding much value to
the codebase.
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2024-03-14 21:51:15 +00:00
github-actions[bot]
ea7f0a5b4e
chore(main): release 0.3.28 ( #964 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v0.3.28
2024-03-14 10:15:49 +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
28e19a9d4e
test: added tests for the pkg/kubernetes package ( #896 )
...
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2024-03-12 21:34:12 +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
Aris Boutselis
adf4f17085
chore: attempt to group renovate deps ( #1007 )
2024-03-11 17:48:18 +00:00
Mario
55ac0b2129
feat: add Google Vertex AI as provider to utilize gemini via GCP ( #984 )
...
* feat: add Google Vertex AI as provider to utilize gemini via GCP
Signed-off-by: Mario Fahlandt <mfahlandt@pixel-haufen.de >
* fix: adjust providerId description
Signed-off-by: Mario Fahlandt <mfahlandt@pixel-haufen.de >
---------
Signed-off-by: Mario Fahlandt <mfahlandt@pixel-haufen.de >
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com >
2024-03-11 07:33:29 +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
renovate[bot]
b05b6a38ed
chore(deps): update anchore/sbom-action action to v0.15.9 ( #1004 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-08 11:21:34 +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
renovate[bot]
b58b7191af
chore(deps): update docker/build-push-action digest to af5a7ed ( #1003 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-08 11:08:46 +00:00
renovate[bot]
1491e67567
fix(deps): update module github.com/stretchr/testify to v1.9.0 ( #999 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2024-03-08 09:37:23 +00:00
renovate[bot]
4ec143ab77
chore(deps): update reviewdog/action-golangci-lint digest to 00311c2 ( #1002 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-08 09:36:58 +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
renovate[bot]
425f33bb2d
fix(deps): update module github.com/aws/aws-sdk-go to v1.50.34 ( #974 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-08 08:12:15 +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
renovate[bot]
d2754d320f
fix(deps): update module github.com/sashabaranov/go-openai to v1.20.2 ( #991 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-05 14:04:04 +00:00
renovate[bot]
85f18dde1f
fix(deps): update module github.com/azure/azure-sdk-for-go/sdk/storage/azblob to v1.3.1 ( #992 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-05 13:57:29 +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
renovate[bot]
4065faef13
fix(deps): update module github.com/prometheus/client_golang to v1.19.0 ( #989 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 16:52:50 +00:00
renovate[bot]
f24bcd88b6
chore(deps): update docker/setup-buildx-action digest to 0d103c3 ( #988 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 16:40:38 +00:00
Tanuj Dwivedi
307710eddc
feat: add proxysettings for azureopenai and openai ( #987 )
...
Signed-off-by: tanujd11 <dwiveditanuj41@gmail.com >
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2024-02-28 16:10:42 +00:00
Vaibhav Malik
aab8d77feb
fix: analyze command default backend bug ( #966 )
...
Now, the default value of the `backend` flag for the analyze command
will be an empty string. And the `NewAnalysis` function has been
modified to use the default backend set by the user if the backend flag
is not provided and the `defaultprovider` is set in the config file.
Otherwise, backend will be set to "openai".
Fixes: https://github.com/k8sgpt-ai/k8sgpt/issues/902
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
Co-authored-by: JuHyung Son <sonju0427@gmail.com >
2024-02-28 16:09:30 +00:00
renovate[bot]
334a86aaf4
fix(deps): update module gopkg.in/yaml.v2 to v3 ( #980 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-27 19:50:30 +00:00
renovate[bot]
88a7907db4
fix(deps): update module github.com/sashabaranov/go-openai to v1.20.1 ( #986 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-27 19:39:10 +00:00
renovate[bot]
af3732ad06
fix(deps): update module github.com/schollz/progressbar/v3 to v3.14.2 ( #983 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 18:47:52 +00:00
Alex Jones
a81377f72d
feat: aws integration ( #967 )
...
* chore: updated deps
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: adding aws types
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: first cut
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: first pass at aws integration with EKS
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: fixed linting
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated wording based on PR
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: improved the kubeconfig
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
2024-02-26 10:16:32 +00:00
renovate[bot]
6103c96c41
fix(deps): update module google.golang.org/api to v0.167.0 ( #973 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-25 17:34:36 +00:00
renovate[bot]
35f5185914
fix(deps): update module gopkg.in/yaml.v2 to v3 ( #979 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-23 11:00:30 +00:00
renovate[bot]
97446aae07
fix(deps): update module google.golang.org/grpc to v1.62.0 ( #975 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-23 08:28:25 +00:00
renovate[bot]
e07822c10b
fix(deps): update module github.com/sashabaranov/go-openai to v1.20.0 ( #977 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-23 08:05:22 +00:00
renovate[bot]
f929e7feea
fix(deps): update module gopkg.in/yaml.v2 to v3 ( #957 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-22 17:48:25 +00:00
Vaibhav Malik
6e640e6921
test: added unit tests for the pkg/util package ( #894 )
...
This commit adds new unit tests for the `pkg/util` package bumping the
code coverage to 84%
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2024-02-22 16:21:33 +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
renovate[bot]
6ac815c10f
fix(deps): update module github.com/aws/aws-sdk-go to v1.50.22 ( #971 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-21 12:27:49 +00:00
renovate[bot]
8f00218090
fix(deps): update module go.uber.org/zap to v1.27.0 ( #972 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-21 08:51:54 +00:00
renovate[bot]
00c91f05a6
fix(deps): update module github.com/aws/aws-sdk-go to v1.50.21 ( #970 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-20 20:48:13 +00:00
renovate[bot]
6207c70c51
fix(deps): update module cloud.google.com/go/storage to v1.38.0 ( #950 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 21:14:38 +00:00
renovate[bot]
8b0b61e596
fix(deps): update module github.com/sashabaranov/go-openai to v1.19.4 ( #963 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 11:45:37 +00:00
renovate[bot]
248260e081
fix(deps): update module github.com/google/generative-ai-go to v0.8.0 ( #965 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 08:10:12 +00:00
Vaibhav Malik
f55f8370eb
fix: shorthand for the http flag in serve command ( #969 )
...
Removed the shorthand for the `http` flag in the serve command because
it was contradicting with the shorthand of the `help` command which is
automatically added on execution if the `help` flag is not already
defined.
Fixes: https://github.com/k8sgpt-ai/k8sgpt/issues/968
Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com >
2024-02-19 07:48:16 +00:00
Johannes Kleinlercher
a3cd7e6385
fix: set result name and namespace to trivy vulnreport and configaudi… ( #869 )
...
* fix: set result name and namespace to trivy vulnreport and configauditreport
Signed-off-by: Johannes Kleinlercher <johannes.kleinlercher@suxess-it.com >
* fix: increase linter timeout
Signed-off-by: Johannes Kleinlercher <johannes@kleinlercher.at >
---------
Signed-off-by: Johannes Kleinlercher <johannes.kleinlercher@suxess-it.com >
Signed-off-by: Johannes Kleinlercher <johannes@kleinlercher.at >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2024-02-18 15:47:19 +00:00
Sahil Badla
f2138c7101
feat: enable Rest api using grpc-gateway ( #834 )
...
* grpc-gateway changes
Signed-off-by: Sahil Badla <sahil_badla@intuit.com >
* feat: grpc-gateway impl
Signed-off-by: Sahil Badla <sahil_badla@intuit.com >
* feat: enable REST/http api support
Signed-off-by: Sahil Badla <sahil_badla@intuit.com >
* feat: enable rest/http support
Signed-off-by: Sahil Badla <sahil_badla@intuit.com >
* feat: enable rest/http support
Signed-off-by: Sahil Badla <sahil_badla@intuit.com >
* feat: enable rest/http support
Signed-off-by: Sahil Badla <sahil_badla@intuit.com >
* chore: resolved mod
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat: fix grpc-gateway codegen path
Signed-off-by: Sahil Badla <sahil_badla@intuit.com >
* feat: merge from master
Signed-off-by: Sahil Badla <sahil_badla@intuit.com >
* feat: flag to enable rest api
Signed-off-by: Sahil Badla <sahil_badla@intuit.com >
---------
Signed-off-by: Sahil Badla <sahil_badla@intuit.com >
Signed-off-by: Sahil Badla <146279034+sbadla1@users.noreply.github.com >
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Co-authored-by: Sahil Badla <sahil_badla@intuit.com >
Co-authored-by: Thomas Schuetz <38893055+thschue@users.noreply.github.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2024-02-17 15:38:15 +00:00
renovate[bot]
3f0356be66
fix(deps): update module github.com/aws/aws-sdk-go to v1.50.20 ( #930 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-17 08:43:26 +00:00
renovate[bot]
cc99bd51f0
fix(deps): update module google.golang.org/api to v0.165.0 ( #959 )
...
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-16 14:07:23 +00:00