manifest

package
v2.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applier

type Applier struct {
	// contains filtered or unexported fields
}

Applier wraps an instance of Manifest and provides a way to apply it to the cluster.

func (Applier) Apply

func (a Applier) Apply(ctx context.Context, cli client.Client, data map[string]any, options ...cluster.MetaOptions) error

Apply processes owned manifest and apply it to a cluster.

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func Location

func Location(fsys fs.FS) *Builder

Location sets the root file system from which manifest paths are loaded.

func (*Builder) Create

func (b *Builder) Create() ([]resource.Applier, error)

func (*Builder) Include

func (b *Builder) Include(paths ...string) *Builder

Include loads manifests from the provided paths.

type Manifest

type Manifest struct {
	// contains filtered or unexported fields
}

func Create

func Create(fsys fs.FS, path string) *Manifest

func LoadManifests

func LoadManifests(fsys fs.FS, path string) ([]*Manifest, error)

func (*Manifest) Process

func (m *Manifest) Process(data any) ([]*unstructured.Unstructured, error)

Process allows any arbitrary struct to be passed and used while processing the content of the manifest.

Jump to

Keyboard shortcuts

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