mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-04-27 11:11:31 +00:00
fix: [Bug] Make lint command is not working (#1282)
* fix: [Bug] Make lint command is not working Signed-off-by: Milap Jhumkhawala <milap.jhumkhawala@gmail.com> * forgot to sign commit Signed-off-by: Milap Jhumkhawala <milap.jhumkhawala@gmail.com> --------- Signed-off-by: Milap Jhumkhawala <milap.jhumkhawala@gmail.com>
This commit is contained in:
parent
c128bf7942
commit
87565a0bcc
2
Makefile
2
Makefile
@ -98,7 +98,7 @@ vet:
|
|||||||
## lint: Run go lint against code.
|
## lint: Run go lint against code.
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint:
|
||||||
@golangci-lint run -v ./...
|
@golangci-lint run -v --timeout=5m ./...
|
||||||
|
|
||||||
## style: Code style -> fmt,vet,lint
|
## style: Code style -> fmt,vet,lint
|
||||||
.PHONY: style
|
.PHONY: style
|
||||||
|
@ -17,7 +17,7 @@ type AzureAIClient struct {
|
|||||||
client *openai.Client
|
client *openai.Client
|
||||||
model string
|
model string
|
||||||
temperature float32
|
temperature float32
|
||||||
organizationId string
|
// organizationId string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *AzureAIClient) Configure(config IAIConfig) error {
|
func (c *AzureAIClient) Configure(config IAIConfig) error {
|
||||||
|
@ -31,7 +31,7 @@ type OpenAIClient struct {
|
|||||||
model string
|
model string
|
||||||
temperature float32
|
temperature float32
|
||||||
topP float32
|
topP float32
|
||||||
organizationId string
|
// organizationId string
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -17,6 +17,7 @@ type Client struct {
|
|||||||
|
|
||||||
func NewClient(c Connection) (*Client, error) {
|
func NewClient(c Connection) (*Client, error) {
|
||||||
|
|
||||||
|
//nolint:staticcheck // Ignoring SA1019 for compatibility reasons
|
||||||
conn, err := grpc.Dial(fmt.Sprintf("%s:%s", c.Url, c.Port), grpc.WithTransportCredentials(insecure.NewCredentials()))
|
conn, err := grpc.Dial(fmt.Sprintf("%s:%s", c.Url, c.Port), grpc.WithTransportCredentials(insecure.NewCredentials()))
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -26,8 +26,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
//nolint:staticcheck // Ignoring SA1019 for compatibility reasons
|
||||||
gw2 "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc-ecosystem/gateway/v2/schema/v1/server_analyzer_service/schemav1gateway"
|
gw2 "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc-ecosystem/gateway/v2/schema/v1/server_analyzer_service/schemav1gateway"
|
||||||
|
//nolint:staticcheck // Ignoring SA1019 for compatibility reasons
|
||||||
gw "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc-ecosystem/gateway/v2/schema/v1/server_config_service/schemav1gateway"
|
gw "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc-ecosystem/gateway/v2/schema/v1/server_config_service/schemav1gateway"
|
||||||
rpc "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc/go/schema/v1/schemav1grpc"
|
rpc "buf.build/gen/go/k8sgpt-ai/k8sgpt/grpc/go/schema/v1/schemav1grpc"
|
||||||
"github.com/go-logr/zapr"
|
"github.com/go-logr/zapr"
|
||||||
|
Loading…
Reference in New Issue
Block a user