-
Notifications
You must be signed in to change notification settings - Fork 205
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
More of annotate endpoint property for functions #1009
Conversation
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.
Nice work on adding all these tests!
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.
Good god that must have required patience to author. Good job!
options, | ||
'egressSettings', | ||
'vpcConnectorEgressSettings' | ||
); | ||
endpoint.vpc = vpc; | ||
} | ||
convertIfPresent(endpoint, options, 'availableMemoryMb', 'memory', (mem) => { | ||
const memoryLookup = { |
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.
FML that Entity has already been defined to have memoryMB yet Run now uses these friendly names (almost) directly.
* Annotate function triggers with __endpoint property (#999) In addition to annotating function triggers with `__trigger` property, we add `__endpoint` annotation. This property will be used by the to-be-developed functions runtime to generate/declare deployment manifest that the CLI will use to deploy the function. There are lots of code duplication between the utility functions for annotating the `__trigger` and `__endpoint` properties. I didn't try to refactor the common code since I expect that we will favor `__endpoint` property in the future. * Add missing import. * More of annotate endpoint property for functions (#1009) Follows up #999 to annotate each funuctions with `__endpoint` property. Highlight of changes: * Extend unit test coverage for all v1 providers * Add `__endpoint` annotation to v1 task queue functions * Add `__requiredAPIs` annotation to task queue and scheduler functions * Explicitly set `__endpoint` to undefined in the handler namespace * No SDK-level label setting in the __endpoint annotation.
Follows up #999 to annotate each funuctions with
__endpoint
property.Highlight of changes:
__endpoint
annotation to v1 task queue functions__requiredAPIs
annotation to task queue and scheduler functions__endpoint
annotation to functions defined in the handler namespace, similar in style to the__trigger
annotation.One more follow up to expect: I'll move the responsibility of adding labels for callable/scheduled function (e.g.
deployment-callable
,deployment-scheduled
) from the SDK to the CLI soon.