mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-09-15 23:01:33 +00:00
feat: running in cluster
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
@@ -42,6 +42,14 @@ var ServeCmd = &cobra.Command{
|
||||
Password: password,
|
||||
Model: model,
|
||||
}
|
||||
|
||||
configAI.Providers = append(configAI.Providers, *aiProvider)
|
||||
|
||||
viper.Set("ai", configAI)
|
||||
if err := viper.WriteConfig(); err != nil {
|
||||
color.Red("Error writing config file: %s", err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
} else {
|
||||
color.Red("Error: AI provider not specified in configuration. Please run k8sgpt auth")
|
||||
os.Exit(1)
|
||||
|
Reference in New Issue
Block a user