Documentation ¶
Index ¶
- func AddStorageFiles(config *igntypes.Config, base string, uri string, templateData interface{}) (err error)
- func AddSystemdUnits(config *igntypes.Config, uri string, templateData interface{}, ...) (err error)
- func ContentSourceToDigestMirror(sources []types.ImageContentSource) []types.ImageDigestSource
- func GenerateIgnitionShimWithCertBundleAndProxy(bootstrapConfigURL string, userCA string, proxy *types.Proxy) ([]byte, error)
- func MergedMirrorSets(sources []types.ImageDigestSource) []types.ImageDigestSource
- type Bootstrap
- type CVOIgnore
- type Common
- type SingleNodeBootstrapInPlace
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.
type CVOIgnore ¶
CVOIgnore adds bootstrap files needed to inform CVO to ignore resources for which the installer is providing manifests.
func (*CVOIgnore) Dependencies ¶
Dependencies returns all of the dependencies directly needed by the CVOIgnore asset
type Common ¶
Common is an asset that generates the ignition config for bootstrap nodes.
func (*Common) Dependencies ¶
Dependencies returns the assets on which the Bootstrap asset depends.
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 ¶
func (a *SingleNodeBootstrapInPlace) Name() string
Name returns the human-friendly name of the asset.