Documentation
¶
Overview ¶
Package apply creates bundle resources from gitrepo resources.
Index ¶
- Variables
- func CreateBundles(ctx context.Context, client Getter, repoName string, baseDirs []string, ...) error
- func CreateBundlesDriven(ctx context.Context, client Getter, repoName string, baseDirs []string, ...) error
- func Dir(ctx context.Context, client Getter, name, baseDir string, opts *Options, ...) error
- type Getter
- type OCIRegistrySpec
- type Options
Constants ¶
This section is empty.
Variables ¶
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 CreateBundlesDriven ¶ added in v0.13.0
func CreateBundlesDriven(ctx context.Context, client Getter, repoName string, baseDirs []string, opts Options) error
CreateBundlesDriven creates bundles from the given baseDirs. Those bundles' names will be prefixed with repoName. Depending on opts.Output the bundles are created in the cluster or printed to stdout, ... CreateBundlesDriven does not scan the given dirs recursively, it simply considers each of them to be the base path for a bundle. The given baseDirs may describe a simple path or a path and a fleet file, separated by a character set in opts. If no fleet file is provided it tries to load a fleet.yaml in the root of the dir, or will consider the directory as a raw content folder.
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 OCIRegistrySpec ¶ added in v0.10.0
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
DrivenScan bool
DrivenScanSeparator string
}