ci: reconfigure
This commit is contained in:
@@ -283,7 +283,7 @@ jobs:
|
|||||||
|
|
||||||
echo ">> Formating rendered template ..."
|
echo ">> Formating rendered template ..."
|
||||||
local TEMPLATE
|
local TEMPLATE
|
||||||
TEMPLATE=$(helm template "${CHART_NAME}" ./ --namespace "${NAMESPACE}" --include-crds --dry-run=server --api-versions "gateway.networking.k8s.io/v1/HTTPRoute,monitoring.coreos.com/v1/ServiceMonitor,monitoring.coreos.com/v1/PrometheusRule")
|
TEMPLATE=$(helm template "${CHART_NAME}" ./ --namespace "${NAMESPACE}" --include-crds --dry-run=server --api-versions "gateway.networking.k8s.io/v1,monitoring.coreos.com/v1")
|
||||||
|
|
||||||
# Format and split rendered template
|
# Format and split rendered template
|
||||||
echo "${TEMPLATE}" | yq '... comments=""' | yq 'select(. != null)' | yq -s '"'"${OUTPUT_FOLDER}"'" + .kind + "-" + .metadata.name + ".yaml"'
|
echo "${TEMPLATE}" | yq '... comments=""' | yq 'select(. != null)' | yq -s '"'"${OUTPUT_FOLDER}"'" + .kind + "-" + .metadata.name + ".yaml"'
|
||||||
|
|||||||
@@ -48,31 +48,31 @@ argo-cd:
|
|||||||
enabled: true
|
enabled: true
|
||||||
rules:
|
rules:
|
||||||
enabled: true
|
enabled: true
|
||||||
spec:
|
spec:
|
||||||
- alert: ArgoAppMissing
|
- alert: ArgoAppMissing
|
||||||
expr: |
|
expr: |
|
||||||
absent(argocd_app_info) == 1
|
absent(argocd_app_info) == 1
|
||||||
for: 15m
|
for: 15m
|
||||||
labels:
|
labels:
|
||||||
severity: critical
|
severity: critical
|
||||||
annotations:
|
annotations:
|
||||||
summary: "[Argo CD] No reported applications"
|
summary: "[Argo CD] No reported applications"
|
||||||
description: >
|
description: >
|
||||||
Argo CD has not reported any applications data for the past 15 minutes which
|
Argo CD has not reported any applications data for the past 15 minutes which
|
||||||
means that it must be down or not functioning properly. This needs to be
|
means that it must be down or not functioning properly. This needs to be
|
||||||
resolved for this cloud to continue to maintain state.
|
resolved for this cloud to continue to maintain state.
|
||||||
- alert: ArgoAppNotSynced
|
- alert: ArgoAppNotSynced
|
||||||
expr: |
|
expr: |
|
||||||
argocd_app_info{sync_status!="Synced"} == 1
|
argocd_app_info{sync_status!="Synced"} == 1
|
||||||
for: 12h
|
for: 12h
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
summary: "[{{`{{$labels.name}}`}}] Application not synchronized"
|
summary: "[{{`{{$labels.name}}`}}] Application not synchronized"
|
||||||
description: >
|
description: >
|
||||||
The application [{{`{{$labels.name}}`}} has not been synchronized for over
|
The application [{{`{{$labels.name}}`}} has not been synchronized for over
|
||||||
12 hours which means that the state of this cloud has drifted away from the
|
12 hours which means that the state of this cloud has drifted away from the
|
||||||
state inside Git.
|
state inside Git.
|
||||||
dex:
|
dex:
|
||||||
enabled: true
|
enabled: true
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
Reference in New Issue
Block a user