Skip to content

Commit 7aa6b70

Browse files
dheethprakarsh-dt
andauthored
[enhancement] Ability to start using devtron with devtron2.0 first in any mode (#1735)
* Updated chart version * Updated values.yaml * Added supported for cicd module image * Changes for modules and devtron2.0 upgrades * Updated new changes * Allowed common installation for all cases * fixed indentation * Updated image vars in devtron.yaml * Updated devtron cicdImage in devtron-bom * Removed conditons from cm and secrets * Updated devtron installation image conditions * Added minReadySeconds for devtron and dex * Update devtron.yaml * Update dex.yaml * Update Chart.yaml Co-authored-by: Prakarsh <[email protected]>
1 parent fc8e00f commit 7aa6b70

File tree

8 files changed

+45
-18
lines changed

8 files changed

+45
-18
lines changed

charts/devtron/devtron-bom.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ components:
88
image: "quay.io/devtron/dashboard:c8b8d431-240-8868"
99
devtron:
1010
image: "quay.io/devtron/hyperion:3d41b121-280-8899"
11+
cicdImage: "quay.io/devtron/devtron:3d41b121-324-8898"
1112
argocdDexServer:
1213
image: "quay.io/dexidp/dex:v2.25.0"
1314
kubelink:

charts/devtron/templates/argocd-secret.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if not .Values.installer.modules }}
21
apiVersion: v1
32
kind: Secret
43
metadata:
@@ -48,5 +47,4 @@ data:
4847
url: https://kubernetes-sigs.github.io/metrics-server
4948
- name: autoscaler
5049
type: helm
51-
url: https://kubernetes.github.io/autoscaler
52-
{{- end }}
50+
url: https://kubernetes.github.io/autoscaler

charts/devtron/templates/devtron.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if not .Values.installer.modules }}
21
{{- with .Values.components.devtron }}
32
---
43
apiVersion: v1
@@ -35,7 +34,12 @@ spec:
3534
app: devtron
3635
release: devtron
3736
replicas: 1
37+
{{- if $.Release.IsUpgrade }}
38+
minReadySeconds: 700
39+
progressDeadlineSeconds: 800
40+
{{- else }}
3841
minReadySeconds: 60
42+
{{- end }}
3943
template:
4044
metadata:
4145
labels:
@@ -47,7 +51,17 @@ spec:
4751
serviceAccountName: devtron
4852
containers:
4953
- name: devtron
50-
image: {{ .image }}
54+
{{- if $.Values.installer.modules }}
55+
{{ range $.Values.installer.modules }}
56+
{{- if and (eq . "cicd") ($.Release.IsUpgrade) }}
57+
image: {{ $.Values.components.devtron.cicdImage }}
58+
{{- else }}
59+
image: {{ $.Values.components.devtron.image }}
60+
{{- end }}
61+
{{- end }}
62+
{{- else }}
63+
image: {{ $.Values.components.devtron.image }}
64+
{{- end }}
5165
imagePullPolicy: {{ .imagePullPolicy }}
5266
ports:
5367
- name: devtron
@@ -90,4 +104,3 @@ spec:
90104
app: devtron
91105
{{- end }}
92106
{{- end }}
93-
{{- end }}

