bundle

package
v0.3.9-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChartPath added in v0.3.0

func ChartPath(helm *fleet.HelmOptions) string

Types

type Auth added in v0.3.5

type Auth struct {
	Username      string
	Password      string
	CABundle      []byte
	SSHPrivateKey []byte
}

type Bundle

type Bundle struct {
	Definition *fleet.Bundle
	Scans      []*fleet.ImageScan
	// contains filtered or unexported fields
}

func New

func New(bundle *fleet.Bundle, imageScan ...*fleet.ImageScan) (*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(clusterName string, 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
}

type Options

type Options struct {
	Compress        bool
	Labels          map[string]string
	ServiceAccount  string
	TargetsFile     string
	TargetNamespace string
	Paused          bool
	SyncGeneration  int64
	Auth            Auth
}

type Style added in v0.3.0

type Style struct {
	ChartPath     string
	KustomizePath string
	HasChartYAML  bool
	Options       fleet.BundleDeploymentOptions
}

func DetermineStyle added in v0.3.0

func DetermineStyle(m *manifest.Manifest, options fleet.BundleDeploymentOptions) Style

func (Style) IsHelm added in v0.3.0

func (s Style) IsHelm() bool

func (Style) IsKustomize added in v0.3.0

func (s Style) IsKustomize() bool

func (Style) IsRawYAML added in v0.3.0

func (s Style) IsRawYAML() bool

Jump to

Keyboard shortcuts

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