Skip to content

Latest commit

 

History

History
124 lines (78 loc) · 3.17 KB

ocp.md

File metadata and controls

124 lines (78 loc) · 3.17 KB

Ocp

Auto-generated documentation for ocs_ci.deployment.ocp module.

This module provides base class for OCP deployment.

OCPDeployment

[find in source code]

class OCPDeployment():
    def __init__():

OCPDeployment().create_config

[find in source code]

def create_config():

Create the OCP deploy config, if something needs to be changed fro specific platform you can overload this method in child class.

OCPDeployment().deploy

[find in source code]

def deploy(log_cli_level='DEBUG'):

Implement ocp deploy in specific child class

OCPDeployment().deploy_prereq

[find in source code]

def deploy_prereq():

Perform generic prereq before calling openshift-installer This method performs all the basic steps necessary before invoking the installer

OCPDeployment().destroy

[find in source code]

def destroy(log_level='DEBUG'):

Destroy OCP cluster specific

Arguments

  • log_level str - log level openshift-installer (default: DEBUG)

OCPDeployment().download_installer

[find in source code]

def download_installer():

Method to download installer

Returns

  • str - path to the installer

OCPDeployment().get_pull_secret

[find in source code]

def get_pull_secret():

Load pull secret file

Returns

  • dict - content of pull secret

OCPDeployment().get_ssh_key

[find in source code]

def get_ssh_key():

Loads public ssh to be used for deployment

Returns

  • str - public ssh key or empty string if not found

OCPDeployment().test_cluster

[find in source code]

def test_cluster():

Test if OCP cluster installed successfuly