-
Notifications
You must be signed in to change notification settings - Fork 99
MGDAPI-5152 - remove duplicate FILE_UPLOAD_STORAGE env var #811
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? 8000 Sign in to your account
MGDAPI-5152 - remove duplicate FILE_UPLOAD_STORAGE env var #811
Conversation
Hi @adam-cattermole. Thanks for your PR. I'm waiting for a 3scale member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
I've just managed to test these changes for upgrade and whilst they work for fresh install it won't work on upgrade. The env vars aren't updated when reconciling the DCs when they exist with duplicates already. |
right! We need to clean the DC first. Does that mean that 3scale needs to be upgraded before upgrading OCP to 4.13? |
I'm unsure on this, as far as I can tell the existing replication controller continues to run fine, but any subsequent rollouts appear to fail. As long as the DC is corrected then a new rollout will be triggered that will fix it as far as I can tell. |
This is interesting @adam-cattermole. I would like to have progress on this issue. Let me know if you need advise to implement the upgrade procedure. I am more than happy to jump to a call and pair review it. |
44fc70b
to
28cd16a
Compare
28cd16a
to
afe7265
Compare
@eguzki Latest commit should fix and prevent duplicate env vars on upgrade for system and sidekiq if you can review whenever you get the chance 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏅
Pushed a commit to fix some typos from refactor |
…nfigRemoveDuplicateEnvVarMutator
Code Climate has analyzed commit bfcbd98 and detected 0 issues on this pull request. View more on Code Climate. |
🎖️ |
…e-env [Backport #811 MGDAPI-5152] remove duplicate env
FILE_UPLOAD_STORAGE
env var is added as part of the config map, and added separately after resulting in duplicate env vars on some DeploymentConfigs.On v4.11 when updating any of the deployment configs a new replication controller is created and there are warnings about a duplicate
FILE_UPLOAD_STORAGE
env var in the deploy logs. However on v4.13 these no longer show as warnings but as errors and the rollout is marked as failed. This duplicate env var is present as it is added from the base config map and then appended again.v4.11
v4.13
With the changes in this PR we no longer have the duplicate entry and the deployment config can be updated successfully on v4.13:
WIP as I have not verified the upgrade scenario