def __init__( self, retries, broker=None, backend=None, include=None, config_source=None, docker_image=None, docker_registry=None, docker_username=None, docker_password=None, repo_location_name=None, ): self.retries = check.inst_param(retries, 'retries', Retries) self.broker = check.opt_str_param(broker, 'broker', default=broker_url) self.backend = check.opt_str_param(backend, 'backend', default=result_backend) self.include = check.opt_list_param(include, 'include', of_type=str) self.config_source = dict_wrapper( dict(DEFAULT_CONFIG, **check.opt_dict_param(config_source, 'config_source'))) self.docker_image = check.str_param(docker_image, 'docker_image') self.docker_registry = check.opt_str_param(docker_registry, 'docker_registry') self.docker_username = check.opt_str_param(docker_username, 'docker_username') self.docker_password = check.opt_str_param(docker_password, 'docker_password') self.repo_location_name = check.str_param(repo_location_name, 'repo_location_name')
def __init__( self, retries, docker_config, broker=None, backend=None, include=None, config_source=None, ): self._retries = check.inst_param(retries, "retries", Retries) self.broker = check.opt_str_param(broker, "broker", default=broker_url) self.backend = check.opt_str_param(backend, "backend", default=result_backend) self.include = check.opt_list_param(include, "include", of_type=str) self.config_source = dict_wrapper( dict(DEFAULT_CONFIG, **check.opt_dict_param(config_source, "config_source")) ) self.docker_config = check.dict_param(docker_config, "docker_config")
def __init__( self, retries, broker=None, backend=None, include=None, config_source=None, job_config=None, job_namespace=None, load_incluster_config=False, kubeconfig_file=None, repo_location_name=None, job_wait_timeout=None, ): if load_incluster_config: check.invariant( kubeconfig_file is None, "`kubeconfig_file` is set but `load_incluster_config` is True.", ) else: check.opt_str_param(kubeconfig_file, "kubeconfig_file") self._retries = check.inst_param(retries, "retries", RetryMode) self.broker = check.opt_str_param(broker, "broker", default=broker_url) self.backend = check.opt_str_param(backend, "backend", default=result_backend) self.include = check.opt_list_param(include, "include", of_type=str) self.config_source = dict_wrapper( dict(DEFAULT_CONFIG, **check.opt_dict_param(config_source, "config_source"))) self.job_config = check.inst_param(job_config, "job_config", DagsterK8sJobConfig) self.job_namespace = check.opt_str_param(job_namespace, "job_namespace", default="default") self.load_incluster_config = check.bool_param(load_incluster_config, "load_incluster_config") self.kubeconfig_file = check.opt_str_param(kubeconfig_file, "kubeconfig_file") self.repo_location_name = check.str_param(repo_location_name, "repo_location_name") self.job_wait_timeout = check.float_param(job_wait_timeout, "job_wait_timeout")
def __init__( self, retries, broker=None, backend=None, include=None, config_source=None, job_config=None, job_namespace=None, load_incluster_config=False, kubeconfig_file=None, repo_location_name=None, ): if load_incluster_config: check.invariant( kubeconfig_file is None, '`kubeconfig_file` is set but `load_incluster_config` is True.', ) else: check.opt_str_param(kubeconfig_file, 'kubeconfig_file') self._retries = check.inst_param(retries, 'retries', Retries) self.broker = check.opt_str_param(broker, 'broker', default=broker_url) self.backend = check.opt_str_param(backend, 'backend', default=result_backend) self.include = check.opt_list_param(include, 'include', of_type=str) self.config_source = dict_wrapper( dict(DEFAULT_CONFIG, **check.opt_dict_param(config_source, 'config_source'))) self.job_config = check.inst_param(job_config, 'job_config', DagsterK8sJobConfig) self.job_namespace = check.opt_str_param(job_namespace, 'job_namespace', default='default') self.load_incluster_config = check.bool_param(load_incluster_config, 'load_incluster_config') self.kubeconfig_file = check.opt_str_param(kubeconfig_file, 'kubeconfig_file') self.repo_location_name = check.str_param(repo_location_name, 'repo_location_name')