-
Notifications
You must be signed in to change notification settings - Fork 149
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
Add a new configmap for variables from the Lagoon API only #2348
Conversation
…ment variables when remove from the lagoon-api
This will still leave API variables that are currently defined in the |
This approach seems good, I just wanted to note that I think the |
Updated my comment. I wasn't sure if it was alphabetical or order. Good to know. |
I like the overall idea but I think we have to improve the way we do this, I see one risk here: So a first idea I had was to create a new configmap every time (add a hash suffix), which basically means we don't touch the old configmap and create a new one, if the creation of the new one fails for any reason, it will not cause any issues with the running pods. I know this is a bit more complex than the current solution but I'm really worried we could end up in a situation where running pods are suddenly broken. |
…hat shouldnt exist in the configmap instead
I came up with a different way. Using This way the configmap doesn't get nuked entirely unless there are no environment variables in the API. |
I like this approach - it's currently difficult knowing which variables are being brought in from where, and having a configmap for them would aid in debugging the current state (along with #2375) |
to be handled in https://github.com/uselagoon/build-deploy-tool |
Checklist
This adds a new configmap called
lagoon-api-vars
that will store any variables from the Lagoon API only.This will allow for variables to be added and removed from the Lagoon API and actually be removed from the configmap, and since it is added after
lagoon-env
anything inside of it will override anything else once loaded in a running pod/container.Any variables that are added to the normal
lagoon-env
will persist like normal.Closing issues
closes uselagoon/build-deploy-tool#136