171ba02f4e
* The k8s API does not set TypeMeta on objects when the list API is used |
||
---|---|---|
checks | ||
cmd/clusterlint | ||
kube | ||
vendor | ||
README.md | ||
go.mod | ||
go.sum |
README.md
Clusterlint
Linter to check k8s API objects from a live cluster.
Background
The idea for this tool was conceived to address some of the issues users face during upgrade of the cluster to a new kubernetes version. This also documents some of the recommended practices to follow while writing the object configs.
Install
go install ./cmd/clusterlint
The above command creates the clusterlint
binary in $GOPATH/bin
Usage
clusterlint list [options] // list all checks available to the user
clusterlint run [options] // run all or specific checks