diff --git a/pkg/client/analysis.go b/pkg/client/analysis.go index a195985e..bdaa33b0 100644 --- a/pkg/client/analysis.go +++ b/pkg/client/analysis.go @@ -12,7 +12,7 @@ import ( v1 "k8s.io/api/apps/v1" ) -func (c *Client) ProcessAnalysis(deployment v1.Deployment, config *v1alpha1.K8sGPT, allowAIRequest bool) (*common.K8sGPTReponse, error) { +func (c *Client) ProcessAnalysis(deployment v1.Deployment, config *v1alpha1.K8sGPT, allowAIRequest bool) (*common.K8sGPTResponse, error) { client := rpc.NewServerAnalyzerServiceClient(c.conn) req := &schemav1.AnalyzeRequest{ @@ -42,7 +42,7 @@ func (c *Client) ProcessAnalysis(deployment v1.Deployment, config *v1alpha1.K8sG return nil, err } - response := &common.K8sGPTReponse{ + response := &common.K8sGPTResponse{ Status: res.Status, Results: target, Problems: int(res.Problems), diff --git a/pkg/common/types.go b/pkg/common/types.go index 3add3889..0f419281 100644 --- a/pkg/common/types.go +++ b/pkg/common/types.go @@ -15,7 +15,7 @@ package common import "github.com/k8sgpt-ai/k8sgpt-operator/api/v1alpha1" -type K8sGPTReponse struct { +type K8sGPTResponse struct { Status string `json:"status"` Problems int `json:"problems"` Results []v1alpha1.ResultSpec `json:"results"`