feat: add dapr helmfile et al.

This commit is contained in:
2025-06-20 19:57:38 +02:00
parent cee8040875
commit 3ca8363040
5 changed files with 55 additions and 9 deletions
+40
View File
@@ -0,0 +1,40 @@
bases:
- ../envs/environments.yaml.gotmpl
repositories:
- name: dapr
url: https://dapr.github.io/helm-charts
commonLabels:
tier: system
releases:
- name: dapr
namespace: dapr-system
chart: dapr/dapr
version: 1.14.4
condition: dapr.enabled
values:
- ../values/dapr/values/dapr.yaml.gotmpl
- ../values/dapr/values/dapr-{{ .Environment.Name }}.yaml.gotmpl
missingFileHandler: Info
- name: dapr-manifests
namespace: dapr-system
chart: _dapr-manifests
condition: nginx.enabled
missingFileHandler: Info
values:
- ../values/env.yaml
- ../values/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml
- ../values/dapr/env.yaml.gotmpl
- ../values/dapr/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml.gotmpl
hooks:
- events: [ prepare, cleanup ]
showlogs: true
command: ../bin/helmify
args:
- '{{`{{ if eq .Event.Name "prepare" }}build{{ else }}clean{{ end }}`}}'
- '{{`{{ .Release.Chart }}`}}'
- '{{`{{ .Environment.Name }}`}}'
- ../values/dapr/manifests
- _dapr-manifests
+1 -1
View File
@@ -4,5 +4,5 @@ default:
# Render a specifc helm chart
r HELMFILE ENV="default":
helmfile --environment={{ENV}} lint --args --quiet -f helmfile.d/{{HELMFILE}}.yaml.gotmpl
#helmfile --environment={{ENV}} lint --args --quiet -f helmfile.d/{{HELMFILE}}.yaml.gotmpl
helmfile --environment={{ENV}} template -q -f helmfile.d/{{HELMFILE}}.yaml.gotmpl --output-dir-template="../_manifests/{{HELMFILE}}/{{ENV}}"
+1
View File
@@ -1,2 +1,3 @@
dapr:
enabled: true
autsync: false
+8 -4
View File
@@ -15,17 +15,21 @@ spec:
sources:
- repoURL: {{ .Values.clusterConfig.manifests }}
targetRevision: HEAD
path: helmfiles/dapr
path: helmfile.d
plugin:
name: helmfile
name: helmfile-cmp
env:
- name: CLUSTER_NAME
value: {{ .Values.clusterConfig.cluster }}
project: default
- name: HELMFILE_ENVIRONMENT
value: default
- name: HELMFILE_FILE_PATH
value: dapr.yaml.gotmpl
project: sys
syncPolicy:
managedNamespaceMetadata:
labels:
component: aux
component: sys
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
+1
View File
@@ -1,3 +1,4 @@
global:
ha:
enabled: true
replicaCount: 3