Documentation ¶
Overview ¶
Package apply creates bundle resources from gitrepo resources (fleetapply)
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoResources = errors.New("no resources found to deploy")
)
Functions ¶
func Apply ¶
func Apply(ctx context.Context, client *client.Getter, repoName string, baseDirs []string, opts *Options) error
Apply creates bundles from the baseDirs, their names are prefixed with repoName. Depending on opts.Outpus the bundles are created in the cluster or printed to stdout, ...
func Dir ¶
func Dir(ctx context.Context, client *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 ¶
Click to show internal directories.
Click to hide internal directories.