source

package
v0.0.0-...-90a9490 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultResources

func DefaultResources(selectors []types.ResourceSelector) []types.ResourceSelector

Types

type Impl

type Impl interface {
	Load(env *types.Env) (*State, error)
}

func New

func New(spec *apis.Source) (Impl, error)

type Kubeconfig

type Kubeconfig struct {
	Path      string                   `yaml:"kubeconfig"`
	Clusters  []types.ClusterSelector  `yaml:"clusters"`
	Resources []types.ResourceSelector `yaml:"resources"`
}

func (*Kubeconfig) Load

func (kcfg *Kubeconfig) Load(env *types.Env) (*State, error)

func (*Kubeconfig) UnmarshalYAML

func (kcfg *Kubeconfig) UnmarshalYAML(node *yaml.Node) error

type Kustomize

type Kustomize struct {
	PathTemplate string                   `yaml:"kustomization"`
	Clusters     []types.ClusterSelector  `yaml:"clusters"`
	Resources    []types.ResourceSelector `yaml:"resources"`
}

func (*Kustomize) Load

func (kust *Kustomize) Load(env *types.Env) (*State, error)

type State

type State struct {
	Clusters  *types.ClusterIndex
	Resources map[types.ClusterID][]*yaml.RNode
}

Jump to

Keyboard shortcuts

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