joiner

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddNodesConfig

type AddNodesConfig struct {
	Params Params
	Config Config
}

AddNodesConfig is used to store the current configuration for the command.

func (*AddNodesConfig) Dependencies

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

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

func (*AddNodesConfig) Files

func (*AddNodesConfig) Files() []*asset.File

Files returns the files generated by the asset.

func (*AddNodesConfig) Generate

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

Generate it's empty for this asset, always loaded from disk.

func (*AddNodesConfig) Load

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

Load returns agent config asset from the disk.

func (*AddNodesConfig) Name

func (*AddNodesConfig) Name() string

Name returns the human-friendly name of the asset.

type ClusterInfo

type ClusterInfo struct {
	Client          kubernetes.Interface
	OpenshiftClient configclient.Interface

	ClusterID                     string
	ClusterName                   string
	Version                       string
	ReleaseImage                  string
	APIDNSName                    string
	PullSecret                    string
	Namespace                     string
	UserCaBundle                  string
	Proxy                         *types.Proxy
	Architecture                  string
	ImageDigestSources            []types.ImageDigestSource
	DeprecatedImageContentSources []types.ImageContentSource
	PlatformType                  hiveext.PlatformType
	SSHKey                        string
	OSImage                       *stream.Stream
	OSImageLocation               string
	IgnitionEndpointWorker        *models.IgnitionEndpoint
	FIPS                          bool
	Nodes                         *corev1.NodeList
}

ClusterInfo it's an asset used to retrieve config info from an already existing cluster. A number of different resources are inspected to extract the required configuration.

func (*ClusterInfo) Dependencies

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

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

func (*ClusterInfo) Files

func (*ClusterInfo) Files() []*asset.File

Files returns the files generated by the asset.

func (*ClusterInfo) Generate

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

Generate generates the ClusterInfo.

func (*ClusterInfo) Load

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

Load returns agent config asset from the disk.

func (*ClusterInfo) Name

func (ci *ClusterInfo) Name() string

Name returns the human-friendly name of the asset.

type Config

type Config struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	CPUArchitecture string       `json:"cpuArchitecture,omitempty"`
	SSHKey          string       `json:"sshKey,omitempty"`
	Hosts           []agent.Host `json:"hosts,omitempty"`
}

Config defines the configuration for the nodes-config.yaml file used by the add-nodes command.

type Params

type Params struct {
	Kubeconfig string `json:"kubeconfig,omitempty"`
}

Params is used to store the command line parameters.

func (*Params) Save

func (p *Params) Save(assetsDir string) error

Save stores the current parameters on disk.

Jump to

Keyboard shortcuts

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