Skip to content

Commit 69fd14b

Browse files
fix: removed extra condition in ref-chart 4.18 (#3586)
* Fixed for envFrom condition * Made deployment chart as default chart.
1 parent 032f5fc commit 69fd14b

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

scripts/devtron-reference-helm-charts/deployment-chart_4-18-0/templates/deployment.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ spec:
318318
envFrom:
319319
{{- if .Values.ConfigMaps.enabled }}
320320
{{- range .Values.ConfigMaps.maps }}
321-
{{- if and .name .type .external }}
322321
{{- if eq .type "environment" }}
323322
- configMapRef:
324323
{{- if eq .external true }}
@@ -329,10 +328,8 @@ spec:
329328
{{- end }}
330329
{{- end }}
331330
{{- end }}
332-
{{- end }}
333331
{{- if .Values.ConfigSecrets.enabled }}
334332
{{- range .Values.ConfigSecrets.secrets }}
335-
{{- if and .name .type .external }}
336333
{{- if eq .type "environment" }}
337334
- secretRef:
338335
{{if eq .external true}}
@@ -344,7 +341,6 @@ spec:
344341
{{- end }}
345342
{{- end }}
346343
{{- end }}
347-
{{- end }}
348344

349345
{{- if or $.Values.LivenessProbe.Path $.Values.LivenessProbe.command $.Values.LivenessProbe.tcp }}
350346
livenessProbe:

scripts/devtron-reference-helm-charts/reference-chart_4-18-0/templates/deployment.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ spec:
320320
envFrom:
321321
{{- if .Values.ConfigMaps.enabled }}
322322
{{- range .Values.ConfigMaps.maps }}
323-
{{- if and .name .type .external }}
324323
{{- if eq .type "environment" }}
325324
- configMapRef:
326325
{{- if eq .external true }}
@@ -331,10 +330,8 @@ spec:
331330
{{- end }}
332331
{{- end }}
333332
{{- end }}
334-
{{- end }}
335333
{{- if .Values.ConfigSecrets.enabled }}
336334
{{- range .Values.ConfigSecrets.secrets }}
337-
{{- if and .name .type .external }}
338335
{{- if eq .type "environment" }}
339336
- secretRef:
340337
{{if eq .external true}}
@@ -346,7 +343,6 @@ spec:
346343
{{- end }}
347344
{{- end }}
348345
{{- end }}
349-
{{- end }}
350346

351347
{{- if or $.Values.LivenessProbe.Path $.Values.LivenessProbe.command $.Values.LivenessProbe.tcp }}
352348
livenessProbe:

scripts/sql/152_deployment_chart_ref_4-18-0.up.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
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
2-
('Deployment','deployment-chart_4-18-0', '4.18.0','pipeline-values.yaml','f', 't', 'now()', 1, 'now()', 1);
3+
('Deployment','deployment-chart_4-18-0', '4.18.0','pipeline-values.yaml','t', 't', 'now()', 1, 'now()', 1);
34

45
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")
56
VALUES (1,(select id from chart_ref where version='4.18.0' and name='Deployment'), true, now(), 1, now(), 1,true),

scripts/sql/153_chart_ref_4-18.up.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
UPDATE chart_ref SET is_default=false;
21
INSERT INTO "public"."chart_ref" ("location", "version","deployment_strategy_path", "is_default", "active", "created_on", "created_by", "updated_on", "updated_by") VALUES
3-
('reference-chart_4-18-0', '4.18.0','pipeline-values.yaml', 't', 't', 'now()', 1, 'now()', 1);
2+
('reference-chart_4-18-0', '4.18.0','pipeline-values.yaml', 'f', 't', 'now()', 1, 'now()', 1);
43

54

65
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")

0 commit comments

Comments
 (0)