Skip to content

Commit 04d4a1b

Browse files
arushi09-hubArushi Shukla
andauthored
Added & tested new chart repos , updated backofflimit in migrator.yaml (#748)
* added sql migrations * sql migration for new chart repos * sql migrations for new chart repos * sql migrations for new chart repos * sql migrations added for new chart repos * sql migrations for chart repos * new sql migrations added * new migrations added for chart repos * updated code for main repo * backofflimit updated in migrator.yaml Co-authored-by: Arushi Shukla <[email protected]>
1 parent 2ae03a7 commit 04d4a1b

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

manifests/installation-script

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,23 @@ helmRepo = `- name: incubator
363363
url: https://devtron-charts.s3.us-east-2.amazonaws.com/charts
364364
- name: stable
365365
type: helm
366-
url: https://charts.helm.sh/stable`;
366+
url: https://charts.helm.sh/stable
367+
- name: nginx-ingress
368+
type: helm
369+
url: https://kubernetes.github.io/ingress-nginx
370+
- name: elastic
371+
type: helm
372+
url: https://helm.elastic.co
373+
- name: bitnami
374+
type: helm
375+
url: https://charts.bitnami.com/bitnami
376+
- name: prometheus-community
377+
type: helm
378+
url: https://prometheus-community.github.io/helm-charts
379+
- name: jetstack
380+
type: helm
381+
url: https://charts.jetstack.io`;
382+
367383

368384
kubeYamlEdit(argocd, `data.repositories`, helmRepo, `/ConfigMap//argocd-cm` );
369385
#kubeYamlEdit(argocd, "data.url", baseURLScheme + "://" + baseURL, `/ConfigMap//argocd-cm`);

manifests/yamls/migrator.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ spec:
4545
- secretRef:
4646
name: postgresql-migrator
4747
restartPolicy: OnFailure
48-
backoffLimit: 10
48+
backoffLimit: 20
4949
activeDeadlineSeconds: 1500
5050
---
5151
apiVersion: batch/v1
@@ -83,7 +83,7 @@ spec:
8383
- secretRef:
8484
name: postgresql-migrator
8585
restartPolicy: OnFailure
86-
backoffLimit: 1
86+
backoffLimit: 20
8787
activeDeadlineSeconds: 1500
8888
---
8989
apiVersion: batch/v1
@@ -121,7 +121,7 @@ spec:
121121
- secretRef:
122122
name: postgresql-migrator
123123
restartPolicy: OnFailure
124-
backoffLimit: 1
124+
backoffLimit: 20
125125
activeDeadlineSeconds: 1500
126126
---
127127
apiVersion: batch/v1
@@ -159,7 +159,7 @@ spec:
159159
- secretRef:
160160
name: postgresql-migrator
161161
restartPolicy: OnFailure
162-
backoffLimit: 1
162+
backoffLimit: 20
163163
activeDeadlineSeconds: 1500
164164
---
165165
apiVersion: batch/v1beta1

scripts/sql/1_insert.up.sql

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5431,7 +5431,12 @@ INSERT INTO "public"."chart_repo" ("id", "name", "url", "is_default", "active",
54315431
('1', 'default-chartmuseum', 'http://devtron-chartmuseum.devtroncd:8080/', 't', 't', 'now()', '1', 'now()', '1', 'f'),
54325432
('2', 'stable', 'https://charts.helm.sh/stable', 'f', 't', 'now()', '1', 'now()', '1', 't'),
54335433
('3', 'incubator', 'https://charts.helm.sh/incubator', 'f', 't', 'now()', '1', 'now()', '1', 't'),
5434-
('4', 'devtron-charts', 'https://devtron-charts.s3.us-east-2.amazonaws.com/charts', 'f', 't', 'now()', '1', 'now()', '1', 't');
5434+
('4', 'devtron-charts', 'https://devtron-charts.s3.us-east-2.amazonaws.com/charts', 'f', 't', 'now()', '1', 'now()', '1', 't'),
5435+
('5', 'nginx-ingress', 'https://kubernetes.github.io/ingress-nginx', 'f', 't', 'now()', '1', 'now()', '1', 't'),
5436+
('6', 'elastic', 'https://helm.elastic.co', 'f', 't', 'now()', '1', 'now()', '1', 't'),
5437+
('7', 'bitnami', 'https://charts.bitnami.com/bitnami', 'f', 't', 'now()', '1', 'now()', '1', 't'),
5438+
('8', 'prometheus-community', 'https://prometheus-community.github.io/helm-charts', 'f', 't', 'now()', '1', 'now()', '1', 't'),
5439+
('9', 'jetstack', 'https://charts.jetstack.io', 'f', 't', 'now()', '1', 'now()', '1', 't');
54355440

54365441
INSERT INTO "public"."cluster" ("id", "cluster_name", "active", "created_on", "created_by", "updated_on", "updated_by", "server_url", "config", "prometheus_endpoint", "cd_argo_setup", "p_username", "p_password", "p_tls_client_cert", "p_tls_client_key") VALUES
54375442
('1', 'default_cluster', 't', 'now()', '1', 'now()', '1', 'https://kubernetes.default.svc', '{}', NULL, 'f', NULL, NULL, NULL, NULL);

0 commit comments

Comments
 (0)