configimage

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: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InstallConfigFilename is the file containing the install-config.
	InstallConfigFilename = "install-config.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterConfiguration

type ClusterConfiguration struct {
	File   *asset.File
	Config *imagebased.SeedReconfiguration
}

ClusterConfiguration generates the image-based installer cluster configuration asset.

func (*ClusterConfiguration) Dependencies

func (*ClusterConfiguration) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*ClusterConfiguration) Files

func (cc *ClusterConfiguration) Files() []*asset.File

Files returns the files generated by the asset.

func (*ClusterConfiguration) Generate

func (cc *ClusterConfiguration) Generate(_ context.Context, dependencies asset.Parents) error

Generate generates the Image-based Installer ClusterConfiguration manifest.

func (*ClusterConfiguration) Load

Load returns ClusterConfiguration asset from the disk.

func (*ClusterConfiguration) Name

func (*ClusterConfiguration) Name() string

Name returns a human friendly name for the asset.

type ClusterID

type ClusterID struct {
	installconfig.ClusterID
}

ClusterID is the unique ID of the cluster, immutable during the cluster's life.

func (*ClusterID) Dependencies

func (i *ClusterID) Dependencies() []asset.Asset

Dependencies returns install-config.

func (*ClusterID) Generate

func (i *ClusterID) Generate(_ context.Context, dep asset.Parents) error

Generate generates a new ClusterID.

func (*ClusterID) Name

func (i *ClusterID) Name() string

Name returns the human-friendly name of the asset.

type ConfigImage

type ConfigImage struct {
	// contains filtered or unexported fields
}

ConfigImage is an asset that generates a configuration ISO that can be used to configure image-based installer provisioned hosts.

func (*ConfigImage) Dependencies

func (ci *ConfigImage) Dependencies() []asset.Asset

Dependencies returns the assets on which the Config asset depends.

func (*ConfigImage) Files

func (ci *ConfigImage) Files() []*asset.File

Files returns the files generated by the asset.

func (*ConfigImage) Generate

func (ci *ConfigImage) Generate(_ context.Context, dependencies asset.Parents) error

Generate generates the configuration image file.

func (*ConfigImage) Load

func (ci *ConfigImage) Load(f asset.FileFetcher) (bool, error)

Load returns the ISO from disk.

func (*ConfigImage) Name

func (ci *ConfigImage) Name() string

Name returns the human-friendly name of the asset.

func (*ConfigImage) PersistToFile

func (ci *ConfigImage) PersistToFile(directory string) error

PersistToFile writes the ISO image in the assets folder.

type ExtraManifests

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

ExtraManifests reads the additional manifests for cluster customization.

func (*ExtraManifests) Dependencies

func (em *ExtraManifests) Dependencies() []asset.Asset

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

func (*ExtraManifests) Files

func (em *ExtraManifests) Files() []*asset.File

Files returns the files generated by the asset.

func (*ExtraManifests) Generate

func (em *ExtraManifests) Generate(_ context.Context, dependencies asset.Parents) error

Generate is not required for ExtraManifests.

func (*ExtraManifests) Load

func (em *ExtraManifests) Load(f asset.FileFetcher) (found bool, err error)

Load reads the asset files from disk.

func (*ExtraManifests) Name

func (em *ExtraManifests) Name() string

Name returns a human friendly name for the asset.

type ImageBasedConfig

type ImageBasedConfig struct {
	File     *asset.File
	Config   *imagebased.Config
	Template string
}

ImageBasedConfig reads the image-based-config.yaml file.

func (*ImageBasedConfig) Dependencies

func (*ImageBasedConfig) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*ImageBasedConfig) Files

func (i *ImageBasedConfig) Files() []*asset.File

Files returns the files generated by the asset.

func (*ImageBasedConfig) Generate

func (i *ImageBasedConfig) Generate(_ context.Context, dependencies asset.Parents) error

Generate generates the Image-based Config manifest.

func (*ImageBasedConfig) Load

Load returns the image-based config asset from the disk.

func (*ImageBasedConfig) Name

func (*ImageBasedConfig) Name() string

Name returns a human friendly name for the asset.

