diff --git a/cmd/integration/deactivate.go b/cmd/integration/deactivate.go index 732b192..588f9f3 100644 --- a/cmd/integration/deactivate.go +++ b/cmd/integration/deactivate.go @@ -24,7 +24,7 @@ var deactivateCmd = &cobra.Command{ Use: "deactivate [integration]", Short: "Deactivate an integration", 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) { integrationName := args[0] diff --git a/pkg/ai/prompts.go b/pkg/ai/prompts.go index e9cd480..e41defc 100644 --- a/pkg/ai/prompts.go +++ b/pkg/ai/prompts.go @@ -6,8 +6,6 @@ const ( Error: {Explain error 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 ---. This error came when validating the Prometheus configuration file. @@ -62,8 +60,6 @@ const ( var PromptMap = map[string]string{ "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, "PrometheusConfigRelabelReport": prom_relabel_prompt, "PolicyReport": kyverno_prompt,