Skip to content

Commit 261df88

Browse files
authored
Merge pull request #6841 from devtron-labs/fix/keda-autoscaling-deployment-chart
fix: clear cached reference charts for Deployment chart versions 4.18.0, 4.19.0, 1.0.0, and 1.1.0
2 parents 5eb6ee5 + 5767f9c commit 261df88

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--- No down migration required
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- There was an issue with Deployment chart versions 4.18.0, 4.19.0, 1.0.0, 1.1.0
2+
--- Which was fixed in PR https://github.com/devtron-labs/devtron/pull/5215/files
3+
--- But as we cache the reference chart in DB, we need to clear that cache for those charts
4+
UPDATE charts
5+
SET reference_chart = NULL
6+
WHERE id IN (
7+
SELECT charts.id FROM charts
8+
INNER JOIN chart_ref ON (charts.chart_ref_id = chart_ref.id)
9+
INNER JOIN app ON (charts.app_id = app.id AND app.active = true)
10+
WHERE charts.active = true
11+
AND chart_ref.version IN ('4.18.0', '4.19.0', '1.0.0', '1.1.0')
12+
AND chart_ref.name = 'Deployment'
13+
);

0 commit comments

Comments
 (0)