def _get_container_pod_env_vars(self, persistence_outputs, persistence_data, outputs_refs_jobs, outputs_refs_experiments, ephemeral_token): logs_path = self._get_logs_path() outputs_path = self._get_outputs_path( persistence_outputs=persistence_outputs) env_vars = get_job_env_vars( namespace=self.namespace, persistence_outputs=persistence_outputs, outputs_path=outputs_path, persistence_data=persistence_data, log_level=self.log_level, logs_path=logs_path, outputs_refs_jobs=outputs_refs_jobs, outputs_refs_experiments=outputs_refs_experiments, ephemeral_token=ephemeral_token, ) return env_vars + [ get_env_var(name=constants.CONFIG_MAP_CLUSTER_KEY_NAME, value=json.dumps(self.cluster_def)), get_env_var(name=constants.CONFIG_MAP_PARAMS_KEY_NAME, value=self.params), get_env_var(name=constants.CONFIG_MAP_EXPERIMENT_INFO_KEY_NAME, value=json.dumps(self.experiment_labels)), ]
def _get_container_pod_env_vars(self, persistence_outputs, persistence_data, outputs_refs_jobs, outputs_refs_experiments, ephemeral_token): logs_path = self._get_logs_path() outputs_path = self._get_outputs_path( persistence_outputs=persistence_outputs) env_vars = get_job_env_vars( namespace=self.namespace, persistence_outputs=persistence_outputs, outputs_path=outputs_path, persistence_data=persistence_data, log_level=self.log_level, logs_path=logs_path, outputs_refs_jobs=outputs_refs_jobs, outputs_refs_experiments=outputs_refs_experiments, ephemeral_token=ephemeral_token, ) return env_vars + [ get_env_var(name=constants.CONFIG_MAP_NOTEBOOK_INFO_KEY_NAME, value=json.dumps(self.labels)), ]