apply

package
v0.11.2-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package apply creates bundle resources from gitrepo resources.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoResources = errors.New("no resources found to deploy")
)

Functions

func CreateBundles added in v0.10.0

func CreateBundles(ctx context.Context, client Getter, repoName string, baseDirs []string, opts Options) error

CreateBundles creates bundles from the baseDirs, their names are prefixed with repoName. Depending on opts.Output the bundles are created in the cluster or printed to stdout, ...

func Dir

func Dir(ctx context.Context, client Getter, name, baseDir string, opts *Options, gitRepoBundlesMap map[string]bool) error

Dir reads a bundle and image scans from a directory and writes runtime objects to the selected output.

name: the gitrepo name, passed to 'fleet apply' on the cli basedir: the path from the walk func in Dir, []baseDirs

Types

type Getter

type Getter interface {
	Get() (*client.Client, error)
	GetNamespace() string
}

type OCIRegistrySpec added in v0.10.0

type OCIRegistrySpec struct {
	Reference       string
	Username        string
	Password        string
	BasicHTTP       bool
	InsecureSkipTLS bool
}

type Options

type Options struct {
	BundleFile                  string
	TargetsFile                 string
	Compress                    bool
	BundleReader                io.Reader
	Output                      io.Writer
	ServiceAccount              string
	TargetNamespace             string
	Paused                      bool
	Labels                      map[string]string
	SyncGeneration              int64
	Auth                        bundlereader.Auth
	HelmRepoURLRegex            string
	KeepResources               bool
	DeleteNamespace             bool
	AuthByPath                  map[string]bundlereader.Auth
	CorrectDrift                bool
	CorrectDriftForce           bool
	CorrectDriftKeepFailHistory bool
	OCIRegistry                 OCIRegistrySpec
}

Jump to

Keyboard shortcuts

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