try kustomize overlays
All checks were successful
Helm Charts / Detect changed charts (push) Successful in 2m20s
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 a335c856f7
3 changed files with 23 additions and 21 deletions

View File

@@ -3,7 +3,7 @@
apiVersion: argoproj.io/v1alpha1 apiVersion: argoproj.io/v1alpha1
kind: Application kind: Application
metadata: metadata:
name: {{ $app_name }} name: {{ index (splitList "/" $app_name) 0 }}
namespace: argocd namespace: argocd
finalizers: finalizers:
- resources-finalizer.argocd.argoproj.io - resources-finalizer.argocd.argoproj.io
@@ -13,15 +13,12 @@ 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: helm:
patches: valueFiles:
{{- range $patch := $app.patches }} - values.yaml
- target: {{- if $app.kustomize }}
{{- toYaml $patch.target | nindent 12 }} kustomize:
patch: |- {{- toYaml $app.kustomize | nindent 6 }}
{{ $patch.patch | nindent 12 }}
{{- end }}
{{- end }} {{- end }}
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc

View File

@@ -6,16 +6,7 @@ tools:
crowdsec: {} crowdsec: {}
redis: {} redis: {}
clickhouse: clickhouse:
kustomize:
patches: patches:
- target: - kustomize/patch-volumeMount.yaml
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: {} grafana: {}

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