MCPcopy Index your code
hub / github.com/bespinian/livelint

github.com/bespinian/livelint @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
578 symbols 1,023 edges 93 files 436 documented · 75%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Livelint

A CLI linting tool for live Kubernetes deployments

Livelint is based on the A visual guide on troubleshooting Kubernetes deployments blog post by Daniele Polencic.

Installation

$ go install github.com/bespinian/livelint@latest

Usage

$ livelint check my-deployment

Development

We are thrilled to receive feedback, issues and pull requests from the community.

Build

$ make build

Lint Code

$ make lint

Run Tests

$ make test

There is also a test setup that can be deployed to a Kubernetes cluster to test specific use cases. It can be created by running

$ kubectl apply -f testdata

Extension points exported contracts — how you extend this code

UserInteraction (Interface)
go:generate moq -out mock_ui_test.go -pkg livelint_test . UserInteraction [2 implementers]
internal/livelint/interaction.go
RoundTripFunc (FuncType)
(no doc)
internal/livelint/http_internal_test.go

Core symbols most depended-on inside this repo

DisplayCheckResult
called by 38
internal/livelint/interaction.go
DisplayError
called by 17
internal/livelint/interaction.go
InitialModel
called by 12
internal/livelint/checks_model.go
AskYesNo
called by 6
internal/livelint/interaction.go
exitWithErr
called by 4
main.go
getPods
called by 4
internal/livelint/get_pods.go
DisplayCheckStart
called by 4
internal/livelint/interaction.go
DisplayCheckCompletion
called by 4
internal/livelint/interaction.go

Shape

Method 477
Function 68
Struct 30
FuncType 1
Interface 1
TypeAlias 1

Languages

Go100%

Modules by API surface

internal/livelint/mock_kubernetes_test.go105 symbols
internal/livelint/mock_apiv1_pod_test.go37 symbols
internal/livelint/mock_apiv1_test.go35 symbols
internal/livelint/mock_replicasets_test.go29 symbols
internal/livelint/mock_appsv1_deployment_test.go29 symbols
internal/livelint/mock_apiv1_event_test.go29 symbols
internal/livelint/checks_model.go28 symbols
internal/livelint/mock_apiv1_node_test.go25 symbols
internal/livelint/mock_netv1_ingress_test.go23 symbols
internal/livelint/mock_apiv1_service_test.go23 symbols
internal/livelint/mock_apiv1_pvc_test.go23 symbols
internal/livelint/interaction.go21 symbols

For agents

$ claude mcp add livelint \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact