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
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
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
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
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
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
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
Alex Jones
c8c9dbfadc
feat: enables remote custom analyzers ( #906 )
...
* feat: enables remote custom analyzers
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: fixed test that was broken
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: hiding custom analysis behind a flag
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: resolved govet issue
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated deps
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated deps
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
2024-02-15 07:28:00 +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
simone ragonesi
d97dea2896
chore: improve codebase and doc quality ( #922 )
...
* chore(prometheus integration): fix mispelling
Signed-off-by: r3drun3 <simone.ragonesi@sighup.io >
* docs(readme): add badges to improve doc quality
Signed-off-by: r3drun3 <simone.ragonesi@sighup.io >
---------
Signed-off-by: r3drun3 <simone.ragonesi@sighup.io >
2024-02-07 09:12:41 +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
JuHyung Son
2fd476e126
feat: add huggingface provider ( #893 )
...
* feat: add huggingface ai provider
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
* chore: update readme
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
* fix: set huggingface maxtokens default to 500, use ptr instead of pointer
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
---------
Signed-off-by: JuHyung-Son <sonju0427@gmail.com >
2024-01-28 15:41:49 +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
Alex Jones
9da75e02bc
feat: interactive mode ( #854 )
...
* chore: wip interactive mode
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: tidied up a bit
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated go mod
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: const prompt
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated based on comments feedback
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated enum
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated enum
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
2024-01-14 20:22:00 +00:00
Daniel Clark
45fa827c04
feat: initial Prometheus analyzers ( #855 )
...
* feat: initial Prometheus analyzers
Added a prometheus integration with two analyzers:
1. PrometheusConfigValidate
2. PrometheusConfigRelabelReport
The integration does not deploy any Prometheus stack in the cluster.
Instead, it searches the provided --namespace for a Prometheus
configuration, stored in a ConfigMap or Secret. If it finds one, it
unmarshals it into memory and runs the analyzers on it.
PrometheusConfigValidate checks if the actual Prometheus configuration is valid or has
any errors.
PrometheusConfigRelabelReport tries to distill the scrape config
relabeling rules to give a concise label set per job that targets need
to have to be scraped. This analyzer is unconventional, in that it does
not necessarily mean there are issues with the config. It merely tries
to give a human-readable explanation of the relabel rules it discovers,
leaning on the LLM and prompt.
Tested on both kube-prometheus and Google Managed Prometheus
stacks.
Signed-off-by: Daniel Clark <danielclark@google.com >
* review: feedback cycle 1
Simplify ConfigValidate prompt and add comments.
Signed-off-by: Daniel Clark <danielclark@google.com >
* review: feedback cycle 2
Add Prometheus configuration discovery to integration activate command.
Also improve logging to make this more clear to users.
Signed-off-by: Daniel Clark <danielclark@google.com >
---------
Signed-off-by: Daniel Clark <danielclark@google.com >
2024-01-12 09:58:09 +00:00
Matthis
5c17c24055
feat: unify aiClientName const for all providers ( #848 )
2024-01-07 13:01:15 +01:00
Bartlomiej Plotka
e7d41496dd
feat: added Google GenAI client; simplified IAI/clients API surface. ( #829 )
...
* refactor: Simplified IAI; made caching and processing consisent.
Signed-off-by: bwplotka <bwplotka@gmail.com >
* feat: Added Google AI API e.g. for Gemini models.
Signed-off-by: bwplotka <bwplotka@gmail.com >
---------
Signed-off-by: bwplotka <bwplotka@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
Co-authored-by: Thomas Schuetz <38893055+thschue@users.noreply.github.com >
2024-01-05 06:53:36 +01:00
Alex Jones
a7e9b486ba
chore: lint fixes ( #833 )
...
* chore: added basic server startup test
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: refactored wg.add move
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
2024-01-04 17:03:32 +00:00
Bartlomiej Plotka
035348d8a0
fix: no explain case, improved readability. ( #825 )
...
Signed-off-by: bwplotka <bwplotka@gmail.com >
2024-01-03 17:59:28 +01:00
Alex Jones
3e7cea7bd3
chore: added basic server startup test ( #817 )
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
2023-12-29 14:15:32 +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
Swastik Gour
928b39a728
fix: added the ability to set the trivy variables by the user ( #797 )
...
Signed-off-by: swastik959 <Sswastik959@gmail.com >
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2023-12-20 15:57:28 +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
Xiangkun Yin
1d196286b7
refactor: replace rest client with controller-runtime clientset for Trivy analyzers ( #776 )
...
* refactor: replace rest client with controller-runtime clientset for Trivy analyzers
Signed-off-by: ptyin <peteryin1604@gmail.com >
* refactor: remove rest client
Signed-off-by: ptyin <peteryin1604@gmail.com >
---------
Signed-off-by: ptyin <peteryin1604@gmail.com >
2023-11-29 15:13:38 +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
Matthis
12146bf356
feat: rework cache package - add gcs cache - add cache purge command ( #750 )
...
* feat: rework cache pkg
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* feat: Completion of cache pkg rework. Added cache purge command.
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* doc: add purgin command note
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* fix: disable cache if noCache is set
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* feat: improve GetCacheConfiguration lisibility & transform add method to addOrUpdate
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* feat: transform server mode to work with new cache configuration
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* fix: use 'switch' instead 'if' to evaluate Cache from grpc
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* feat: add mutually exclusive flags for command options
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* doc: update readme.md
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* feat: return err on bucket creation failed
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* feat: update dependencies
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
---------
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
Signed-off-by: Matthis <matthish29@gmail.com >
2023-11-18 22:08:38 +01:00
Johannes Kleinlercher
73682717ed
fix: show trivy as active when activated with --no-install flag ( #675 )
...
Signed-off-by: Johannes Kleinlercher <johannes@kleinlercher.at >
Signed-off-by: Thomas Schuetz <38893055+thschue@users.noreply.github.com >
Co-authored-by: Thomas Schuetz <38893055+thschue@users.noreply.github.com >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2023-11-13 11:10:13 -05: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
DKuroczko
ccef7f6170
feat: amazonsagemaker AI provider ( #731 )
...
* feat(amazonsagemaker): Add AmazonSageMaker AI provider
Co-authored-by: NAME 18630245+zaremb@users.noreply.github.com
Signed-off-by: Damian Kuroczko <7778327+dkuroczk@users.noreply.github.com >
* feat(amazonsagemaker): Add AmazonSageMaker AI provider
Co-authored-by: Mateusz Zaremba <18630245+zaremb@users.noreply.github.com >
Signed-off-by: Damian Kuroczko <7778327+dkuroczk@users.noreply.github.com >
* feat(auth): add top p and max tokens to auth and use them in sagemaker backend
Signed-off-by: Mateusz Zaremba <18630245+zaremb@users.noreply.github.com >
* feat: Updates SageMaker docs, validate topP, ident
Signed-off-by: Damian Kuroczko <7778327+dkuroczk@users.noreply.github.com >
* feat: list of passwordlessProviders
Signed-off-by: Damian Kuroczko <7778327+dkuroczk@users.noreply.github.com >
* feat: returns err
Signed-off-by: Damian Kuroczko <7778327+dkuroczk@users.noreply.github.com >
* fix: remove log.Fatal(err)
Signed-off-by: Damian Kuroczko <7778327+dkuroczk@users.noreply.github.com >
---------
Signed-off-by: Damian Kuroczko <7778327+dkuroczk@users.noreply.github.com >
Signed-off-by: Mateusz Zaremba <18630245+zaremb@users.noreply.github.com >
Co-authored-by: Mateusz Zaremba <18630245+zaremb@users.noreply.github.com >
2023-11-05 20:03:40 +00: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
StevenSu
f1a7801e9e
feat: add amazonbedrock ( #718 )
...
* add amazonbedrock AI provider
Signed-off-by: Su Wei <suwei007@gmail.com >
* add amazonbedrock, change model list to const var
Signed-off-by: Su Wei <suwei007@gmail.com >
* update iai config and auth cmd, add providerRegion
Signed-off-by: Wei Su <wsuam@amazon.com >
* fix filename wrong
Signed-off-by: Wei Su <wsuam@amazon.com >
* chore: added some doc info
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Su Wei <suwei007@gmail.com >
Signed-off-by: Wei Su <wsuam@amazon.com >
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Co-authored-by: Wei Su <wsuam@amazon.com >
Co-authored-by: Aris Boutselis <aris.boutselis@senseon.io >
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2023-10-28 11:49:09 +01:00
Aris Boutselis
23ac52d5ff
feat: add Azure remote cache ( #690 )
...
* feat: add Azure remote cache
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com >
* feat: add serve mode support and update buf schema
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com >
* fix: map structure name
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com >
* chore: add a new cache type to make code readable
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com >
* docs: update docs to reflect new remote cache type
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com >
* fix(deps): update module github.com/prometheus/client_golang to v1.17.0 (#687 )
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: Aris Boutselis <arisboutselis08@gmail.com >
* fix(deps): update module buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc/go to v1.3.0-20231002095256-194bc640518b.1 (#692 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* fix(deps): update module helm.sh/helm/v3 to v3.13.0 (#688 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* fix: security warning around printing provider details in https://github.com/k8sgpt-ai/k8sgpt/security/code-scanning/1 (#695 )
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com >
* fix(deps): update module buf.build/gen/go/k8sgpt-ai/k8sgpt/protocolbuffers/go to v1.31.0-20231002095256-194bc640518b.1 (#693 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* fix(deps): update module github.com/sashabaranov/go-openai to v1.15.4 (#689 )
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: Aris Boutselis <arisboutselis08@gmail.com >
* fix(deps): update module github.com/aws/aws-sdk-go to v1.45.20 (#685 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): update amannn/action-semantic-pull-request action to v5.3.0 (#683 )
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: Aris Boutselis <arisboutselis08@gmail.com >
* fix(deps): update module github.com/aws/aws-sdk-go to v1.45.21 (#696 )
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.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.45.22 (#697 )
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: Aris Boutselis <arisboutselis08@gmail.com >
* fix(deps): update module github.com/aws/aws-sdk-go to v1.45.23 (#699 )
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: Aris Boutselis <arisboutselis08@gmail.com >
* fix(deps): update module github.com/aws/aws-sdk-go to v1.45.24 (#701 )
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: Aris Boutselis <arisboutselis08@gmail.com >
---------
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com >
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Aris Boutselis <aris.boutselis@senseon.io >
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com >
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Jones <alexsimonjones@gmail.com >
2023-10-22 16:08:39 +01:00
Alex Jones
69fe2db8ac
feat: integration refactor ( #684 )
...
* feat: more significant refactor
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat: more significant refactor
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat: reworked the integration activate/deactivation
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated schema for list integrations
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* fix: error with incorrect error being swallowed
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat: added namespace check
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: fixed issue with namespace and skip install validation
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
2023-09-28 07:43:05 +01:00
Alex Jones
820e4755a5
feat: added create namespace on deploy ( #673 )
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
Co-authored-by: Aris Boutselis <aris.boutselis@senseon.io >
2023-09-20 12:43:18 +01:00
Alex Jones
844ff1fc78
feat: lists activate integrations ( #669 )
...
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
2023-09-19 18:15:07 +02:00
Peter Pan
f55946d60e
feat: openAI explicit value for maxToken and temperature ( #659 )
...
* feat: openAI explicit value for maxToken and temp
Because when k8sgpt talks with vLLM, the default MaxToken is 16,
which is so small.
Given the most model supports 2048 token(like Llama1 ..etc), so
put here for a safe value.
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io >
* feat: make temperature a flag
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io >
---------
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io >
2023-09-18 13:14:43 +01: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
Alex Jones
ab064b940c
feat: serve/integration capability ( #645 )
...
* chore: updated schema for integrations support (#616 )
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
wip: enabling integration activation
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
wip: enabling integration activation
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* wip
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat: skipinstall fixed
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat: fixed filters for integrations but its ugly
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated library
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated go mod
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: updated go mod
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
2023-09-16 17:12:09 +01:00