Skip to content

Commit

Permalink
feature: generate results in the target namespace
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 <[email protected]>
  • Loading branch information
VaibhavMalik4187 committed Apr 2, 2024
1 parent 0eb03fa commit 308e5f8
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 308e5f8

Please sign in to comment.