bundle

package
v0.5.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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
}

Bundle struct extends the fleet.Bundle with cluster matches and ImageScan configuration

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)

Open reads the content, from stdin, or basedir, or a file in basedir. It returns a bundle with the given name

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