Skip to content

Commit 5e15f74

Browse files
committed
chore: move karma into separate Application
1 parent fb3e6ea commit 5e15f74

4 files changed

Lines changed: 55 additions & 9 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{{- if or (eq (include "understack.isEnabled" (list $.Values.global "karma")) "true") (eq (include "understack.isEnabled" (list $.Values.site "karma")) "true") }}
2+
---
3+
apiVersion: argoproj.io/v1alpha1
4+
kind: Application
5+
metadata:
6+
name: {{ printf "%s-%s" $.Release.Name "karma" }}
7+
annotations:
8+
argocd.argoproj.io/compare-options: ServerSideDiff=true,IncludeMutationWebhook=true
9+
spec:
10+
destination:
11+
namespace: monitoring
12+
server: {{ $.Values.cluster_server }}
13+
project: understack
14+
sources:
15+
- chart: karma
16+
helm:
17+
ignoreMissingValueFiles: true
18+
releaseName: karma
19+
valueFiles:
20+
- $understack/components/karma/values.yaml
21+
- $deploy/{{ include "understack.deploy_path" $ }}/karma/values.yaml
22+
repoURL: https://wiremind.github.io/wiremind-helm-charts
23+
targetRevision: 2.11.0
24+
- ref: understack
25+
repoURL: {{ include "understack.understack_url" $ }}
26+
targetRevision: {{ include "understack.understack_ref" $ }}
27+
- path: {{ include "understack.deploy_path" $ }}/karma
28+
ref: deploy
29+
repoURL: {{ include "understack.deploy_url" $ }}
30+
targetRevision: {{ include "understack.deploy_ref" $ }}
31+
syncPolicy:
32+
automated:
33+
prune: true
34+
selfHeal: true
35+
managedNamespaceMetadata:
36+
annotations:
37+
argocd.argoproj.io/sync-options: Delete=false
38+
syncOptions:
39+
- CreateNamespace=true
40+
- ServerSideApply=true
41+
- RespectIgnoreDifferences=true
42+
- ApplyOutOfSyncOnly=true
43+
{{- end }}

charts/argocd-understack/templates/application-monitoring.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@ spec:
2626
- $deploy/{{ include "understack.deploy_path" $ }}/monitoring/values.yaml
2727
repoURL: https://prometheus-community.github.io/helm-charts
2828
targetRevision: 79.5.0
29-
- chart: karma
30-
helm:
31-
ignoreMissingValueFiles: true
32-
releaseName: karma
33-
valueFiles:
34-
- $understack/operators/monitoring/values-karma.yaml
35-
- $deploy/{{ include "understack.deploy_path" $ }}/monitoring/values-karma.yaml
36-
repoURL: https://wiremind.github.io/wiremind-helm-charts
37-
targetRevision: 2.11.0
3829
- path: operators/monitoring
3930
ref: understack
4031
repoURL: {{ include "understack.understack_url" $ }}

charts/argocd-understack/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ global:
111111
# @default -- true
112112
enabled: true
113113

114+
# -- Alerts management (karma)
115+
karma:
116+
# -- Enable/disable deploying kube-prometheus-stack
117+
# @default -- true
118+
enabled: true
119+
114120
# -- Monitoring via kube-prometheus-stack
115121
monitoring:
116122
# -- Enable/disable deploying kube-prometheus-stack
@@ -419,6 +425,12 @@ site:
419425
# @default -- true
420426
enabled: true
421427

428+
# -- Alerts management (karma)
429+
karma:
430+
# -- Enable/disable deploying kube-prometheus-stack
431+
# @default -- true
432+
enabled: true
433+
422434
# -- MariaDB Operator
423435
mariadb_operator:
424436
# -- Enable/disable deploying MariaDB Operator

0 commit comments

Comments
 (0)