spinframework / spinframework/spin-operator

How to change default listening port for SpinApp?

Open
#326 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
289
Forks
34
PR merge metrics
No merged PRs in 30d

Description

It seems to me that the SPIN_HTTP_LISTEN_ADDR is hard-coded in the deployment.go (i.e. https://github.com/spinkube/spin-operator/blob/main/internal/controller/deployment.go#L121-L124). Suggest: maybe we should add port to SpinAppSpec to control what listening port the app is listening on?

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 with internal/controller/deployment.go at lines 121-124 and trace how SpinAppSpec is used when the deployment is built. Determine how a configurable port should flow from the SpinApp resource into the generated deployment, then verify that the resulting listening address uses the requested port.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes, wasm
Domain
infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.