Skip to content

Gen2 Functions event triggers filter is not available #416

@bhidalgo-apolitical

Description

@bhidalgo-apolitical

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy