Skip to content

Commit 96f4119

Browse files
committed
set rollout chart default to deployment
1 parent 15678f2 commit 96f4119

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
UPDATE chart_ref SET is_default=false;
2-
INSERT INTO "public"."chart_ref" ("name","location", "version", "deployment_strategy_path","is_default", "active", "created_on", "created_by", "updated_on", "updated_by") VALUES
3-
('Deployment','deployment-chart_4-22-0', '4.22.0','pipeline-values.yaml','t', 't', 'now()', 1, 'now()', 1);
4-
5-
INSERT INTO global_strategy_metadata_chart_ref_mapping ("global_strategy_metadata_id", "chart_ref_id", "active", "created_on", "created_by", "updated_on", "updated_by","default")
6-
VALUES (1,(select id from chart_ref where version='4.22.0' and name='Deployment'), true, now(), 1, now(), 1,true),
7-
(4,(select id from chart_ref where version='4.22.0' and name='Deployment'), true, now(), 1, now(), 1,false);
8-
91
UPDATE chart_ref SET is_default=false;
102
INSERT INTO "public"."chart_ref" ("name","location", "version", "deployment_strategy_path","is_default", "active", "created_on", "created_by", "updated_on", "updated_by") VALUES
113
('Rollout Deployment','reference-chart_5-2-0', '5.2.0','pipeline-values.yaml','t', 't', 'now()', 1, 'now()', 1);
@@ -15,3 +7,12 @@ VALUES (1,(select id from chart_ref where version='5.2.0' and name='Rollout Depl
157
(2,(select id from chart_ref where version='5.2.0' and name='Rollout Deployment'), true, now(), 1, now(), 1,false),
168
(3,(select id from chart_ref where version='5.2.0' and name='Rollout Deployment'), true, now(), 1, now(), 1,false),
179
(4,(select id from chart_ref where version='5.2.0' and name='Rollout Deployment'), true, now(), 1, now(), 1,false);
10+
11+
UPDATE chart_ref SET is_default=false;
12+
INSERT INTO "public"."chart_ref" ("name","location", "version", "deployment_strategy_path","is_default", "active", "created_on", "created_by", "updated_on", "updated_by") VALUES
13+
('Deployment','deployment-chart_4-22-0', '4.22.0','pipeline-values.yaml','t', 't', 'now()', 1, 'now()', 1);
14+
15+
INSERT INTO global_strategy_metadata_chart_ref_mapping ("global_strategy_metadata_id", "chart_ref_id", "active", "created_on", "created_by", "updated_on", "updated_by","default")
16+
VALUES (1,(select id from chart_ref where version='4.22.0' and name='Deployment'), true, now(), 1, now(), 1,true),
17+
(4,(select id from chart_ref where version='4.22.0' and name='Deployment'), true, now(), 1, now(), 1,false);
18+

0 commit comments

Comments
 (0)