Skip to content

decision(storage-resize-images): kit/extension parity – event source is per function, not per instance #3272

Open

Description

@IzaakGough

storage-resize-images kit/extension parity. Priority: low. A subscriber that filters on the extension's source receives nothing from the kit.

Difference

  • Extension: source is //firebaseextensions.googleapis.com/extensions/projects/<project>/instances/<instance>.
  • Kit: source is projects/<project>/locations/<region>/services/kit-<instance>-generateResizedImage.

On a shared channel, source is the only attribute that tells instances apart.

Reproduced

Captured from both sides on the default channel with a run-scoped subscriber function; every kit event had the service-based source.

Code

  • Kit: no source is set, so the Eventarc client's default is used (events.ts#L27-L49).

Resolution

Two options:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    decisionNeeds a decision before work can proceedkitsparity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions