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 ¶ 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
Generate generates the ignition config for the Bootstrap asset.
type CVOIgnore ¶ added in v0.9.2
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
Dependencies returns all of the dependencies directly needed by the CVOIgnore asset
func (*CVOIgnore) Generate ¶ added in v0.9.2
Generate generates the respective operator config.yml files
type Common ¶ added in v0.9.2
Common is an asset that generates the ignition config for bootstrap nodes.
func (*Common) Dependencies ¶ added in v0.9.2
Dependencies returns the assets on which the Bootstrap asset depends.
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
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
func (a *SingleNodeBootstrapInPlace) Name() string
Name returns the human-friendly name of the asset.