THREESCALE-15877: Fix File.exists? in a default system ConfigMap - #1190
THREESCALE-15877: Fix File.exists? in a default system ConfigMap#1190mdujava wants to merge 1 commit into
Conversation
With upgrade to Ruby 3.3, `File.exists` was deprecated. Reference: 3scale/porta#4129
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
borisurbanik
left a comment
There was a problem hiding this comment.
@mdujava the fix here LGTM for new installation
I had a look at the JIRA issue, it seems to come from alpha testing.
From another look at the reconciler - and when you update the "model" here - so on new deployment you will get the right configmap, but the reconciler is very specific for this system map and it only handles creating configmap where it doesn't exist, or updating Zync endpoint (see
3scale-operator/pkg/3scale/amp/operator/system_reconciler.go
Lines 543 to 592 in 18b6909
I can approve this change to unblock testing - but it would be ideal to address also the upgrade path in the same PR.
Do you think its safe to update this automatically or would we require manual step instead? |
This file looks like it's a template that needs to be filled out by customers to make it fully work - does our test fixture do any modifications to it after deployment / would that form normally work even without customers setting up client_id/secret for example? Could you test whether the functionality changes for customers that have the default configmap who never edited it? The docs on this instruct customers go generate a configuration file that doesn't have any of this so I'd say manual note should be sufficient. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1190 +/- ##
==========================================
+ Coverage 44.03% 44.65% +0.62%
==========================================
Files 204 208 +4
Lines 20960 21235 +275
==========================================
+ Hits 9230 9483 +253
- Misses 10933 10952 +19
- Partials 797 800 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
With upgrade to Ruby 3.3,
File.existswas deprecated.Reference: 3scale/porta#4129