Documentation ¶
Index ¶
- Constants
- Variables
- func AWSAssumeRoleCLIConfig(client client.Client, role *hivev1aws.AssumeRole, ...) error
- func AWSAssumeRoleSecretName(secretPrefix string) string
- func CopyAWSServiceProviderSecret(client client.Client, destNamespace string, envVars []corev1.EnvVar, ...) error
- func GenerateInstallerJob(provision *hivev1.ClusterProvision) (*batchv1.Job, error)
- func GenerateUninstallerJobForDeprovision(req *hivev1.ClusterDeprovision, ...) (*batchv1.Job, error)
- func GetInstallJobName(provision *hivev1.ClusterProvision) string
- func GetUninstallJobName(name string) string
- func InstallerPodSpec(cd *hivev1.ClusterDeployment, ...) (*corev1.PodSpec, error)
Constants ¶
const ( // SSHPrivateKeyDir is the directory where the generated Job will mount the ssh secret to SSHPrivateKeyDir = "/sshkeys" // LibvirtSSHPrivateKeyDir is the directory where the generated Job will mount the libvirt ssh secret to LibvirtSSHPrivateKeyDir = "/libvirtsshkeys" )
Variables ¶
var ( // SSHPrivateKeyFilePath is the path to the private key contents (from the SSH secret) SSHPrivateKeyFilePath = fmt.Sprintf("%s/%s", SSHPrivateKeyDir, constants.SSHPrivateKeySecretKey) // LibvirtSSHPrivateKeyFilePath is the path to the private key contents (from the libvirt SSH secret) LibvirtSSHPrivateKeyFilePath = fmt.Sprintf("%s/%s", LibvirtSSHPrivateKeyDir, constants.SSHPrivateKeySecretKey) )
Functions ¶
func AWSAssumeRoleCLIConfig ¶ added in v1.1.1
func AWSAssumeRoleCLIConfig(client client.Client, role *hivev1aws.AssumeRole, secretName, secretNamespace string, owner metav1.Object, scheme *runtime.Scheme) error
AWSAssumeRoleCLIConfig creates a secret that can assume the role using the hiveutil credential_process helper.
func AWSAssumeRoleSecretName ¶ added in v1.1.1
func CopyAWSServiceProviderSecret ¶ added in v1.1.1
func CopyAWSServiceProviderSecret(client client.Client, destNamespace string, envVars []corev1.EnvVar, owner metav1.Object, scheme *runtime.Scheme) error
CopyAWSServiceProviderSecret copies the AWS service provider secret to the dest namespace when HiveAWSServiceProviderCredentialsSecretRefEnvVar is set in envVars. The secret name in the dest namespace will be the value set in HiveAWSServiceProviderCredentialsSecretRefEnvVar.
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 GenerateUninstallerJobForDeprovision ¶
func GenerateUninstallerJobForDeprovision( req *hivev1.ClusterDeprovision, serviceAccountName, httpProxy, httpsProxy, noProxy string, extraEnvVars []corev1.EnvVar) (*batchv1.Job, error)
GenerateUninstallerJobForDeprovision 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 ¶
GetUninstallJobName returns the expected name of the deprovision job for a cluster deployment.
func InstallerPodSpec ¶
func InstallerPodSpec( cd *hivev1.ClusterDeployment, provisionName, releaseImage, serviceAccountName, httpProxy, httpsProxy, noProxy string, extraEnvVars []corev1.EnvVar, ) (*corev1.PodSpec, error)
InstallerPodSpec generates a spec for an installer pod.
Types ¶
This section is empty.