bundlereader

package
v0.6.0-rc.5 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: 38 Imported by: 0

Documentation

Overview

Package bundlereader creates a bundle from a source and adds all the referenced resources, as well as image scans.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

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

Open reads the fleet.yaml, from stdin, or basedir, or a file in basedir. Then it reads/downloads all referenced resources. It returns the populated bundle and any existing imagescans.

Types

type Auth

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

type Options

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

type Style

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

func DetermineStyle

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

func (Style) IsHelm

func (s Style) IsHelm() bool

func (Style) IsKustomize

func (s Style) IsKustomize() bool

func (Style) IsRawYAML

func (s Style) IsRawYAML() bool

Jump to

Keyboard shortcuts

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