Skip to content

Commit 2b05b0d

Browse files
kamal-devtronsystemsdtbhushan-nemade-dtpawan-mehta-dtakshatsinha007
authored
release: Devtron 2.0 Release (#6904)
* Updated release-notes files * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated release notes * Updated git-sensor to 07252d4f-200-37900 tag in values file * Updated dashboard to 870f6567-690-37899 tag in values file * Updated kubelink to d6692a4f-564-37901 tag in values file * Updated devtron to 24adc89-434-37898 tag in values file * Updated lens to d6692a4f-333-37903 tag in values file * Updated kubewatch to 9255d19e-419-37902 tag in values file * Updated ci-runner to d6692a4f-138-37904 tag in values file * Updated notifier to 61d34685-372-37905 tag in values file * Updated image-scanner to d6692a4f-141-37906 tag in values file * Updated chart-sync to d6692a4f-836-37907 tag in values file * Updated release notes * Updated release notes * Updated hyperion to f733a1d-280-38015 tag in values file * Updated devtron to f733a1d-434-38017 tag in values file * Updated dashboard to 4901765c-690-38018 tag in values file * Updated kubelink to b7fe1710-564-38019 tag in values file * Updated release notes * Updated release notes * Updated devtron to 8bfeec8-434-38055 tag in values file * Updated release notes * Updated release notes * Updated release notes * Updated chart-sync to 6b408df4-836-38155 tag in values file * Updated notifier to 5c4b5b3a-372-38153 tag in values file * Updated devtron to f0c18f2-434-38146 tag in values file * Updated hyperion to f0c18f2-280-38148 tag in values file * Updated image-scanner to 6b408df4-141-38158 tag in values file * Updated dashboard to 62e65ef2-690-38157 tag in values file * Updated kubelink to 6b408df4-564-38159 tag in values file * feat: release devtron 2.0 chart changes (#6903) * Updated ci-runner to 6b408df4-138-38163 tag in values file * Updated lens to 6b408df4-333-38167 tag in values file * Updated kubewatch to 6b408df4-419-38172 tag in values file * Updated git-sensor to 6b408df4-200-38174 tag in values file * Update Chart.yaml * changes in condition * updated the condition of finops module * changes in cost-sync * added finops migration * added finops migration * changes in migration * migrator config changes * migrator config changes * cost sync job * migrator changes * config changes * config changes * configmap changes * configmap changes * Updated the version in scripts * removed cloud native crd * Revise release notes for Devtron 2.0.0 Updated release notes for version 2.0.0, detailing enhancements, bug fixes, and other changes. * removal of cloudnative crds * changes in service name * Uncomment nodeSelector, tolerations, and imagePullSecrets * changes in timescale secret * changes in yaml * changes in yaml * changes in yaml * changes in yaml * Updated dashboard to b48d0910-690-38228 tag in values file * Update volume size reference in timescale-db.yaml * Move serviceAccountName to jobTemplate spec * Move serviceAccountName to pod spec * Adjust indentation for schedulerConfig in cost-sync-job.yaml Increased indentation for schedulerConfig inclusion in cost-sync-job.yaml. * removal of \n * changes in timescale yaml * Reorder configMapRef entries in cost-sync-job.yaml --------- Co-authored-by: systemsdt <[email protected]> Co-authored-by: Bhushan Nemade <[email protected]> Co-authored-by: Pawan Mehta <[email protected]> Co-authored-by: akshatsinha007 <[email protected]>
1 parent f0c18f2 commit 2b05b0d

19 files changed

+429
-52
lines changed

CHANGELOG/release-notes-v2.0.0.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## v2.0.0
2+
3+
## Enhancements
4+
- feat: Rollout 5.2.0 (#6889)
5+
- feat: Added support for tcp in virtual service and changed the apiVersion for externalSecrets (#6892)
6+
- feat: add helm_take_ownership and helm_redeployment_request columns to user_deployment_request table (#6888)
7+
- feat: Revamped Devtron UI with multiple dashboards (#6884)
8+
- feat: Added support to override container name (#6880)
9+
- feat: Increase max length for TeamRequest name field (#6876)
10+
- feat: Added namespace support for virtualService and destinationRule (#6868)
11+
- feat: feature flag for encryption (#6856)
12+
- feat: encryption for db credentials (#6852)
13+
## Bugs
14+
- fix: migrate proxy chart dependencies and refactor related functions (#6899)
15+
- fix: enhance validation and error handling in cluster update process (#6887)
16+
- fix: Invalid type casting error for custom charts (#6883)
17+
- fix: validation on team name (#6872)
18+
- fix: sql injection (#6861)
19+
- fix: user manager fix (#6854)
20+
## Others
21+
- misc: Add support for migrating plugin metadata to parent metadata (#6902)
22+
- misc: update UserDeploymentRequestWithAdditionalFields struct to include tableName for PostgreSQL compatibility (#6896)
23+
- chore: rename SQL migration files for consistency (#6885)
24+
- misc: Vc empty ns fix (#6871)
25+
- misc: added validation on create environment (#6859)
26+
- misc: migration unique constraint on mpc (#6851)
27+
- misc: helm app details API spec (#6850)
28+
- misc: api Spec Added for draft (#6849)
29+
- misc: api Specs added for lock config (#6847)
30+
31+

charts/devtron/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: devtron-operator
3-
appVersion: 1.8.2
3+
appVersion: 2.0.0
44
description: Chart to configure and install Devtron. Devtron is a Kubernetes Orchestration system.
55
keywords:
66
- Devtron
@@ -11,7 +11,7 @@ keywords:
1111
- argocd
1212
- Hyperion
1313
engine: gotpl
14-
version: 0.22.98
14+
version: 0.22.99
1515
sources:
1616
- https://github.com/devtron-labs/charts
1717
dependencies:

charts/devtron/devtron-bom.yaml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ global:
1515
PG_DATABASE: orchestrator
1616
extraManifests: []
1717
installer:
18-
release: "v1.8.2"
18+
release: "v2.0.0"
1919
registry: ""
2020
image: "inception"
2121
tag: "473deaa4-185-21582"
@@ -41,13 +41,13 @@ components:
4141
FEATURE_CODE_MIRROR_ENABLE: "true"
4242
FEATURE_GROUPED_APP_LIST_FILTERS_ENABLE: "true"
4343
registry: ""
44-
image: "dashboard:b00aa204-690-36533"
44+
image: "dashboard:b48d0910-690-38228"
4545
imagePullPolicy: IfNotPresent
4646
healthPort: 8080
4747
devtron:
4848
registry: ""
49-
image: "hyperion:261df88d-280-36531"
50-
cicdImage: "devtron:261df88d-434-36530"
49+
image: "hyperion:f0c18f20-280-38148"
50+
cicdImage: "devtron:f0c18f20-434-38146"
5151
imagePullPolicy: IfNotPresent
5252
customOverrides: {}
5353
podSecurityContext:
@@ -61,7 +61,7 @@ components:
6161
healthPort: 8080
6262
ciRunner:
6363
registry: ""
64-
image: "ci-runner:880420ac-138-36030"
64+
image: "ci-runner:6b408df4-138-38163"
6565
argocdDexServer:
6666
registry: ""
6767
image: "dex:v2.30.2"
@@ -70,7 +70,7 @@ components:
7070
authenticator: "authenticator:e414faff-393-13273"
7171
kubelink:
7272
registry: ""
73-
image: "kubelink:880420ac-564-36036"
73+
image: "kubelink:6b408df4-564-38159"
7474
imagePullPolicy: IfNotPresent
7575
configs:
7676
ENABLE_HELM_RELEASE_CACHE: "true"
@@ -93,10 +93,11 @@ components:
9393
healthPort: 50052
9494
kubewatch:
9595
registry: ""
96-
image: "kubewatch:880420ac-419-36026"
96+
image: "kubewatch:6b408df4-419-38172"
9797
imagePullPolicy: IfNotPresent
9898
healthPort: 8080
9999
configs:
100+
VELERO_INFORMER: "false"
100101
devtroncd_NAMESPACE: "devtron-ci"
101102
USE_CUSTOM_HTTP_TRANSPORT: "true"
102103
CI_INFORMER: "true"
@@ -117,7 +118,7 @@ components:
117118
image: postgres_exporter:v0.10.1
118119
gitsensor:
119120
registry: ""
120-
image: "git-sensor:b82f5fdb-200-36532"
121+
image: "git-sensor:6b408df4-200-38174"
121122
imagePullPolicy: IfNotPresent
122123
serviceMonitor:
123124
enabled: false
@@ -135,7 +136,7 @@ components:
135136
# Values for lens
136137
lens:
137138
registry: ""
138-
image: "lens:880420ac-333-36029"
139+
image: "lens:6b408df4-333-38167"
139140
imagePullPolicy: IfNotPresent
140141
configs:
141142
GIT_SENSOR_PROTOCOL: GRPC
@@ -170,7 +171,7 @@ components:
170171
entMigratorImage: "devtron-utils:geni-v1.1.4"
171172
chartSync:
172173
registry: ""
173-
image: chart-sync:880420ac-836-36037
174+
image: chart-sync:6b408df4-836-38155
174175
schedule: "0 19 * * *"
175176
podSecurityContext:
176177
fsGroup: 1001
@@ -208,7 +209,7 @@ workflowController:
208209
IMDSv1ExecutorImage: "argoexec:v3.0.7"
209210
security:
210211
imageScanner:
211-
image: "image-scanner:f21e02cb-141-34534"
212+
image: "image-scanner:6b408df4-141-38158"
212213
healthPort: 8080
213214
configs:
214215
TRIVY_DB_REPOSITORY: mirror.gcr.io/aquasec/trivy-db
@@ -219,7 +220,7 @@ security:
219220
tag: 4.3.6
220221
# Values for notifier integration
221222
notifier:
222-
image: "notifier:00f17215-372-36041"
223+
image: "notifier:5c4b5b3a-372-38153"
223224
healthPort: 3000
224225
minio:
225226
image: "minio:RELEASE.2021-02-14T04-01-33Z"
@@ -241,6 +242,15 @@ monitoring:
241242
imagePullPolicy: IfNotPresent
242243
devtronEnterprise:
243244
enabled: false
245+
finops:
246+
enabled: false
247+
costSync:
248+
image: "cost-sync:46ed7c67-1159-38183"
249+
schedule: "0 * * * *"
250+
timeZone: UTC
251+
timescale:
252+
image: "timescaledb-ha:pg18"
253+
volumeSize: 5Gi
244254
casbin:
245255
registry: ""
246256
image: "casbin:f6ff5f74-064b67e5-462-30822"

charts/devtron/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{- $liveCm := lookup "v1" "ConfigMap" "devtroncd" "devtron-custom-cm" }}
33
{{- $currentValue := pluck "POSTGRES_MIGRATED" $liveCm.data | first | default "" }}
44
{{- if ne $currentValue "14" }}
5-
{{- fail "Upgrade Failed Please ensure that you have completed the pre-requisites mentioned in https://docs.devtron.ai/upgrade/devtron-upgrade-1.5.0" }}
5+
{{- fail "Upgrade Failed Please ensure that you have completed the pre-requisites mentioned in https://docs.devtron.ai/docs/devtron/v1.7/setup/upgrade/devtron-upgrade-1.5.0" }}
66
{{- end }}
77
{{- end }}
88

charts/devtron/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ securityContext:
115115
securityContext:
116116
{{ toYaml .global.containerSecurityContext | indent 2 }}
117117
{{- end }}
118-
{{- end }}
118+
{{- end }}

charts/devtron/templates/configmap-secret.yaml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
{{- $DEX_CSTOREKEY := include "getOrGeneratePass" (dict "Namespace" "devtroncd" "Kind" "Secret" "Name" "devtron-secret" "Key" "DEX_CSTOREKEY") }}
99
{{- $postgresPwd := include "getOrGeneratePass" (dict "Namespace" "devtroncd" "Kind" "Secret" "Name" "postgresql-postgresql" "Key" "postgresql-password") }}
1010
{{- $WEBHOOK_TOKEN := include "getOrGeneratePass" (dict "Namespace" "devtroncd" "Kind" "Secret" "Name" "devtron-secret" "Key" "WEBHOOK_TOKEN") }}
11+
{{- $TIMESCALE_PASSWORD := include "getOrGeneratePass" (dict "Namespace" "devtroncd" "Kind" "Secret" "Name" "timescaledb-cluster-pg15-superuser" "Key" "password") }}
12+
1113
{{- if $.Values.installer.modules }}
1214
{{- if has "cicd" $.Values.installer.modules }}
1315
apiVersion: v1
@@ -230,8 +232,13 @@ kind: Secret
230232
data:
231233
{{- if and $.Values.global.externalPostgres $.Values.global.externalPostgres.enabled }}
232234
DB_PASSWORD: {{ $.Values.global.externalPostgres.PG_PASSWORD | b64enc }}
235+
PG_PASSWORD: {{ $.Values.global.externalPostgres.PG_PASSWORD | b64enc }}
233236
{{- else }}
234237
DB_PASSWORD: {{ $postgresPwd }}
238+
PG_PASSWORD: {{ $postgresPwd }}
239+
{{- end }}
240+
{{- if $.Values.devtronEnterprise.finops.enabled }}
241+
TIMESCALE_PASSWORD: {{ $TIMESCALE_PASSWORD }}
235242
{{- end }}
236243
metadata:
237244
name: postgresql-migrator
@@ -240,7 +247,7 @@ metadata:
240247
chart: postgresql-8.6.4
241248
release: "devtron"
242249
annotations:
243-
"helm.sh/hook": pre-install
250+
"helm.sh/hook": pre-install,pre-upgrade
244251
"helm.sh/hook-weight": "-4"
245252
"helm.sh/resource-policy": keep
246253
type: Opaque
@@ -282,6 +289,9 @@ metadata:
282289
"helm.sh/hook": pre-install, pre-upgrade
283290
data:
284291
ORCH_TOKEN: {{ $ORCH_TOKEN }}
292+
{{- if .Values.devtronEnterprise.finops.enabled}}
293+
TIMESCALE_PASSWORD: {{ $TIMESCALE_PASSWORD }}
294+
{{- end}}
285295
{{- if $.Values.installer.modules }}
286296
{{- if has "cicd" $.Values.installer.modules }}
287297
{{- if and ($.Values.minio.enabled) (not $.Values.configs.BLOB_STORAGE_PROVIDER) }}
@@ -402,4 +412,38 @@ metadata:
402412
annotations:
403413
"helm.sh/hook": pre-install
404414
{{- end }}
415+
{{- if $.Values.devtronEnterprise.finops.enabled }}
416+
---
417+
apiVersion: v1
418+
kind: Secret
419+
data:
420+
POSTGRES_USER: {{ "postgres" | b64enc }}
421+
POSTGRES_PASSWORD: {{ $TIMESCALE_PASSWORD }}
422+
POSTGRES_DB: {{ "finops" | b64enc }}
423+
metadata:
424+
name: timescaledb-secret
425+
namespace: devtroncd
426+
type: Opaque
427+
---
428+
apiVersion: v1
429+
data:
430+
JOB_INTERVAL_MINUTES: "60"
431+
LOG_LEVEL: info
432+
MAX_INTERVALS_PER_RUN: "6"
433+
PG_ADDR: {{ $.Values.global.dbConfig.PG_ADDR }}
434+
PG_DATABASE: {{ $.Values.global.dbConfig.PG_DATABASE }}
435+
PG_USER: {{ $.Values.global.dbConfig.PG_USER }}
436+
PROMETHEUS_DELAY_MINUTES: "5"
437+
TIMESCALE_ADDR: timescaledb-service.devtroncd
438+
TIMESCALE_DATABASE: finops
439+
TIMESCALE_HOST: timescaledb-service.devtroncd
440+
TIMESCALE_NAME: finops
441+
TIMESCALE_PORT: "5432"
442+
TIMESCALE_SSL_MODE: disable
443+
TIMESCALE_USER: postgres
444+
kind: ConfigMap
445+
metadata:
446+
name: cost-sync-cm
447+
namespace: devtroncd
448+
{{- end }}
405449
{{- end }}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{{- if and $.Values.devtronEnterprise.enabled $.Values.devtronEnterprise.finops.enabled }}
2+
{{- if $.Capabilities.APIVersions.Has "batch/v1/Job" }}
3+
apiVersion: batch/v1
4+
{{- else }}
5+
apiVersion: batch/v1beta1
6+
{{- end }}
7+
kind: CronJob
8+
metadata:
9+
name: cost-sync-job
10+
namespace: devtroncd
11+
spec:
12+
concurrencyPolicy: Allow
13+
failedJobsHistoryLimit: 1
14+
jobTemplate:
15+
spec:
16+
activeDeadlineSeconds: 3600
17+
template:
18+
metadata:
19+
labels:
20+
app: cost-sync-job
21+
spec:
22+
serviceAccountName: devtron-default-sa
23+
{{- include "common.schedulerConfig" (dict "nodeSelector" $.Values.devtronEnterprise.finops.nodeSelector "tolerations" $.Values.devtronEnterprise.finops.tolerations "imagePullSecrets" $.Values.devtronEnterprise.finops.imagePullSecrets "global" $.Values.global) | indent 10 }}
24+
{{- include "common.podSecurityContext" (dict "podSecurityContext" $.Values.devtronEnterprise.finops.podSecurityContext "global" $.Values.global) | indent 10 }}
25+
restartPolicy: OnFailure
26+
containers:
27+
- envFrom:
28+
- configMapRef:
29+
name: cost-sync-cm
30+
- secretRef:
31+
name: postgresql-migrator
32+
- configMapRef:
33+
name: devtron-common-cm
34+
image: {{ include "common.image" (dict "component" $.Values.devtronEnterprise.finops.costSync "global" $.Values.global ) }}
35+
imagePullPolicy: IfNotPresent
36+
name: cost-sync-job
37+
ports:
38+
- containerPort: 8080
39+
name: app
40+
protocol: TCP
41+
resources: {}
42+
terminationGracePeriodSeconds: 30
43+
schedule: {{ $.Values.devtronEnterprise.finops.costSync.schedule | quote }}
44+
startingDeadlineSeconds: 100
45+
successfulJobsHistoryLimit: 3
46+
suspend: false
47+
timeZone: {{ $.Values.devtronEnterprise.finops.costSync.timeZone }}
48+
{{- end }}

charts/devtron/templates/dashboard.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ metadata:
2020
data:
2121
{{- if $.Values.devtronEnterprise.enabled }}
2222
GATEKEEPER_URL: "https://license.devtron.ai/dashboard"
23+
FEATURE_STORAGE_ENABLE: "true"
24+
FEATURE_RESOURCE_WATCHER_ENABLE: "true"
25+
FEATURE_SOFTWARE_DISTRIBUTION_HUB_ENABLE: "true"
2326
{{- end }}
2427
{{- if .config }}
2528
GA_ENABLED: {{ .config.analytics | default "false" | quote }}

charts/devtron/templates/devtron-scc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ users:
3737
volumes:
3838
- '*'
3939
{{- end }}
40-
{{- end }}
40+
{{- end }}

charts/devtron/templates/devtron.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ data:
2525
SCOOP_CLUSTER_CONFIG: '{"1":{"serviceName":"scoop-service","passKey":"qhihdidhwid","namespace":"devtroncd","port":"80"}}'
2626
{{- end }}
2727
{{- if $.Values.devtronEnterprise.enabled }}
28+
TIMESCALE_ADDR: timescaledb-service.devtroncd
29+
TIMESCALE_DATABASE: finops
30+
TIMESCALE_USER: postgres
2831
CASBIN_CLIENT_URL: casbin-service.devtroncd:9000
2932
CD_WORKFLOW_EXECUTOR_TYPE: SYSTEM
3033
CI_WORKFLOW_EXECUTOR_TYPE: SYSTEM

0 commit comments

Comments
 (0)