Skip to content

Gen2 Functions event triggers filter is not available #416

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

Closed
bhidalgo-apolitical opened this issue Jun 3, 2024 · 0 comments · Fixed by #417
Closed

Gen2 Functions event triggers filter is not available #416

bhidalgo-apolitical opened this issue Jun 3, 2024 · 0 comments · Fixed by #417

Comments

@bhidalgo-apolitical
Copy link

bhidalgo-apolitical commented Jun 3, 2024

This issue refers to field eventFilters under eventTrigger of CloudFunction type, referenced here:

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant