mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-08-11 12:41:39 +00:00
feat: removal of trivy integration
Signed-off-by: AlexsJones <alexsimonjones@gmail.com>
This commit is contained in:
parent
443fe95fe1
commit
a5694834e1
@ -24,7 +24,7 @@ var deactivateCmd = &cobra.Command{
|
|||||||
Use: "deactivate [integration]",
|
Use: "deactivate [integration]",
|
||||||
Short: "Deactivate an integration",
|
Short: "Deactivate an integration",
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
Long: `For example e.g. k8sgpt integration deactivate trivy`,
|
Long: `For example e.g. k8sgpt integration deactivate prometheus`,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
integrationName := args[0]
|
integrationName := args[0]
|
||||||
|
|
||||||
|
@ -6,8 +6,6 @@ const (
|
|||||||
Error: {Explain error here}
|
Error: {Explain error here}
|
||||||
Solution: {Step by step solution here}
|
Solution: {Step by step solution here}
|
||||||
`
|
`
|
||||||
trivy_vuln_prompt = "Explain the following trivy scan result and the detail risk or root cause of the CVE ID, then provide a solution. Response in %s: %s"
|
|
||||||
trivy_conf_prompt = "Explain the following trivy scan result and the detail risk or root cause of the security check, then provide a solution."
|
|
||||||
|
|
||||||
prom_conf_prompt = `Simplify the following Prometheus error message delimited by triple dashes written in --- %s --- language; --- %s ---.
|
prom_conf_prompt = `Simplify the following Prometheus error message delimited by triple dashes written in --- %s --- language; --- %s ---.
|
||||||
This error came when validating the Prometheus configuration file.
|
This error came when validating the Prometheus configuration file.
|
||||||
@ -62,8 +60,6 @@ const (
|
|||||||
|
|
||||||
var PromptMap = map[string]string{
|
var PromptMap = map[string]string{
|
||||||
"default": default_prompt,
|
"default": default_prompt,
|
||||||
"VulnerabilityReport": trivy_vuln_prompt, // for Trivy integration, the key should match `Result.Kind` in pkg/common/types.go
|
|
||||||
"ConfigAuditReport": trivy_conf_prompt,
|
|
||||||
"PrometheusConfigValidate": prom_conf_prompt,
|
"PrometheusConfigValidate": prom_conf_prompt,
|
||||||
"PrometheusConfigRelabelReport": prom_relabel_prompt,
|
"PrometheusConfigRelabelReport": prom_relabel_prompt,
|
||||||
"PolicyReport": kyverno_prompt,
|
"PolicyReport": kyverno_prompt,
|
||||||
|
Loading…
Reference in New Issue
Block a user