mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-09-01 23:39:41 +00:00
feat: integration ready for first review
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
@@ -11,6 +11,11 @@ import (
|
||||
type Client struct {
|
||||
Client kubernetes.Interface
|
||||
RestClient rest.Interface
|
||||
Config *rest.Config
|
||||
}
|
||||
|
||||
func (c *Client) GetConfig() *rest.Config {
|
||||
return c.Config
|
||||
}
|
||||
|
||||
func (c *Client) GetClient() kubernetes.Interface {
|
||||
@@ -49,5 +54,6 @@ func NewClient(kubecontext string, kubeconfig string) (*Client, error) {
|
||||
return &Client{
|
||||
Client: clientSet,
|
||||
RestClient: restClient,
|
||||
Config: c,
|
||||
}, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user