try kustomize overlays
All checks were successful
Helm Charts / Detect changed charts (push) Successful in 3m43s
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 16:24:22 +01:00
parent 3be78a836a
commit c009bf1fff
4 changed files with 27 additions and 14 deletions

View File

@@ -3,7 +3,7 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ $app_name }}
name: {{ index (splitList "/" $app_name) 0 }}
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io

View File

@@ -5,17 +5,5 @@ tools:
hashicorp-vault: {}
crowdsec: {}
redis: {}
clickhouse:
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
'clickhouse/overlays': {}
grafana: {}

View File

@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: clickhouse
chart: ../../clickhouse # chemin relatif vers le Chart.yaml
releaseName: clickhouse
namespace: tools
valuesFile: values.yaml # si tu veux passer des valeurs custom
patches:
- patch-volumeMount.yaml

View File

@@ -0,0 +1,14 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: clickhouse
spec:
template:
spec:
containers:
- name: clickhouse
volumeMounts:
- name: config-volume
mountPath: /etc/clickhouse-server/users.d/custom-users.xml
subPath: custom-users.xml
readOnly: true