Skip to content

Commit

Permalink
feature: generate results in the target namespace (#399)
Browse files Browse the repository at this point in the history
Now, the result crd will be generated in the target namespace instead of
k8sgpt config namespace.

Addresses: #390

Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com>
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com>
  • Loading branch information
VaibhavMalik4187 and arbreezy committed Apr 19, 2024
1 parent 9172165 commit bd14c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
)

func MapResults(i integrations.Integrations, resultsSpec []v1alpha1.ResultSpec, config v1alpha1.K8sGPT) (map[string]v1alpha1.Result, error) {
namespace := config.Namespace
namespace := config.Spec.TargetNamespace
backend := config.Spec.AI.Backend
backstageEnabled := config.Spec.ExtraOptions != nil && config.Spec.ExtraOptions.Backstage.Enabled
rawResults := make(map[string]v1alpha1.Result)
Expand Down

0 comments on commit bd14c1a

Please sign in to comment.