Comments (3)
@golgoth31 if I am correct, this actually just checks to see if there is an error from OpenAPIschema right? Do we think there needs to be some more work done to clarify what this command really does?
// we get the openapi schema from the server only if required by the flag "with-doc"
openapiSchema := &openapi_v2.Document{}
if a.WithDoc {
var openApiErr error
openapiSchema, openApiErr = a.Client.Client.Discovery().OpenAPISchema()
if openApiErr != nil {
a.Errors = append(a.Errors, fmt.Sprintf("[KubernetesDoc] %s", openApiErr))
}
}
from k8sgpt.
Hi @AlexsJones , The command you mention is the command to extract the full openapi schema from the target kubernetes cluster only if requested by the "with-doc" flag.
Unfortunatly, this is not used if not requested by an analyser. For exemple, the cronjob analyser:
- configure the openapi schema parser https://github.com/k8sgpt-ai/k8sgpt/blob/main/pkg/analyzer/cronjob.go#L33
- perse the schema when needed https://github.com/k8sgpt-ai/k8sgpt/blob/main/pkg/analyzer/cronjob.go#L56
If the nothing is found or the schema not parsed, the kubernetesDoc string is empty and the output is not shown https://github.com/k8sgpt-ai/k8sgpt/blob/main/pkg/analysis/output.go#L81
We have multiple ways to fix this:
- always add a kubernetesDoc value to "not available"; replaced by the real value if found
- update the documentation to say that nothing is displayed if not found
In a first run, I can add all the missing openapi parsing requests to the known objects.
Do you have any guide lines for the analysers writing, if yes, we schould add this part.
from k8sgpt.
@AlexsJones Can I work on this issue?
from k8sgpt.
Related Issues (20)
- Action Required: Fix Renovate Configuration
- [Feature]: add google cloud integration on k8sgpt HOT 1
- k8sgpt analyze --explain --backend amazonbedrock fails with AccessDeniedException error HOT 3
- [Feature]: On-prem S3 for cache such as Minio HOT 2
- [Feature]: Support Prometheus compatible metrics solutions like VictoriaMetrics
- [BUG]: namespace filter works only with --filter flag HOT 5
- [Feature]: Add Oracle Cloud Infrastructure (OCI) Generative AI Service as a backend
- [Feature]: Include License, Copyright, and Notice text of third party dependencies in go-releaser build
- [BUG]: topP is not set from the config yaml of the `openai` provider HOT 1
- [Feature]: Constructing a Resource Graph in Kubernetes and Transmitting Information Including Subgraphs Near Problematic Nodes to LLM HOT 6
- [Feature]: Add integration for Keda
- Improve K8sGPT Error Reporting for CrashLoopBackOff Pods HOT 2
- [bug]: run k8sgpt analyze will only complete successfully once , after trivy integration is active HOT 5
- [Feature]: support Ollama backend HOT 6
- [Bug]: invalid parent object in output list
- [Feature]: Support Custom AI backends. HOT 4
- Getting error "AI provider openai not specified in configuration. Please run k8sgpt auth" while using k8sgpt cli with Azureopenai as backend HOT 3
- [Bug]: "Ingress uses the secret radio/ as a TLS certificate which does not exist." HOT 1
- add label selector on analyzer cmd
- [Feature]: Add a new flag to `k8sgpt analyze` to directly output prompt
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8sgpt.