Help us shape the future of Go! Take the 2026 Go Developer Survey

k8s

package
v2.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package k8s ingests Kubernetes manifests (Helm chart templates, CRDs, raw YAML) into the code graph. Each YAML document ("---" separated) becomes a Manifest node titled "Kind/name"; container images and secret/configMap references become reference edges so the graph can answer "what uses this secret".

Manifests are NOT Tree-sitter parsed: Helm templating ({{ .Values… }}) is not valid YAML and would break a strict parser. Instead a resilient line scan pulls top-level kind / metadata.name / metadata.namespace and known reference fields, tolerating template expressions.

Index

Constants

View Source
const KindManifest = "Manifest"

KindManifest is the node kind for a Kubernetes resource.

Variables

This section is empty.

Functions

func Parse

func Parse(path string, source []byte) parser.Result

Parse turns one YAML file's bytes into Manifest nodes + reference edges.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL