Skip to content

[Question]: Custom Analyzers how to get parameters like namespace, on which analysis is being executed #143

@shreyasGit

Description

@shreyasGit

Checklist

  • I've searched for similar issues and couldn't find anything matching
  • I've included steps to reproduce the behavior

Affected Components

  • K8sGPT (CLI)
  • K8sGPT Operator

K8sGPT Version

0.4.17

Kubernetes Version

v1.31

Host OS and its Version

windows

Steps to reproduce

am trying to write custom analyzers using this tutorial - https://docs.k8sgpt.ai/tutorials/custom-analyzers/
I need to have parameters like namespace, label selector to be available in my custom analyzer.
in the interface there's parameter being passed to Run method - *v1.RunRequest
this seems does not have all these details.
in Proto buff schema I see some other types like AnalyzeRequest, which has these details.
can I get this inside run method in custom analyzer?

Expected behaviour

Documentation can help with what exactly is available as part of RunRequest parameter.
and are there other ways to get extra information

Actual behaviour

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions