bundle

package
v0.3.0-alpha8 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManifestsDir = "manifests"
	ChartDir     = "chart"
	KustomizeDir = "kustomize"
	Overlays     = "overlays"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	Definition *fleet.Bundle
	// contains filtered or unexported fields
}

func New

func New(bundle *fleet.Bundle) (*Bundle, error)

func Open

func Open(ctx context.Context, name, baseDir, file string, opts *Options) (*Bundle, error)

func Read

func Read(ctx context.Context, name, baseDir string, bundleSpecReader io.Reader, opts *Options) (*Bundle, error)

func (*Bundle) Match

func (a *Bundle) Match(clusterGroups map[string]map[string]string, clusterLabels map[string]string) *Match

func (*Bundle) MatchForTarget

func (a *Bundle) MatchForTarget(name string) *Match

type Match

type Match struct {
	Target *fleet.BundleTarget
	Bundle *Bundle
	// contains filtered or unexported fields
}

func (*Match) Manifest

func (t *Match) Manifest() (*manifest.Manifest, error)

type Options

type Options struct {
	Compress       bool
	Labels         map[string]string
	ServiceAccount string
	TargetsFile    string
	SyncBefore     *time.Time
}

Jump to

Keyboard shortcuts

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