Skip to content

Commit

Permalink
added support for extraconfigs in app-sync and increased the ttl to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatsinha007 committed Oct 24, 2024
1 parent 0f02708 commit 430d6b7
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 13 deletions.
4 changes: 2 additions & 2 deletions charts/devtron/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: devtron-operator
appVersion: 0.7.4-rc.0
appVersion: 1.0.0
description: Chart to configure and install Devtron. Devtron is a Kubernetes Orchestration system.
keywords:
- Devtron
Expand All @@ -11,7 +11,7 @@ keywords:
- argocd
- Hyperion
engine: gotpl
version: 0.22.75
version: 0.22.76
sources:
- https://github.com/devtron-labs/charts
dependencies:
Expand Down
4 changes: 3 additions & 1 deletion charts/devtron/devtron-bom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ global:
containerRegistry: "quay.io/devtron"
extraManifests: []
installer:
release: "v0.7.4-rc.0"
release: "v1.0.0"
registry: ""
image: "inception"
tag: "473deaa4-185-21582"
Expand Down Expand Up @@ -155,6 +155,8 @@ components:
chartSync:
registry: ""
image: chart-sync:13ffae06-150-25515
schedule: "0 19 * * *"
extraConfigs: {}
# values for argocd integration
argo-cd:
global:
Expand Down
18 changes: 17 additions & 1 deletion charts/devtron/templates/app-sync-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ metadata:
annotations:
"helm.sh/resource-policy": keep
spec:
schedule: "0 19 * * *"
schedule: {{ $.Values.components.chartSync.schedule | quote }}
jobTemplate:
spec:
template:
spec:
activeDeadlineSeconds: 15000
serviceAccountName: chart-sync
{{- include "common.schedulerConfig" (dict "nodeSelector" $.Values.components.chartSync.nodeSelector "tolerations" $.Values.components.chartSync.tolerations "imagePullSecrets" $.Values.components.chartSync.imagePullSecrets "global" $.Values.global) | indent 10 }}
{{- if and $.Values.global $.Values.global.podSecurityContext }}
Expand All @@ -98,6 +99,8 @@ spec:
envFrom:
- secretRef:
name: devtron-secret
- configMapRef:
name: app-sync-cm
{{- if .Values.components.migrator }}
{{- if .Values.components.migrator.appSync }}
{{- if .Values.components.migrator.appSync.resources }}
Expand All @@ -108,3 +111,16 @@ spec:
{{- end }}
restartPolicy: Never
backoffLimit: 4
---
apiVersion: v1
kind: ConfigMap
metadata:
name: app-sync-cm
labels:
app: app-sync-cronjob
release: devtron
data:
{{- if $.Values.components.chartSync.extraConfigs }}
{{ toYaml $.Values.components.chartSync.extraConfigs | indent 2 }}
{{- end }}
---
2 changes: 1 addition & 1 deletion charts/devtron/templates/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ kind: Job
metadata:
name: grafana-org-job
spec:
ttlSecondsAfterFinished: 100
ttlSecondsAfterFinished: 1000
template:
spec:
{{- include "common.schedulerConfig" (dict "nodeSelector" $.Values.monitoring.grafana.nodeSelector "tolerations" $.Values.monitoring.grafana.tolerations "imagePullSecrets" $.Values.monitoring.grafana.imagePullSecrets "global" $.Values.global) | indent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/devtron/templates/migrator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ kind: Job
metadata:
name: postgresql-miscellaneous
spec:
ttlSecondsAfterFinished: 100
ttlSecondsAfterFinished: 1000
template:
spec:
{{- include "common.schedulerConfig" (dict "nodeSelector" $.Values.components.migrator.nodeSelector "tolerations" $.Values.components.migrator.tolerations "imagePullSecrets" $.Values.components.migrator.imagePullSecrets "global" $.Values.global) | indent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/devtron/templates/minio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ metadata:
release: {{ $.Release.Name }}
heritage: Helm
spec:
ttlSecondsAfterFinished: 100
ttlSecondsAfterFinished: 1000
template:
metadata:
labels:
Expand Down
11 changes: 5 additions & 6 deletions charts/devtron/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ global:
extraManifests: []
installer:
repo: "devtron-labs/devtron"
release: "v0.7.4-rc.0"
release: "v1.0.0"
registry: ""
image: inception
tag: 473deaa4-185-21582
Expand Down Expand Up @@ -223,6 +223,9 @@ components:
chartSync:
registry: ""
image: chart-sync:13ffae06-150-25515
schedule: "0 19 * * *"
extraConfigs: {}

# values for argocd integration
argo-cd:
enabled: false
Expand All @@ -245,10 +248,6 @@ argo-cd:
statusProcessors: "50"
# -- define the application controller `--operation-processors`
operationProcessors: "25"
# -- define the application controller `--app-hard-resync`
appHardResyncPeriod: "0"
# -- define the application controller `--app-resync`
appResyncPeriod: "180"
# -- define the application controller `--self-heal-timeout-seconds`
selfHealTimeout: "5"
# -- define the application controller `--repo-server-timeout-seconds`
Expand Down Expand Up @@ -460,4 +459,4 @@ devtronEnterprise:
resources: {}
configs:
CLUSTER_ID: "1"
ORCHESTRATOR_URL: http://devtron-service.devtroncd.svc.cluster.local/orchestrator
ORCHESTRATOR_URL: http://devtron-service.devtroncd.svc.cluster.local/orchestrator

0 comments on commit 430d6b7

Please sign in to comment.