-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support unset/empty environment variables via graphql #3208
Comments
There is already a bug uselagoon/build-deploy-tool#136 in which deleting a variable from the Lagoon API, it is not cleaned up from the configmap, this is part of the issue. Normally this has been done the opposite way, people set these variables in the API and then remove them from the environment when required. You're doing it the opposite way, which to me The docs show the hierarchy of variables, so the empty value in the API should be made available in the pod if you're using the
One concern would be that setting the value to empty may not solve this for all cases, and if we were to implement some sort of |
@tnelson-doghouse I released lagoon-cli v0.13.0 which allows for empty variables to be set in the API now. Will leave this open though to discuss the |
A combintaion of allowing '' and the CLI/UI updates should resolve this more easily |
Great, thanks! Just so I have a clear picture of what's going on:
I'm currently happy either way, but just wanted to be sure where we're at. |
Yes We're working on fixing the bug in Lagoon that deletes removed variables from the configmap, but there is still some work on that front. As for |
Only to override variables from the codebase to not exist in Lagoon, but not a high priority at all. Setting them as blank should be sufficient in most cases :) . |
Right, that was in case you had something in a |
Yes, but it's not something I've seen a need for since I submitted the original ticket, so nice to have, but not at all a high priority. |
Is your feature request related to a problem? Please describe.
We sometimes (currently for testing purposes) want to override an environment variable from the codebase with an empty OR unset value (eg. to temporarily turn off basic auth).
Describe the solution you'd like
I'd like the Lagoon API to support unsetting environment variables (with the assumption that this would also become available via the lagoon-cli, where
--value ''
would set the empty value, and maybe--unset
would unset the value, but that's a separate issue).In discussions with Ben Jackson surrounding this, it seems like, if we also made the unsetting of environment variables also delete the configmap entry, that would solve problems for some other people.
Describe alternatives you've considered
The current workaround is to unset these in the codebase.
The text was updated successfully, but these errors were encountered: