Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/devtron/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords:
- argocd
- Hyperion
engine: gotpl
version: 0.22.87
version: 0.22.88
sources:
- https://github.com/devtron-labs/charts
dependencies:
Expand Down
12 changes: 9 additions & 3 deletions charts/devtron/templates/configmap-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ metadata:
data:
{{- if $.Values.configs }}
{{ toYaml $.Values.configs | indent 2 }}
{{- end }}
{{- if $.Values.devtronEnterprise.enabled }}
DEVTRON_INSTALLATION_TYPE: "enterprise"
{{- end }}
INSTALLATION_THROUGH_HELM: "True"
DEVTRON_HELM_RELEASE_NAME: {{ $.Release.Name }}
DEVTRON_HELM_RELEASE_NAMESPACE: {{ $.Release.Namespace }}
{{- if and ($.Values.minio.enabled) (not $.Values.configs.BLOB_STORAGE_PROVIDER) }}
BLOB_STORAGE_PROVIDER: "S3"
BLOB_STORAGE_S3_ENDPOINT: "http://devtron-minio.devtroncd:9000"
Expand Down Expand Up @@ -302,7 +306,8 @@ metadata:
data:
{{- if $.Values.global.configs }}
{{- toYaml $.Values.global.configs | nindent 2 }}
{{- end }}
{{- end }}
{{- if not $.Values.devtronEnterprise.enabled }}
---
apiVersion: v1
kind: ConfigMap
Expand All @@ -317,7 +322,7 @@ data:
{{- if $.Values.global.configs }}
{{- toYaml $.Values.global.configs | nindent 2 }}
{{- end }}

{{- end }}
{{- if $.Values.imagePullSecret }}
{{- if $.Values.imagePullSecret.create }}
---
Expand Down Expand Up @@ -356,7 +361,7 @@ metadata:
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: {{ include "imagePullSecret" . }}

{{- if not $.Values.devtronEnterprise.enabled }}
---
apiVersion: v1
kind: Secret
Expand All @@ -371,3 +376,4 @@ data:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/devtron/templates/dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ metadata:
annotations:
"helm.sh/resource-policy": keep
data:
{{- if $.Values.devtronEnterprise.enabled }}
GATEKEEPER_URL: "https://license.devtron.ai/dashboard"
{{- end }}
{{- if .config }}
GA_ENABLED: {{ .config.analytics | default "false" | quote }}
HOTJAR_ENABLED: {{ .config.hotjar | default "false" | quote }}
Expand Down
4 changes: 4 additions & 0 deletions charts/devtron/templates/devtron-installer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ metadata:
name: installer-devtron
namespace: devtroncd
spec:
{{- if $.Values.devtronEnterprise.enabled }}
url: https://raw.githubusercontent.com/{{ $.Values.installer.repo }}/refs/tags/devtron-enterprise-{{ $.Values.installer.release }}/charts/devtron-enterprise/installation-script
{{- else }}
{{- if or (eq $.Values.installer.source "gitee") (eq $.Values.installer.source "Gitee")}}
url: https://gitee.com/{{ $.Values.installer.repo }}/raw/{{ $.Values.installer.release }}/manifests/installation-script
{{- else }}
url: https://raw.githubusercontent.com/{{ $.Values.installer.repo }}/{{ $.Values.installer.release }}/manifests/installation-script
{{- end }}
{{- end }}
reSync: true
{{- end }}
{{- end }}
Expand Down
9 changes: 8 additions & 1 deletion charts/devtron/templates/devtron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ data:
DEVTRON_HELM_RELEASE_NAMESPACE: {{ $.Release.Namespace }}
FEATURE_MIGRATE_ARGOCD_APPLICATION_ENABLE: "true"
PG_USER: postgres
{{- if not $.Values.devtronEnterprise.enabled }}
PG_ADDR: postgresql-postgresql.devtroncd
{{- end }}
PG_PORT: "5432"
HELM_CLIENT_URL: kubelink-service:50051
DASHBOARD_PORT: "80"
Expand All @@ -28,6 +30,11 @@ data:
{{- end }}
{{- if $.Values.devtronEnterprise.enabled }}
CASBIN_CLIENT_URL: casbin-service.devtroncd:9000
CD_WORKFLOW_EXECUTOR_TYPE: SYSTEM
CI_WORKFLOW_EXECUTOR_TYPE: SYSTEM
DEVTRON_INSTALLATION_TYPE: enterprise
DEVTRON_VERSION_IDENTIFIER_IN_HELM_VALUES: "devtron.installer.release"
DEVTRON_BOM_URL: https://github.com/devtron-labs/charts/blob/devtron-enterprise-%s/charts/devtron-enterprise/devtron-bom.yaml
{{- end }}
{{- if $.Values.installer.modules }}
{{- if has "cicd" $.Values.installer.modules }}
Expand Down Expand Up @@ -324,4 +331,4 @@ spec:
matchLabels:
app: devtron
{{- end }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/devtron/templates/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ spec:
envFrom:
- configMapRef:
name: devtron-common-cm
- configMapRef:
name: devtron-operator-cm
{{- if $.Values.installer.resources }}
resources:
{{- toYaml $.Values.installer.resources | nindent 12 }}
Expand Down
4 changes: 2 additions & 2 deletions charts/devtron/templates/migrator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ apiVersion: batch/v1beta1
kind: Job
metadata:
namespace: devtroncd
name: postgresql-migrate-enterprise
name: postgresql-migrate-enterprise-{{ randAlphaNum 5 | lower }}
spec:
activeDeadlineSeconds: 1500
ttlSecondsAfterFinished: 600
ttlSecondsAfterFinished: 1000
backoffLimit: 20
completions: 1
parallelism: 1
Expand Down
23 changes: 23 additions & 0 deletions charts/devtron/templates/workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if not $.Values.devtronEnterprise.enabled }}
apiVersion: v1
kind: Namespace
metadata:
Expand All @@ -7,6 +8,7 @@ metadata:
annotations:
"helm.sh/hook": pre-install
"helm.sh/resource-policy": keep
{{- end }}
---
apiVersion: v1
kind: Namespace
Expand Down Expand Up @@ -62,6 +64,7 @@ metadata:
release: devtron
{{- if $.Values.installer.modules }}
{{- if has "cicd" $.Values.installer.modules }}
{{- if not $.Values.devtronEnterprise.enabled }}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down Expand Up @@ -951,6 +954,7 @@ kind: ServiceAccount
metadata:
name: argo
namespace: argo
{{- end }}
---
apiVersion: v1
kind: ServiceAccount
Expand Down Expand Up @@ -981,6 +985,7 @@ imagePullSecrets:
imagePullSecrets:
{{ toYaml .Values.global.imagePullSecrets | indent 2 }}
{{- end }}
{{- if not $.Values.devtronEnterprise.enabled }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down Expand Up @@ -1184,12 +1189,28 @@ rules:
- create
- get
- delete
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: workflow-cluster-role
rules:
- apiGroups:
- '*'
resources:
- deployments
- pods
- pods/exec
verbs:
- watch
- patch
- delete
- create
- list
- get
- update
- exec
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -1236,6 +1257,7 @@ subjects:
- kind: ServiceAccount
name: devtron
namespace: devtroncd
{{- if not $.Values.devtronEnterprise.enabled }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down Expand Up @@ -1332,3 +1354,4 @@ spec:
serviceAccountName: argo
{{- end }}
{{- end }}
{{- end }}