Make `lagoon list variables` return variables for all environments if required.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start at the lagoon list variables command entry point and reproduce both lagoon list variables -p some-project and the environment-specific form with -e master. Trace how project-level and environment-level variables are queried and rendered; done means no environment argument reports variables from all environments, labels project-level variables distinctly, and no longer errors when project-level variables are absent.
Written by the indexing model from the issue text.
Description
Currently, if you try to list variables for a project, you get only the variables that have been added on the project level. If no variables have been specified on the project level, you get this:
lagoon list variables -p some-project
Error: graphql: Cannot read property 'id' of undefined
(which means that there are no variables on the project level - see #105)
I just found that if you do specify -e, you might find that there are actually variables on the environment level:
lagoon list variables -p some-project -e master
ID PROJECT ENVIRONMENT SCOPE VARIABLENAME
1234 some-project master global CLAMAV_HOST
5678 some-project master global CLAMAV_MODE
There is a --all-projects flag, but there is no --all-environments one, which is what I would like to be the default. In other words, I would expect that when I specify no environment, then a report of all variables for all environments is returned; for the variables that have been defined on a project level, I would expect that to be denoted in the ENVIRONMENT column (something like ALL ENVs?)
- Dominant language
- Go
- Stars
- 28
- Forks
- 14
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from uselagoon/lagoon-cli
-
Nix flake Open
Difficulty 3/5 1-2 days Newbie friendliness 68/100
uselagoon/lagoon-cli#495 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
uselagoon/lagoon-cli#480 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
uselagoon/lagoon-cli#455 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
uselagoon/lagoon-cli#454 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
uselagoon/lagoon-cli#453 · 4 comments ·
All issues in uselagoon/lagoon-cli
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100