install

package
v0.0.0-...-50abef9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultInstallerImage is the image that will be used to install a ClusterDeployment if no
	// image is specified through a ClusterImageSet reference or on the ClusterDeployment itself.
	DefaultInstallerImage = "registry.svc.ci.openshift.org/openshift/origin-v4.0:installer"

	// SSHPrivateKeyDir is the directory where the generated Job will mount the ssh secret to
	SSHPrivateKeyDir = "/sshkeys"

	// SSHSecretPrivateKeyName is the key name holding the private key in the SSH secret
	SSHSecretPrivateKeyName = "ssh-privatekey"
)

Variables

View Source
var (
	// SSHPrivateKeyFilePath is the path to the private key contents (from the SSH secret)
	SSHPrivateKeyFilePath = fmt.Sprintf("%s/%s", SSHPrivateKeyDir, SSHSecretPrivateKeyName)
)

Functions

func GenerateInstallConfig

func GenerateInstallConfig(cd *hivev1.ClusterDeployment, sshKey, pullSecret string, generateForInstall bool) (*types.InstallConfig, error)

GenerateInstallConfig builds an InstallConfig for the installer from our ClusterDeploymentSpec. The two types are extremely similar, but have different goals and in some cases deviation was required as ClusterDeployment is used as a CRD API.

It is assumed the caller will lookup the admin password and ssh key from their respective secrets.

func GenerateInstallerJob

func GenerateInstallerJob(provision *hivev1.ClusterProvision) (*batchv1.Job, error)

GenerateInstallerJob creates a job to install an OpenShift cluster given a ClusterDeployment and an installer image.

func GenerateUninstallerJobForDeprovisionRequest

func GenerateUninstallerJobForDeprovisionRequest(
	req *hivev1.ClusterDeprovisionRequest) (*batchv1.Job, error)

GenerateUninstallerJobForDeprovisionRequest generates an uninstaller job for a given deprovision request

func GetInstallJobName

func GetInstallJobName(provision *hivev1.ClusterProvision) string

GetInstallJobName returns the expected name of the install job for a cluster provision.

func GetUninstallJobName

func GetUninstallJobName(name string) string

GetUninstallJobName returns the expected name of the deprovision job for a cluster deployment.

func InstallerPodSpec

func InstallerPodSpec(
	cd *hivev1.ClusterDeployment,
	provisionName string,
	releaseImage string,
	serviceAccountName string,
	pvcName string,
	skipGatherLogs bool,
) (*corev1.PodSpec, error)

InstallerPodSpec generates a spec for an installer pod.

Types

This section is empty.

Jump to

Keyboard shortcuts

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