Sahil Badla
db97330659
feat: enable rest/http support
...
Signed-off-by: Sahil Badla <sahil_badla@intuit.com>
2024-01-16 10:15:08 -08:00
Sahil Badla
5ea1b35cd5
feat: enable REST/http api support
...
Signed-off-by: Sahil Badla <sahil_badla@intuit.com>
2024-01-16 10:07:31 -08: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
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
Peter Pan
c85203bccd
chore: customized prompt template for integration plugins ( #403 )
...
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io>
Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
2023-06-12 21:14:12 +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
Alex Jones
948dae5e28
feat: caching ( #439 )
...
* feat: added the ability to set a user default AI provider
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* feat: added the ability to set a user default AI provider
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* feat: s3 based caching
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* feat: s3 based caching
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* updated README.md
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* update README.md
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* updated README.md
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* chore: region is a must have
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* chore: clarified remove command
* updated remove.go
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* chore: test fmt causing issues will open another pr
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-05-19 09:32:01 +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
Alex Jones
cbe2fb4a4c
feat: added the ability to set a user default AI provider ( #427 )
...
* feat: added the ability to set a user default AI provider
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* feat: added the ability to set a user default AI provider
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* chore: added provider to json output
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-05-16 13:31:19 +02:00
Matthis
e5e613acee
feat: filters api ( #407 )
...
* fix: stop execution after matching condition in RunAnalysis()
The commit fixes the issue where the RunAnalysis() function continues execution even after matching a condition. The fix ensures that the execution stops at the end of the corresponding if statement, improving the control flow and preventing unnecessary processing.
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
* feat: include filters parameter in AnalyzeRequest initialization
The commit introduces a new feature where the filters parameter is included in the initialization of the AnalyzeRequest. This enhancement allows for more specific analysis by specifying filters during the analysis process.
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
---------
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
2023-05-14 10:07:43 +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
Matthis
8b49f708f3
feat: rework output format ( #368 )
...
* feat: remove warning output
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
* feat: improves the error output to respect the format
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
* feat: rework errorsList
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
* Revert "feat: rework errorsList"
This reverts commit 1a3cfa88ae
.
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
---------
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
2023-05-03 14:23:30 +01:00
Matthis
dee423519e
fix: use a cache file name with a fixed size. ( #350 )
...
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
2023-04-27 11:59:30 +02:00
Patrick Pichler
692cd06c38
fix: explicitly pass in filter to async analysis go routine ( #326 )
...
Before the filter inside the func literal was capturing the value from
the outer loop. This is a subtle mistake, since in combination with
running the function literal as go routine, the value of filter could
have already changed at invocation time.
To fix this, the filter is now passed in as an argument to the func
literal.
Signed-off-by: Patrick Pichler <git@patrickpichler.dev>
Co-authored-by: Patrick Pichler <git@patrickpichler.dev>
2023-04-25 10:35:39 +02:00
Patrick Pichler
7eddb8f4a6
feat: use OS conform path for storing cached results
...
Instead of storing cached values in the config yaml, they are now stored
under these OS specific locations:
* Linux: `~/.cache/k8sgpt`
* MacOS: `~/Library/Caches`
* Windows: `%LocalAppData%\cache`
Additionally a `Cache` package and interface has been introduced.
Currently there are two implementations:
* Noop - Doesn't do anything
* FileBased - Stores data in files under the locations listed above
fixes #323
Signed-off-by: Patrick Pichler <git@patrickpichler.dev>
2023-04-24 19:07:54 +02:00
Alex Jones
c3cc413e7f
feat: async calls ( #311 )
...
* feat: async calls
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* feat: added concurrency settings
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
* feat: added in ability to set max concurrency
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
Co-authored-by: Matthis <99146727+matthisholleville@users.noreply.github.com>
2023-04-24 14:04:37 +00: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
Aris Boutselis
84a3cc05fb
feat: add configuration interface to support customer providers
...
Signed-off-by: Aris Boutselis <aris.boutselis@senseon.io>
2023-04-20 16:26:12 +01:00
Matthis
fa087ff559
feat: modify error handling to return a list of errors to display to the user at the end of analysis without blocking it if an error is detected (e.g., version of an object is not available on user's cluster)
...
Signed-off-by: Matthis <matthish29@gmail.com>
2023-04-20 15:09:13 +02:00
Matthis Holleville
9642202ed1
feat: add output query param on serve mode & refactor output logic
...
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
2023-04-15 21:55:46 +02:00
Thomas Schuetz
ddf3561105
Merge branch 'main' of github.com:k8sgpt-ai/k8sgpt into feat/serve
2023-04-13 13:08:27 +02:00
Thomas Schuetz
9157d4dd13
feat: unified cmd and api
...
Signed-off-by: Thomas Schuetz <thomas.schuetz@t-sc.eu>
2023-04-13 08:11:56 +02: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
Thomas Stadler
428c348586
chore: fix mistake introduced by ab55f157
( #240 )
...
Signed-off-by: Thomas Stadler <thomas@thomasst.xyz>
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
2023-04-11 19:22:12 +01:00
Thomas Stadler
fe261b375f
fix: exit progressbar on error ( #99 )
...
Signed-off-by: Thomas Stadler <thomas@thomasst.xyz>
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
HOLLEVILLE Matthis
45c7ecf98b
Merge branch 'main' into feature/add-anonymize-option
2023-04-11 20:19:12 +02:00
Matthis Holleville
dd5824f436
feat: return errors if filter specified by flag does not exist.
...
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
2023-04-11 19:21:15 +02:00
Matthis Holleville
b687473e61
feat: add more details on anonymize flag
...
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
2023-04-11 13:41:59 +02:00
Thomas Schuetz
fe502e1135
Merge branch 'main' into feature/add-anonymize-option
2023-04-11 07:47:06 +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
Thomas Stadler
3845d4747f
chore: fix mistake introduced by ab55f157
( #240 )
...
Signed-off-by: Thomas Stadler <thomas@thomasst.xyz>
2023-04-10 22:30:10 +02:00
Thomas Stadler
ab55f157ef
fix: exit progressbar on error ( #99 )
...
Signed-off-by: Thomas Stadler <thomas@thomasst.xyz>
2023-04-10 20:01:55 +02:00
AlexsJones
93bcc627ba
fix: regression on dynamic filters
...
Signed-off-by: AlexsJones <alexsimonjones@gmail.com>
2023-04-05 20:05:17 +01:00
Thomas Schuetz
2f21002899
fix: details in json output
...
Signed-off-by: Thomas Schuetz <thomas.schuetz@t-sc.eu>
2023-04-05 15:17:06 +02:00
Thomas Schuetz
22e31661bf
chore: added initial tests for json output
...
Signed-off-by: Thomas Schuetz <thomas.schuetz@t-sc.eu>
2023-04-05 14:08:23 +02:00
Thomas Schuetz
db40734a0d
chore: made json output prettier and improved output
...
Signed-off-by: Thomas Schuetz <thomas.schuetz@t-sc.eu>
2023-04-05 13:36:30 +02:00
Thomas Schuetz
0195bfab30
chore: analyzer and ai interfacing ( #200 )
...
* chore: analyzer and ai interfacing
Signed-off-by: Thomas Schuetz <thomas.schuetz@t-sc.eu>
* fix: backend variable for aiProvider in cmd
Signed-off-by: Thomas Schuetz <thomas.schuetz@t-sc.eu>
* fix: changed folders for analyzers
Signed-off-by: Thomas Schuetz <thomas.schuetz@t-sc.eu>
* chore: renamed analyzers
Signed-off-by: Thomas Schuetz <thomas.schuetz@t-sc.eu>
* fix: fixed ingress tests after rebase
Signed-off-by: Thomas Schuetz <thomas.schuetz@t-sc.eu>
* fix: fixed ingress tests after rebase
Signed-off-by: Thomas Schuetz <thomas.schuetz@t-sc.eu>
---------
Signed-off-by: Thomas Schuetz <thomas.schuetz@t-sc.eu>
2023-04-05 08:40:12 +02:00