You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that multiple calls to a nil reference along the k8sgpt serve scenaio exist.
Try for example:
Run k8sgpt serve -b amazonbedrock
Query with grpcurl -plaintext -d '{"explain": true, "namespace": "k8sgpt"}' localhost:8080 schema.v1.ServerService/Analyze (note the missing backend parameter in the query)
query output:
ERROR:
Code: Unavailable
Message: error reading from server: EOF
The problem is at pkg/server/analyze.go where the config instance is nil due to an error yielded by the previous statement.
Following the idiomatic error handling in go should solve the problem.
The text was updated successfully, but these errors were encountered:
Checklist
Affected Components
K8sGPT Version
0.3.37
Kubernetes Version
n/a
Host OS and its Version
Mac
Steps to reproduce
k8sgpt auth
k8sgpt serve
Expected behaviour
--backend, -b
flag with non-default (openai) backend configurations.Actual behaviour
Additional Information
configuration:
Note that multiple calls to a nil reference along the
k8sgpt serve
scenaio exist.Try for example:
k8sgpt serve -b amazonbedrock
grpcurl -plaintext -d '{"explain": true, "namespace": "k8sgpt"}' localhost:8080 schema.v1.ServerService/Analyze
(note the missing backend parameter in the query)query output:
server output:
The problem is at pkg/server/analyze.go where the
config
instance is nil due to an error yielded by the previous statement.Following the idiomatic error handling in go should solve the problem.
The text was updated successfully, but these errors were encountered: