-
Notifications
You must be signed in to change notification settings - Fork 7
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
Deleted variables from API remain in configmap #136
Comments
It should be possible to directly(or via msgqueue) patch the configmap when adding or deleting |
I like your idea @shreddedbacon, because then customers can still manually manipulate the |
This issue is impacting another large customer in APJ. |
As reported by a customer, if a user tries deleting and recreating environments as a workaround for this issue, it exposes another bug. When an environment is deleted, the environment variables are still seen with lagoon cli, but when a new deploy recreates the environment, variables are actually deleted. The user then needs to recreate the variables in time for the deployment that is already running. Steps to reproduce the behaviour:
|
This is a funky one. But as it has been deleted, when a new deployment starts, it will create an entirely new environment in the API making the old one no longer accessible by the same name (only by ID), and this will have no variables attached to it, even though the old one did. I'm not sure if this is related to this issue, or if its better raised as a new issue entirely, where we support adding variables to environments, before the environment is created. Or being able to pre-seed an environment, then deploy it afterwards. |
As a customer we're obviously experiencing this issue. Would be great to have this resolved - thanks, much appreciated! |
As we were discussing this, https://github.com/uselagoon/lagoon/pull/2348/files#diff-e77377f4b63b4a8a4d877d7a1adb7aa9cab7252db63dd9c3f43b64d5dc972408R1073 with the new implementation of this PR, when the |
@rocketeerbkw have you had a chance to work on this? |
Describe the bug
When deleting an environment variable from the API, it doesn't remove it from the
lagoon-env
configmap. This is a problem when using the existence of the variable to enable/disable a feature. LikeBASIC_AUTH_USERNAME
andBASIC_AUTH_PASSWORD
.To Reproduce
Steps to reproduce the behavior:
global|runtime
variable to the APIExpected behavior
Deleted API variables should be removed from the configmap
Impacted customers
At least 2 large customers in APJ are impacted by this.
The text was updated successfully, but these errors were encountered: