mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-05-28 17:47:09 +00:00
Signed-off-by: AlexsJones <alexsimonjones@gmail.com> Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
27 lines
656 B
Go
27 lines
656 B
Go
package integration
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
namespace string
|
|
)
|
|
|
|
// IntegrationCmd represents the integrate command
|
|
var IntegrationCmd = &cobra.Command{
|
|
Use: "integration",
|
|
Short: "Intergrate another tool into K8sGPT",
|
|
Long: `Intergrate another tool into K8sGPT. For example:
|
|
k8sgpt integration add trivy
|
|
|
|
This would allow you to deploy trivy into your cluster and use a K8sGPT analyzer to parse trivy results.`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
cmd.Help()
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
IntegrationCmd.PersistentFlags().StringVarP(&namespace, "namespace", "n", "default", "The namespace to use for the integration")
|
|
}
|