Skip to content

Commit 91e82b9

Browse files
committed
chore: move karma into separate Application
1 parent b698d65 commit 91e82b9

4 files changed

Lines changed: 56 additions & 9 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
- path: components/karma
25+
ref: understack
26+
repoURL: {{ include "understack.understack_url" $ }}
27+
targetRevision: {{ include "understack.understack_ref" $ }}
28+
- path: {{ include "understack.deploy_path" $ }}/karma
29+
ref: deploy
30+
repoURL: {{ include "understack.deploy_url" $ }}
31+
targetRevision: {{ include "understack.deploy_ref" $ }}
32+
syncPolicy:
33+
automated:
34+
prune: true
35+
selfHeal: true
36+
managedNamespaceMetadata:
37+
annotations:
38+
argocd.argoproj.io/sync-options: Delete=false
39+
syncOptions:
40+
- CreateNamespace=true
41+
- ServerSideApply=true
42+
- RespectIgnoreDifferences=true
43+
- ApplyOutOfSyncOnly=true
44+
{{- end }}

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

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)