Documentation
¶
Overview ¶
Package apply creates bundle resources from gitrepo resources.
Index ¶
- Constants
- Variables
- func CreateBundles(pctx context.Context, client client.Client, r record.EventRecorder, ...) error
- func CreateBundlesDriven(pctx context.Context, client client.Client, r record.EventRecorder, ...) error
- func GetOnConflictRetries() (int, error)
- type Getter
- type OCIRegistrySpec
- type Options
Constants ¶
const ( JSONOutputEnvVar = "FLEET_JSON_OUTPUT" JobNameEnvVar = "JOB_NAME" FleetApplyConflictRetriesEnv = "FLEET_APPLY_CONFLICT_RETRIES" )
Variables ¶
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
Types ¶
type OCIRegistrySpec ¶ added in v0.10.0
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 }