k8sgpt
k8sgpt copied to clipboard
feat: cilium integration support
Closes https://github.com/k8sgpt-ai/k8sgpt/issues/1238
📑 Description
Adds support for Cilium. Implements basic checks on usual Cilium daemonsets and deployments.
Ideally, we don't want to re-implement the huge number of checks Cilium already does, so I wanted to just read the cilium status -o json
output if the user has Cilium CLI installed, and collect the errors from that report. But the errors are lost when reading the report JSON format.
I filed a fix in cilium for that here: https://github.com/cilium/cilium/pull/34654
It is not reasonable to expect everyone to have the most updated version of the CLI even once this is released though, so we have to implement some checks ourselves.
✅ Checks
- [x] My pull request adheres to the code style of this project
- [ ] My code requires changes to the documentation
- [ ] I have updated the documentation as required
- [ ] All the tests have passed