Skip to content

Commit

Permalink
added a new ref-chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Badal Kumar Prusty authored and Badal Kumar Prusty committed Sep 14, 2023
1 parent 3847dc2 commit 93942fb
Show file tree
Hide file tree
Showing 35 changed files with 6,092 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/169_statefulset-chart_5-0-0.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DELETE FROM global_strategy_metadata_chart_ref_mapping WHERE chart_ref_id=(select id from chart_ref where version='5.0.0' and name is null);

DELETE FROM "public"."chart_ref" WHERE ("location" = 'statefulset-chart_5-0-0' AND "version" = '5.0.0');

UPDATE "public"."chart_ref" SET "is_default" = 't' WHERE "location" = 'statefulset-chart_4-18-0' AND "version" = '4.18.0';
7 changes: 7 additions & 0 deletions scripts/169_statefulset-chart_5-0-0.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
INSERT INTO "public"."chart_ref" ("location", "version","deployment_strategy_path", "is_default", "active", "created_on", "created_by", "updated_on", "updated_by","name") VALUES
('statefulset-chart_5-0-0', '5.0.0','pipeline-values.yaml', 'f', 't', 'now()', 1, 'now()', 1,'StatefulSet');

INSERT INTO global_strategy_metadata_chart_ref_mapping ("global_strategy_metadata_id","chart_ref_id", "active","default","created_on", "created_by", "updated_on", "updated_by") VALUES
((select id from global_strategy_metadata where name='ROLLINGUPDATE') ,(select id from chart_ref where location='statefulset-chart_5-0-0'), true,true,now(), 1, now(), 1),
((select id from global_strategy_metadata where name='ONDELETE') ,(select id from chart_ref where location='statefulset-chart_5-0-0'), true, false,now(), 1, now(), 1);

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"server":{"deployment":{"image_tag":"{{.Tag}}","image":"{{.Name}}"}},"pipelineName": "{{.PipelineName}}","releaseVersion":"{{.ReleaseVersion}}","deploymentType": "{{.DeploymentType}}", "app": "{{.App}}", "env": "{{.Env}}", "appMetrics": {{.AppMetrics}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Kubernetes (StatefulSet)
name: statefulset-chart_5-0-0
version: 5.0.0

0 comments on commit 93942fb

Please sign in to comment.