Skip to content

Commit

Permalink
First trial at the __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
pcm32 committed Mar 15, 2016
1 parent 9c4ef02 commit f2ef8de
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions lib/galaxy/jobs/runners/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,20 @@ class KubernetesJobRunner( AsynchronousJobRunner ):
runner_name = "KubernetesRunner"

def __init__( self, app, nworkers ):
"""Start the job runner """
# Check if pykube was importable, fail if not
assert operator is not None, K8S_IMPORT_MESSAGE
"""Start the job runner parent object """
super( KubernetesJobRunner, self ).__init__( app, nworkers )

self.cli_interface = CliInterface()
self._init_monitor_thread()
self._init_worker_threads()
# self.cli_interface = CliInterface()

# here we need to fetch the default kubeconfig path from the plugin defined in job_conf...
self._pykube_api = HTTPClient(KubeConfig.from_file(fromJobConfPluginParams))
# TODO how do we read from the config file the plugin parameters

# TODO do we need these?
# self._init_monitor_thread()
# self._init_worker_threads()

def get_cli_plugins( self, shell_params, job_params ):
return self.cli_interface.get_plugins( shell_params, job_params )
Expand Down

0 comments on commit f2ef8de

Please sign in to comment.