wip: unify sys and apps

This commit is contained in:
2025-05-06 16:00:57 +02:00
parent 4590ddc30a
commit 7de100a4d4
204 changed files with 3 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
{{ if .Values.clickhouse_operator.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: clickhouse-operator
namespace: argocd
spec:
destination:
namespace: clickhouse
server: 'https://kubernetes.default.svc'
sources:
- repoURL: {{ .Values.cluster_config.manifests }}
path: {{ .Values.cluster_config.policies }}/clickhouse
targetRevision: HEAD
- repoURL: 'https://docs.altinity.com/clickhouse-operator'
targetRevision: {{ .Values.clickhouse_operator.version }}
chart: altinity-clickhouse-operator
helm:
values: |
configs:
files:
config.yaml:
watch:
namespaces: ["analytics", "analytics-production"]
project: sys
syncPolicy:
managedNamespaceMetadata:
labels:
component: sys
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
- ServerSideApply=true
{{- if .Values.clickhouse_operator.version }}
automated:
# selfHeal: false
prune: true
{{- end }}
ignoreDifferences:
- group: apps
kind: Deployment
jqPathExpressions:
- .spec.template.spec.containers[].env[].valueFrom.resourceFieldRef.divisor
- .spec.template.spec.initContainers[].env[].valueFrom.resourceFieldRef.divisor
{{ end }}