try kustomize patch with argocd
All checks were successful
Helm Charts / Detect changed charts (push) Successful in 17s
Helm Charts / Library charts tool (push) Has been skipped
Helm Charts / Application charts pgcat (push) Has been skipped

This commit is contained in:
2025-12-06 14:57:42 +01:00
parent 2b6fc7937b
commit 3be78a836a
2 changed files with 32 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
{{- range $app_name := .Values.tools -}} {{- range $app_name, $app := .Values.tools }}
--- ---
apiVersion: argoproj.io/v1alpha1 apiVersion: argoproj.io/v1alpha1
kind: Application kind: Application
@@ -13,6 +13,16 @@ spec:
repoURL: https://gitea.arcodange.duckdns.org/arcodange-org/tools repoURL: https://gitea.arcodange.duckdns.org/arcodange-org/tools
targetRevision: HEAD targetRevision: HEAD
path: {{ $app_name }} path: {{ $app_name }}
{{- if $app.patches }}
helm:
patches:
{{- range $patch := $app.patches }}
- target:
{{- toYaml $patch.target | nindent 12 }}
patch: |-
{{ $patch.patch | nindent 12 }}
{{- end }}
{{- end }}
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
namespace: tools namespace: tools
@@ -22,4 +32,4 @@ spec:
selfHeal: true selfHeal: true
syncOptions: syncOptions:
- CreateNamespace=true - CreateNamespace=true
{{ end }} {{- end }}

View File

@@ -1,9 +1,21 @@
tools: tools:
- pgbouncer pgbouncer: {}
#- pgcat # trop contraignant: lister tous les databases/users et auth_type md5 uniquement #pgcat # trop contraignant: lister tous les databases/users et auth_type md5 uniquement: {}
# - prometheus # prometheus: {}
- hashicorp-vault hashicorp-vault: {}
- crowdsec crowdsec: {}
- redis redis: {}
- clickhouse clickhouse:
- grafana patches:
- target:
kind: StatefulSet
name: clickhouse
patch: |-
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: config-volume
mountPath: /etc/clickhouse-server/users.d/custom-users.xml
subPath: custom-users.xml
readOnly: true
grafana: {}