Environment variables passed via -e flag not applied on deploy
- Dominant language
- Go
- Stars
- 365
- Forks
- 223
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 25
Description
Environment variables passed with `func deploy -e KEY=VALUE` are not
included in the deployed service spec. They work correctly with
`func run -e`, but on deploy the env vars are missing from the
container spec.
Expected: `-e MYVAR=value` on deploy sets the env var in the Knative
service container spec, the same way it does for local runs.
Related: [SRVOCF-650](https://redhat.atlassian.net/browse/SRVOCF-650)
Contributor guide
Research direction
Start with the `func deploy -e KEY=VALUE` path and compare it with the existing `func run -e` handling. Trace where deployment builds the Knative service container spec; done means deploy includes the supplied environment variables in that spec, matching local-run behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100