Skip to content

Commit ecfefd1

Browse files
marcelgoyaMarcel Goyajoehan
authored
Add ingress settings support (#815)
* Add IngressSettings support * Add IngressSettings support * Format Co-authored-by: Marcel Goya <[email protected]> Co-authored-by: joehan <[email protected]>
1 parent 2988a2b commit ecfefd1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/function-configuration.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ export const VPC_EGRESS_SETTINGS_OPTIONS = [
5454
'ALL_TRAFFIC',
5555
] as const;
5656

57+
/**
58+
* List of available options for IngressSettings.
59+
*/
60+
export const INGRESS_SETTINGS_OPTIONS = [
61+
'INGRESS_SETTINGS_UNSPECIFIED',
62+
'ALLOW_ALL',
63+
'ALLOW_INTERNAL_ONLY',
64+
'ALLOW_INTERNAL_AND_GCLB',
65+
] as const;
66+
5767
/**
5868
* Scheduler retry options. Applies only to scheduled functions.
5969
*/
@@ -111,6 +121,11 @@ export interface RuntimeOptions {
111121
* Egress settings for VPC connector
112122
*/
113123
vpcConnectorEgressSettings?: typeof VPC_EGRESS_SETTINGS_OPTIONS[number];
124+
125+
/**
126+
* Ingress settings
127+
*/
128+
ingressSettings?: typeof INGRESS_SETTINGS_OPTIONS[number];
114129
}
115130

116131
export interface DeploymentOptions extends RuntimeOptions {

0 commit comments

Comments
 (0)