charts/devtron/templates/dex.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if not .Values.installer.modules }}
21
{{- with .Values.components.argocdDexServer }}
32
apiVersion: v1
43
kind: Service
@@ -41,6 +40,12 @@ spec:
4140
selector:
4241
matchLabels:
4342
app.kubernetes.io/name: argocd-dex-server
43+
{{- if $.Release.IsUpgrade }}
44+
minReadySeconds: 700
45+
progressDeadlineSeconds: 800
46+
{{- else }}
47+
minReadySeconds: 60
48+
{{- end }}
4449
template:
4550
metadata:
4651
labels:
@@ -57,7 +62,11 @@ spec:
5762
weight: 5
5863
containers:
5964
- command:
65+
{{- if and $.Values.installer.modules $.Release.IsUpgrade }}
66+
- /shared/argocd-util
67+
{{- else }}
6068
- /shared/authenticator
69+
{{- end }}
6170
- rundex
6271
image: {{ .image }}
6372
imagePullPolicy: {{ .imagePullPolicy }}
@@ -73,9 +82,17 @@ spec:
7382
- command:
7483
- cp
7584
- -n
85+
{{- if and $.Values.installer.modules $.Release.IsUpgrade }}
86+
- /usr/local/bin/argocd-util
87+
{{- else }}
7688
- /authenticator
89+
{{- end }}
7790
- /shared
78-
image: quay.io/devtron/authenticator:415f5470-279-6520
91+
{{- if and $.Values.installer.modules $.Release.IsUpgrade }}
92+
image: {{ .cicdAuthenticator }}
93+
{{- else }}
94+
image: {{ .authenticator }}
95+
{{- end }}
7996
imagePullPolicy: IfNotPresent
8097
name: copyutil
8198
volumeMounts:
@@ -139,4 +156,3 @@ subjects:
139156
- kind: ServiceAccount
140157
name: argocd-dex-server
141158
{{- end }}
142-
{{- end }}

charts/devtron/templates/migrator.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if not .Values.installer.modules }}
21
{{- with .Values.components.migrator }}
32
---
43
apiVersion: batch/v1
@@ -89,4 +88,3 @@ spec:
8988
backoffLimit: 20
9089
activeDeadlineSeconds: 1500
9190
{{- end }}
92-
{{- end }}

charts/devtron/templates/postgresql.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if not .Values.installer.modules }}
21
{{- with .Values.components.postgres }}
32
apiVersion: v1
43
kind: Secret
@@ -66,7 +65,7 @@ data:
6665
create database casbin;
6766
create database git_sensor;
6867
create database lens;
69-
create database clair;
68+
create database clairv4;
7069
---
7170
apiVersion: v1
7271
kind: Service
@@ -213,6 +212,8 @@ spec:
213212
value: "orchestrator"
214213
- name: POSTGRESQL_ENABLE_LDAP
215214
value: "no"
215+
- name: POSTGRESQL_SHARED_PRELOAD_LIBRARIES
216+
value: pgaudit, uuid-ossp
216217
ports:
217218
- name: tcp-postgresql
218219
containerPort: 5432
@@ -302,4 +303,3 @@ spec:
302303
requests:
303304
storage: {{ .persistence.volumeSize }}
304305
{{- end }}
305-
{{- end }}

charts/devtron/templates/rbac.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if not .Values.installer.modules }}
21
apiVersion: v1
32
kind: ServiceAccount
43
metadata:
@@ -42,5 +41,4 @@ roleRef:
4241
subjects:
4342
- kind: ServiceAccount
4443
name: devtron
45-
namespace: devtroncd
46-
{{- end }}
44+
namespace: devtroncd

charts/devtron/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ components:
4848

4949
devtron:
5050
image: "quay.io/devtron/hyperion:3d41b121-280-8899"
51+
cicdImage: "quay.io/devtron/devtron:3d41b121-324-8898"
5152
imagePullPolicy: IfNotPresent
5253
serviceMonitor:
5354
enabled: false
@@ -72,8 +73,10 @@ components:
7273
# - devtron.example.com
7374

7475
argocdDexServer:
75-
image: quay.io/dexidp/dex:v2.25.0
76+
image: "quay.io/dexidp/dex:v2.25.0"
7677
imagePullPolicy: IfNotPresent
78+
authenticator: "quay.io/devtron/authenticator:415f5470-279-6520"
79+
cicdAuthenticator: "quay.io/argoproj/argocd:v1.8.1"
7780

7881
kubelink:
7982
image: "quay.io/devtron/kubelink:d691bfbb-318-8695"

0 commit comments

Comments
 (0)