-
Notifications
You must be signed in to change notification settings - Fork 70
Closed
Description
This issue refers to field eventFilters
under eventTrigger
of CloudFunction
type, referenced here:
deploy-cloud-functions/src/client.ts
Line 179 in 316d9c5
eventFilters?: { |
With the current implementation, there's no eventFilters
available to pass to the action to make it work with triggers other than Pub/Sub. Other triggers like GCS require specific filters in use in order to properly work when deploying using GEN_2
functions. This makes the action fail with an error like this:
"error": ***
"code": 400,
"message": "Validation failed for trigger projects/**project**/locations/**location**/triggers/******: The request was invalid: missing required attribute \"bucket\" in trigger.event_filters",
"status": "INVALID_ARGUMENT"
***
***
Is it possible to use the action to deploy a Gen2 function being triggered by a GCS bucket event like google.storage.object.finalize
or should we fall back to use gcloud deploy
instead?
Metadata
Metadata
Assignees
Labels
No labels