source

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSource

type FileSource struct {
	Path string
}

FileSource loads resources from plain YAML files.

func NewFileSource

func NewFileSource(path string) *FileSource

func (*FileSource) Load

func (f *FileSource) Load() ([]Resource, error)

type HelmSource

type HelmSource struct {
	ChartPath   string
	ReleaseName string
	ValuesFiles []string
}

HelmSource loads resources by running helm template.

func NewHelmSource

func NewHelmSource(chartPath, releaseName string, valuesFiles []string) *HelmSource

func (*HelmSource) Load

func (h *HelmSource) Load() ([]Resource, error)

type KustomizeSource

type KustomizeSource struct {
	Path string
}

KustomizeSource loads resources by running kustomize build.

func NewKustomizeSource

func NewKustomizeSource(path string) *KustomizeSource

func (*KustomizeSource) Load

func (k *KustomizeSource) Load() ([]Resource, error)

type Resource

type Resource struct {
	APIVersion string
	Kind       string
	Name       string
	Namespace  string
	Object     *unstructured.Unstructured
}

Resource represents a parsed Kubernetes resource from a local source.

type Source

type Source interface {
	Load() ([]Resource, error)
}

Source loads Kubernetes resources from a local source (file, helm, kustomize).

Jump to

Keyboard shortcuts

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