Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddNodesConfig ¶
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) 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) 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.