def get_sidecar_container(job_container_name,<EOL>sidecar_container_name,<EOL>sidecar_docker_image,<EOL>sidecar_docker_image_pull_policy,<EOL>namespace,<EOL>sidecar_config,<EOL>sidecar_args,<EOL>internal_health_check_url,<EOL>volume_mounts,<EOL>env_vars=None):
env_vars = to_list(env_vars) if env_vars else []<EOL>env_vars += get_sidecar_env_vars(namespace=namespace,<EOL>job_container_name=job_container_name,<EOL>internal_health_check_url=internal_health_check_url)<EOL>for k, v in sidecar_config.items():<EOL><INDENT>env_vars.append(get_env_var(name=k, value=v))<EOL><DEDENT>return client.V1Container(name=sidecar_container_name,<EOL>image=sidecar_docker_image,<EOL>image_pull_policy=sidecar_docker_image_pull_policy,<EOL>command=get_sidecar_command(),<EOL>env=env_vars,<EOL>volume_mounts=volume_mounts,<EOL>args=sidecar_args)<EOL>
Return a pod sidecar container.