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)
- 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
- [Bug]: "Ingress uses the secret radio/ as a TLS certificate which does not exist." HOT 1
- [Question]: Integration with Amazon bedrock issue HOT 11
- Report the use of components with vulnerabilities in k8sgpt
- [Feature]: Add Top K as a backend parameter
- [Question]: "An empty namespace may not be set during creation" error HOT 14
- [bug]: failed while calling AI provider openai HOT 3
- [Feature]: AWS integration to k8sgpt-operator.
- [Feature]: Support for AWS_PROFILE
- an empty namespace may not be set during creation for k8sgpt operator controller manager HOT 1
- [Bug]: Windows executable not working properly HOT 2
- [Feature]: Enable IBM Watsonx as one of the LLM AI Backends HOT 1
- Pass Headers while authenticating to AI backends HOT 1
- [BUG]: Unnecessary RBAC permissions
- docs: update "CLI Installation" section in README.md
- add openai organizationID config HOT 3
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.