Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jaypipes/kube-inspect

Go Reference Go Report Card Build Status Contributor Covenant

kube-inspect is a Go library for inspecting Kubernetes resources within raw manifests, Helm Charts and Kustomize overlays.

Helm Chart inspection

Inspect what is inside a Helm Chart with the kube-inspect/helm package.

import (
    "fmt"
    "log"

    helminspect "github.com/jaypipes/kube-inspect/helm"
)

func main() {
    // subject can be a filepath, a helm go-sdk Chart object, a URL, or an
    // `io.Reader`
    chart, err := helminspect.Inspect(subject)
    if err != nil {
        log.Fatalf("failed to inspect Helm Chart %s: %s", subject, err)
    }
    for _, r := range chart.Resources() {
        fmt.Println("kind:", r.GetKind(), "name:", r.GetName())
    }
}

About

Inspect Kube resources inside Helm Charts, Kustomize overlays and raw manifests

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published