bootstrap

package
v0.90.16 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 43 Imported by: 81

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStorageFiles added in v0.9.2

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.9.2

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.9.2

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

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

func GenerateIgnitionShimWithCertBundleAndProxy added in v0.9.2

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.9.2

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(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.9.2

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.9.2

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

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

func (*CVOIgnore) Files added in v0.9.2

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

Files returns the files generated by the asset.

func (*CVOIgnore) Generate added in v0.9.2

func (a *CVOIgnore) Generate(dependencies asset.Parents) error

Generate generates the respective operator config.yml files

func (*CVOIgnore) Load added in v0.9.2

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.9.2

func (a *CVOIgnore) Name() string

Name returns a human friendly name for the operator

type Common added in v0.9.2

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.9.2

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

Dependencies returns the assets on which the Bootstrap asset depends.

func (*Common) Files added in v0.9.2

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

Files returns the files generated by the asset.

type SingleNodeBootstrapInPlace added in v0.9.2

type SingleNodeBootstrapInPlace struct {
	Common
}

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

func (*SingleNodeBootstrapInPlace) Generate added in v0.9.2

func (a *SingleNodeBootstrapInPlace) Generate(dependencies asset.Parents) error

Generate generates the ignition config for the Bootstrap asset.

func (*SingleNodeBootstrapInPlace) Load added in v0.9.2

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.9.2

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