def deploy_image(self, image_name, oc_new_app_args=None, project=None, name=None):
self.project = project or self.get_current_project()<EOL>name = name or '<STR_LIT>'.format(random_string=random_str(<NUM_LIT:5>))<EOL>oc_new_app_args = oc_new_app_args or []<EOL>new_image = self.import_image(image_name.split('<STR_LIT:/>')[-<NUM_LIT:1>], image_name)<EOL>c = self._oc_command(<EOL>["<STR_LIT>"] + oc_new_app_args + [new_image] +<EOL>["<STR_LIT>"] + [project] + ["<STR_LIT>" % name])<EOL>logger.info("<STR_LIT>", project)<EOL>try:<EOL><INDENT>run_cmd(c)<EOL><DEDENT>except subprocess.CalledProcessError as ex:<EOL><INDENT>raise ConuException("<STR_LIT>" % ex)<EOL><DEDENT>return name<EOL>
Deploy image in OpenShift cluster using 'oc new-app'
:param image_name: image name with tag
:param oc_new_app_args: additional parameters for the `oc new-app`, env variables etc.
:param project: project where app should be created, default: current project
:param name:str, name of application, if None random name is generated
:return: str, name of the app