func (*ImageBasedConfig) PersistToFile

func (i *ImageBasedConfig) PersistToFile(directory string) error

PersistToFile writes the image-based-config.yaml file to the assets folder.

type ImageBasedKubeAPIServerCompleteCABundle

type ImageBasedKubeAPIServerCompleteCABundle struct {
	tls.CertBundle
}

ImageBasedKubeAPIServerCompleteCABundle is the asset the generates the kube-apiserver-complete-server-ca-bundle, which contains all the certs that are valid to confirm the kube-apiserver identity and it also contains the Ingress Operator CA certificate.

func (*ImageBasedKubeAPIServerCompleteCABundle) Dependencies

Dependencies returns the dependency of the cert bundle.

func (*ImageBasedKubeAPIServerCompleteCABundle) Generate

Generate generates the cert bundle based on its dependencies.

func (*ImageBasedKubeAPIServerCompleteCABundle) Name

Name returns the human-friendly name of the asset.

type ImageDigestSources

type ImageDigestSources struct {
	File   *asset.File
	Config []types.ImageDigestSource
}

ImageDigestSources generates the image-based installer image digest sources asset.

func (*ImageDigestSources) Dependencies

func (*ImageDigestSources) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*ImageDigestSources) Files

func (ids *ImageDigestSources) Files() []*asset.File

Files returns the files generated by the asset.

func (*ImageDigestSources) Generate

func (ids *ImageDigestSources) Generate(_ context.Context, dependencies asset.Parents) error

Generate generates the Image-based Installer ImageDigestSources manifest.

func (*ImageDigestSources) Load

func (ids *ImageDigestSources) Load(f asset.FileFetcher) (bool, error)

Load returns ImageDigestSources asset from the disk.

func (*ImageDigestSources) Name

func (*ImageDigestSources) Name() string

Name returns a human friendly name for the asset.

type IngressOperatorCABundle

type IngressOperatorCABundle struct {
	tls.CertBundle
}

IngressOperatorCABundle is the asset the generates the ingress-operator-signer-ca-bundle, which contains all the ingrees operator signer CA.

func (*IngressOperatorCABundle) Dependencies

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

Dependencies returns the dependency of the cert bundle.

func (*IngressOperatorCABundle) Generate

func (a *IngressOperatorCABundle) Generate(ctx context.Context, deps asset.Parents) error

Generate generates the cert bundle based on its dependencies.

func (*IngressOperatorCABundle) Name

func (a *IngressOperatorCABundle) Name() string

Name returns the human-friendly name of the asset.

type IngressOperatorSignerCertKey

type IngressOperatorSignerCertKey struct {
	tls.SelfSignedCertKey
}

IngressOperatorSignerCertKey is the asset that generates the ingress operator key/cert pair.

func (*IngressOperatorSignerCertKey) Dependencies

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

Dependencies returns the dependency of the the cert/key pair.

func (*IngressOperatorSignerCertKey) Generate

func (a *IngressOperatorSignerCertKey) Generate(ctx context.Context, dependencies asset.Parents) error

Generate generates the cert/key pair based on its dependencies.

func (*IngressOperatorSignerCertKey) Name

Name returns the human-friendly name of the asset.

type InstallConfig

type InstallConfig struct {
	installconfig.AssetBase
}

InstallConfig is an InstallConfig where the default is empty, rather than generated from running the survey.

func (*InstallConfig) ClusterName

func (i *InstallConfig) ClusterName() string

ClusterName returns the name of the cluster, or a default name if no InstallConfig is supplied.

func (*InstallConfig) ClusterNamespace

func (i *InstallConfig) ClusterNamespace() string

ClusterNamespace returns the namespace of the cluster.

func (*InstallConfig) Dependencies

func (i *InstallConfig) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed by an InstallConfig asset.

func (*InstallConfig) Generate

func (i *InstallConfig) Generate(_ context.Context, parents asset.Parents) error

Generate generates the install-config.yaml file.

func (*InstallConfig) Load

func (i *InstallConfig) Load(f asset.FileFetcher) (bool, error)

Load returns the installconfig from disk.

Jump to

Keyboard shortcuts

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