-
Notifications
You must be signed in to change notification settings - Fork 40
support appProxy for runner init #555
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
Conversation
| installationEvent: installationProgress.events.RUNTIME_INSTALLED, | ||
| }); | ||
|
|
||
| let appProxyIP; |
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.
no need for this
| installationPlan.addStep({ | ||
| name: 'install app-proxy', | ||
| func: async () => { | ||
| appProxyIP = await installAppProxy({ |
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.
do installationPlan.addContext('appProxyIp', appProxyIp);
this will make sure it will be available after restart
| await sdk.runtimeEnvs.update({ name: reName }, _.merge(re, body)); | ||
| console.log(`Runtime environment "${colors.cyan(reName)}" has been updated with the app proxy`); | ||
| }, | ||
| condition: !!appProxy, |
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.
condition: async () => installationPlan.getContext('appProxyIp')
| const re = await sdk.runtimeEnvs.get({ name: reName }); | ||
| const body = { | ||
| appProxy: { | ||
| externalIP: appProxyIP, |
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.
installationPlan.getContext('appProxyIp')
|
bump |
No description provided.