bootstrap

package
v0.0.0-...-c53fdc3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStorageFiles

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

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

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

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

func GenerateIgnitionShimWithCertBundleAndProxy

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

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

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

Types

type Bootstrap

type Bootstrap struct {
	Common
}

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

func (*Bootstrap) Generate

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

Generate generates the ignition config for the Bootstrap asset.

func (*Bootstrap) Load

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

Load returns the bootstrap ignition from disk.

func (*Bootstrap) Name

func (a *Bootstrap) Name() string

Name returns the human-friendly name of the asset.

type CVOIgnore

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

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

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

func (*CVOIgnore) Files

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

Files returns the files generated by the asset.

func (*CVOIgnore) Generate

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

Generate generates the respective operator config.yml files

func (*CVOIgnore) Load

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

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

func (*CVOIgnore) Name

func (a *CVOIgnore) Name() string

Name returns a human friendly name for the operator

type Common

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

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

func (*Common) Dependencies

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

Dependencies returns the assets on which the Bootstrap asset depends.

func (*Common) Files

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

Files returns the files generated by the asset.

type SingleNodeBootstrapInPlace

type SingleNodeBootstrapInPlace struct {
	Common
}

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

func (*SingleNodeBootstrapInPlace) Generate

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

Generate generates the ignition config for the Bootstrap asset.

func (*SingleNodeBootstrapInPlace) Load

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

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

func (*SingleNodeBootstrapInPlace) Name

Name returns the human-friendly name of the asset.

Jump to

Keyboard shortcuts

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