Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added env prop to kernel options #7499

Merged
merged 1 commit into from Nov 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/services/src/kernel/default.ts
Expand Up @@ -1668,7 +1668,7 @@ namespace Private {
let url = URLExt.join(settings.baseUrl, KERNEL_SERVICE_URL);
let init = {
method: 'POST',
body: JSON.stringify({ name: options.name })
body: JSON.stringify({ name: options.name, env: options.env })
};
let response = await ServerConnection.makeRequest(url, init, settings);
if (response.status !== 201) {
Expand Down
7 changes: 7 additions & 0 deletions packages/services/src/kernel/kernel.ts
Expand Up @@ -639,6 +639,13 @@ export namespace Kernel {
*/
name?: string;

/**
* Environment variables passed to the kernelspec (used in Enterprise Gateway)
*/
env?: {
[key: string]: string;
};

/**
* The server settings for the kernel.
*/
Expand Down