openfaas / openfaas/faas

NATS streaming cluster id missing override environment variable

Open
#1,402 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

proposal
Dominant language
Go
Stars
26.2k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

Description

There is no way to change the name of the nats cluster id used for asynchronous invocation. Currently it expects the cluster id to be faas-cluster.

Note that the queue-worker does allow the cluster id to be overridden https://github.com/openfaas/nats-queue-worker/blob/dea1c90b8cc66dc73597b7531a4fd29a32b5f88c/readconfig.go#L42

Proposal

Add environment override to gateway default it to faas-cluster

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the gateway configuration and compare its cluster ID handling with readconfig.go in nats-queue-worker, which the issue links. Add a gateway environment override that defaults to faas-cluster, then verify the gateway uses the configured cluster ID for asynchronous invocation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.