-
Notifications
You must be signed in to change notification settings - Fork 202
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
Expose stack on functions.yaml instead of stack.yaml. #1036
Conversation
@@ -85,7 +85,8 @@ async function startBin( | |||
env: { | |||
PATH: process.env.PATH, | |||
GLCOUD_PROJECT: 'test-project', | |||
STACK_CONTROL_API_PORT: port, | |||
PORT: port, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason for changing this to a more generic name? Isn't it likely that users might have this var set for other processes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original design used two ports: one for the general API and one for the "control" API. We discovered that Python cannot handle two ports on the same process, so we are consolidating on one port. $PORT is the standard env variable for Cloud Run, so we're using it too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your service.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is ok
@@ -85,7 +85,8 @@ async function startBin( | |||
env: { | |||
PATH: process.env.PATH, | |||
GLCOUD_PROJECT: 'test-project', | |||
STACK_CONTROL_API_PORT: port, | |||
PORT: port, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original design used two ports: one for the general API and one for the "control" API. We discovered that Python cannot handle two ports on the same process, so we are consolidating on one port. $PORT is the standard env variable for Cloud Run, so we're using it too.
try { | ||
const stack = await loadStack(functionsDir); | ||
res.setHeader('content-type', 'text/yaml'); | ||
res.send(JSON.stringify(stack)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lol. I guess JSON is technically YAML.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's you give us direction of to do us a community,we are one.
@@ -85,7 +85,8 @@ async function startBin( | |||
env: { | |||
PATH: process.env.PATH, | |||
GLCOUD_PROJECT: 'test-project', | |||
STACK_CONTROL_API_PORT: port, | |||
PORT: port, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is ok
I kaumbakahuma, I appreciate your help and support for this service from file Bass. |
Some contractual changes to how we expose the container contract:
__/functions.yaml
instead of__/stack.yaml
in the control apiSTACK_CONTROL_API_PORT
toPORT
andFUNCTIONS_CONTROL_API
(whose value should equaltrue
).