installconfig

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 48 Imported by: 344

Documentation

Overview

Package installconfig generates the install config assets based on its dependencies. The type itself is defined in ../pkg/types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetBase added in v0.9.2

type AssetBase struct {
	Config *types.InstallConfig `json:"config"`
	File   *asset.File          `json:"file"`
}

AssetBase is the base structure for the separate InstallConfig assets used in the agent-based and IPI/UPI installation methods.

func (*AssetBase) Files added in v0.9.2

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

Files returns the files generated by the asset.

func (*AssetBase) LoadFromFile added in v0.9.2

func (a *AssetBase) LoadFromFile(f asset.FileFetcher) (found bool, err error)

LoadFromFile returns the installconfig from disk.

func (*AssetBase) Name added in v0.9.2

func (a *AssetBase) Name() string

Name returns the human-friendly name of the asset.

func (*AssetBase) RecordFile added in v0.9.2

func (a *AssetBase) RecordFile() error

RecordFile generates the asset manifest file from the config CR.

type ClusterID added in v0.9.2

type ClusterID struct {
	// UUID is a globally unique identifier.
	UUID string

	// InfraID is an identifier for the cluster that is more human friendly.
	// This does not have
	InfraID string
}

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

func (*ClusterID) Dependencies added in v0.9.2

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

Dependencies returns install-config.

func (*ClusterID) Generate added in v0.9.2

func (a *ClusterID) Generate(dep asset.Parents) error

Generate generates a new ClusterID

func (*ClusterID) Name added in v0.9.2

func (a *ClusterID) Name() string

Name returns the human-friendly name of the asset.

type InstallConfig added in v0.2.0

type InstallConfig struct {
	AssetBase
	AWS          *aws.Metadata          `json:"aws,omitempty"`
	Azure        *icazure.Metadata      `json:"azure,omitempty"`
	IBMCloud     *icibmcloud.Metadata   `json:"ibmcloud,omitempty"`
	AlibabaCloud *alibabacloud.Metadata `json:"alibabacloud,omitempty"`
	PowerVS      *icpowervs.Metadata    `json:"powervs,omitempty"`
}

InstallConfig generates the install-config.yaml file.

func MakeAsset added in v0.9.2

func MakeAsset(config *types.InstallConfig) *InstallConfig

MakeAsset returns an InstallConfig asset containing a given InstallConfig CR.

func (*InstallConfig) Dependencies added in v0.2.0

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

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

func (*InstallConfig) Generate added in v0.2.0

func (a *InstallConfig) Generate(parents asset.Parents) error

Generate generates the install-config.yaml file.

func (*InstallConfig) Load added in v0.3.0

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

Load returns the installconfig from disk.

type PlatformCredsCheck added in v0.9.2

type PlatformCredsCheck struct {
}

PlatformCredsCheck is an asset that checks the platform credentials, asks for them or errors out if invalid the cluster.

func (*PlatformCredsCheck) Dependencies added in v0.9.2

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

Dependencies returns the dependencies for PlatformCredsCheck

func (*PlatformCredsCheck) Generate added in v0.9.2

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

Generate queries for input from the user.

func (*PlatformCredsCheck) Name added in v0.9.2

func (a *PlatformCredsCheck) Name() string

Name returns the human-friendly name of the asset.

type PlatformPermsCheck added in v0.9.2

type PlatformPermsCheck struct {
}

PlatformPermsCheck is an asset that checks platform credentials for the necessary permissions to create a cluster.

func (*PlatformPermsCheck) Dependencies added in v0.9.2

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

Dependencies returns the dependencies for PlatformPermsCheck

func (*PlatformPermsCheck) Generate added in v0.9.2

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

Generate queries for input from the user.

func (*PlatformPermsCheck) Name added in v0.9.2

func (a *PlatformPermsCheck) Name() string

Name returns the human-friendly name of the asset.

type PlatformProvisionCheck added in v0.9.2

type PlatformProvisionCheck struct {
}

PlatformProvisionCheck is an asset that validates the install-config platform for any requirements specific for provisioning infrastructure.

func (*PlatformProvisionCheck) Dependencies added in v0.9.2

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

Dependencies returns the dependencies for PlatformProvisionCheck

func (*PlatformProvisionCheck) Generate added in v0.9.2

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

Generate queries for input from the user.

func (*PlatformProvisionCheck) Name added in v0.9.2

func (a *PlatformProvisionCheck) Name() string

Name returns the human-friendly name of the asset.

Directories

Path Synopsis
aws
Package aws collects AWS-specific configuration.
Package aws collects AWS-specific configuration.
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package baremetal collects bare metal specific configuration.
Package baremetal collects bare metal specific configuration.
gcp
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package libvirt collects libvirt-specific configuration.
Package libvirt collects libvirt-specific configuration.
Package nutanix collects Nutanix-specific configuration.
Package nutanix collects Nutanix-specific configuration.
Package openstack collects OpenStack-specific configuration.
Package openstack collects OpenStack-specific configuration.
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package vsphere collects vSphere-specific configuration.
Package vsphere collects vSphere-specific configuration.
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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