clusterconfig

package
v0.0.0-...-e506b72 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SeedReconfigurationFromClusterInfo

func SeedReconfigurationFromClusterInfo(
	clusterInfo *utils.ClusterInfo,
	kubeconfigCryptoRetention *seedreconfig.KubeConfigCryptoRetention,
	sshKey string,
	infraID string,
	pullSecret string,
	kubeadminPasswordHash string,
	proxy,
	statusProxy *seedreconfig.Proxy,
	installConfig string,
	chronyConfig string,
	additionalTrustBundle *AdditionalTrustBundle,
	serverSSHKeys []ServerSSHKey,
) *seedreconfig.SeedReconfiguration

Types

type AdditionalTrustBundle

type AdditionalTrustBundle struct {
	// The contents of the "user-ca-bundle" configmap in the "openshift-config" namespace
	UserCaBundle string `json:"userCaBundle"`

	// The Proxy CR trustedCA configmap name
	ProxyConfigmapName string `json:"proxyConfigmapName"`

	// The contents of the ProxyConfigmapName configmap. Must equal
	// UserCaBundle if ProxyConfigmapName is "user-ca-bundle"
	ProxyConfigmapBundle string `json:"proxyConfigmapBundle"`
}

type ServerSSHKey

type ServerSSHKey struct {
	FileName    string
	FileContent string
}

type UpgradeClusterConfigGather

type UpgradeClusterConfigGather struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

UpgradeClusterConfigGather Gather ClusterConfig attributes from the kube-api

func (*UpgradeClusterConfigGather) FetchClusterConfig

func (r *UpgradeClusterConfigGather) FetchClusterConfig(ctx context.Context, ostreeVarDir string) error

FetchClusterConfig collects the current cluster's configuration and write it as JSON files into given filesystem directory.

func (*UpgradeClusterConfigGather) FetchLvmConfig

func (r *UpgradeClusterConfigGather) FetchLvmConfig(ctx context.Context, ostreeDir string) error

func (*UpgradeClusterConfigGather) GetAdditionalTrustBundle

func (r *UpgradeClusterConfigGather) GetAdditionalTrustBundle(ctx context.Context) (*AdditionalTrustBundle, error)

func (*UpgradeClusterConfigGather) GetInstallConfig

func (r *UpgradeClusterConfigGather) GetInstallConfig(ctx context.Context) (string, error)

func (*UpgradeClusterConfigGather) GetKubeadminPasswordHash

func (r *UpgradeClusterConfigGather) GetKubeadminPasswordHash(ctx context.Context) (string, error)

func (*UpgradeClusterConfigGather) GetProxy

func (*UpgradeClusterConfigGather) GetServerSSHKeys

func (r *UpgradeClusterConfigGather) GetServerSSHKeys(ctx context.Context) ([]ServerSSHKey, error)

type UpgradeClusterConfigGatherer

type UpgradeClusterConfigGatherer interface {
	FetchClusterConfig(ctx context.Context, ostreeVarDir string) error
	FetchLvmConfig(ctx context.Context, ostreeVarDir string) error
}

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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