bootstrap

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 42 Imported by: 46 modules, 88 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStorageFiles added in v0.4.15

func AddStorageFiles(config *igntypes.Config, base string, uri string, templateData interface{}) (err error)

AddStorageFiles adds files to a Ignition config. Parameters: config - the ignition config to be modified base - path were the files are written to in to config uri - path under data/data specifying the files to be included templateData - struct to used to render templates

func AddSystemdUnits added in v0.4.15

func AddSystemdUnits(config *igntypes.Config, uri string, templateData interface{}, enabledServices []string) (err error)

AddSystemdUnits adds systemd units to a Ignition config. Parameters: config - the ignition config to be modified uri - path under data/data specifying the systemd units files to be included templateData - struct to used to render templates enabledServices - a list of systemd units to be enabled by default

func ContentSourceToDigestMirror added in v0.4.15

func ContentSourceToDigestMirror(sources []types.ImageContentSource) []types.ImageDigestSource

ContentSourceToDigestMirror creates the ImageContentSource to ImageDigestSource struct ImageContentSource is deprecated, use ImageDigestSource.

func GenerateIgnitionShimWithCertBundleAndProxy added in v0.4.15

func GenerateIgnitionShimWithCertBundleAndProxy(bootstrapConfigURL string, userCA string, proxy *types.Proxy) ([]byte, error)

GenerateIgnitionShimWithCertBundleAndProxy is used to generate an ignition file that contains both a user ca bundle in its Security section and proxy settings (if any).

func MergedMirrorSets added in v0.4.15

func MergedMirrorSets(sources []types.ImageDigestSource) []types.ImageDigestSource

MergedMirrorSets consolidates a list of ImageDigestSources so that each source appears only once.

Types

type Bootstrap added in v0.2.0

type Bootstrap struct {
	Common
}

Bootstrap is an asset that generates the ignition config for bootstrap nodes.

func (*Bootstrap) Generate added in v0.2.0

func (a *Bootstrap) Generate(_ context.Context, dependencies asset.Parents) error

Generate generates the ignition config for the Bootstrap asset.

func (*Bootstrap) Load added in v0.3.0

func (a *Bootstrap) Load(f asset.FileFetcher) (found bool, err error)

Load returns the bootstrap ignition from disk.

func (*Bootstrap) Name added in v0.2.0

func (a *Bootstrap) Name() string

Name returns the human-friendly name of the asset.

type CVOIgnore added in v0.4.15

type CVOIgnore struct {
	FileList []*asset.File
}

CVOIgnore adds bootstrap files needed to inform CVO to ignore resources for which the installer is providing manifests.

func (*CVOIgnore) Dependencies added in v0.4.15

func (a *CVOIgnore) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed by the CVOIgnore asset

func (*CVOIgnore) Files added in v0.4.15

func (a *CVOIgnore) Files() []*asset.File

Files returns the files generated by the asset.

func (*CVOIgnore) Generate added in v0.4.15

func (a *CVOIgnore) Generate(_ context.Context, dependencies asset.Parents) error

Generate generates the respective operator config.yml files

func (*CVOIgnore) Load added in v0.4.15

func (a *CVOIgnore) Load(f asset.FileFetcher) (bool, error)

Load does nothing as the file should not be loaded from disk.

func (*CVOIgnore) Name added in v0.4.15

func (a *CVOIgnore) Name() string

Name returns a human friendly name for the operator

type Common added in v0.4.15

type Common struct {
	Config *igntypes.Config
	File   *asset.File
}

Common is an asset that generates the ignition config for bootstrap nodes.

func (*Common) Dependencies added in v0.4.15

func (a *Common) Dependencies() []asset.Asset

Dependencies returns the assets on which the Bootstrap asset depends.

func (*Common) Files added in v0.4.15

func (a *Common) Files() []*asset.File

Files returns the files generated by the asset.

type SingleNodeBootstrapInPlace added in v0.4.15

type SingleNodeBootstrapInPlace struct {
	Common
}

SingleNodeBootstrapInPlace is an asset that generates the ignition config for single node OpenShift.

func (*SingleNodeBootstrapInPlace) Generate added in v0.4.15

func (a *SingleNodeBootstrapInPlace) Generate(_ context.Context, dependencies asset.Parents) error

Generate generates the ignition config for the Bootstrap asset.

func (*SingleNodeBootstrapInPlace) Load added in v0.4.15

func (a *SingleNodeBootstrapInPlace) Load(f asset.FileFetcher) (found bool, err error)

Load returns the bootstrap-in-place ignition from disk.

func (*SingleNodeBootstrapInPlace) Name added in v0.4.15

Name returns the human-friendly name of the asset.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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