44 lines
1.1 KiB
Go Template
44 lines
1.1 KiB
Go Template
bases:
|
|
- ../envs/environments.yaml.gotmpl
|
|
|
|
repositories:
|
|
- name: prometheus
|
|
url: 'https://prometheus-community.github.io/helm-charts'
|
|
|
|
commonLabels:
|
|
tier: system
|
|
|
|
apiVersions:
|
|
- monitoring.coreos.com/v1
|
|
|
|
releases:
|
|
- name: prometheus
|
|
namespace: prometheus
|
|
chart: prometheus/kube-prometheus-stack
|
|
version: 85.3.0
|
|
condition: prometheus.enabled
|
|
values:
|
|
- ../values/prometheus/values/prometheus.yaml.gotmpl
|
|
- ../values/prometheus/values/prometheus-{{ .Environment.Name }}.yaml.gotmpl
|
|
missingFileHandler: Info
|
|
- name: manifests
|
|
namespace: prometheus
|
|
chart: manifests
|
|
condition: prometheus.enabled
|
|
missingFileHandler: Info
|
|
values:
|
|
- ../values/env.yaml
|
|
- ../values/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml
|
|
- ../values/prometheus/env.yaml.gotmpl
|
|
- ../values/prometheus/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml.gotmpl
|
|
hooks:
|
|
- events: [ prepare, cleanup ]
|
|
showlogs: true
|
|
command: ../bin/helmify
|
|
args:
|
|
- '{{`{{ if eq .Event.Name "prepare" }}build{{ else }}clean{{ end }}`}}'
|
|
- '{{`{{ .Release.Chart }}`}}'
|
|
- '{{`{{ .Environment.Name }}`}}'
|
|
- ../values/prometheus/manifests
|
|
- manifests
|