Discover Packages
github.com/rancher/fleet
modules
cli
apply
package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Oct 27, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 20
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Overview Index Constants Variables Functions Types Apply(ctx, client, repoName, baseDirs, opts) Dir(ctx, client, name, baseDir, opts, gitRepoBundlesMap) type Options
Documentation
¶
Package apply creates bundle resources from gitrepo resources (fleetapply)
View Source
var (
ErrNoResources = errors.New("no resources found to deploy" )
)
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 (ctx context.Context, client *client.Getter, name, baseDir string , opts *Options, gitRepoBundlesMap map [string ]bool ) error
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 bundle.Auth
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.