apply

package
v0.14.0-experiment-98d0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package apply creates bundle resources from gitrepo resources.

Index

Constants

View Source
const (
	JSONOutputEnvVar             = "FLEET_JSON_OUTPUT"
	JobNameEnvVar                = "JOB_NAME"
	FleetApplyConflictRetriesEnv = "FLEET_APPLY_CONFLICT_RETRIES"
)

Variables

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

Functions

func CreateBundles added in v0.10.0

func CreateBundles(pctx context.Context, client client.Client, r record.EventRecorder, 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(pctx context.Context, client client.Client, r record.EventRecorder, 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 GetOnConflictRetries added in v0.13.0

func GetOnConflictRetries() (int, error)

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 {
	Namespace                   string
	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
	OCIRegistrySecret           string
	DrivenScan                  bool
	DrivenScanSeparator         string
	JobNameEnvVar               string
}

Jump to

Keyboard shortcuts

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