Documentation ¶
Index ¶
- func GenerateInstallConfig(cd *hivev1.ClusterDeployment, sshKey, pullSecret string) (*types.InstallConfig, error)
- func GenerateInstallerJob(cd *hivev1.ClusterDeployment, serviceAccountName string, sshKey string, ...) (*batchv1.Job, *corev1.ConfigMap, error)
- func GenerateUninstallerJob(cd *hivev1.ClusterDeployment) (*batchv1.Job, error)
- func GetInstallJobName(cd *hivev1.ClusterDeployment) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateInstallConfig ¶
func GenerateInstallConfig(cd *hivev1.ClusterDeployment, sshKey, pullSecret string) (*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( cd *hivev1.ClusterDeployment, serviceAccountName string, sshKey string, pullSecret string) (*batchv1.Job, *corev1.ConfigMap, error)
GenerateInstallerJob creates a job to install an OpenShift cluster given a ClusterDeployment and an installer image.
func GenerateUninstallerJob ¶
func GenerateUninstallerJob( cd *hivev1.ClusterDeployment) (*batchv1.Job, error)
GenerateUninstallerJob creates a job to uninstall an OpenShift cluster given a ClusterDeployment and an installer image.
func GetInstallJobName ¶
func GetInstallJobName(cd *hivev1.ClusterDeployment) string
GetInstallJobName returns the expected name of the install job for a cluster deployment.
Types ¶
This section is empty.