Skip to content

Commit

Permalink
fix(common): correct metrics related error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjeld Schouten committed Feb 27, 2024
1 parent e01908e commit 87d6558
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ maintainers:
name: common
sources: null
type: library
version: 18.1.1
version: 18.1.2
annotations:
artifacthub.io/category: "integration-delivery"
artifacthub.io/license: "BUSL-1.1"
Expand Down
2 changes: 1 addition & 1 deletion library/common/templates/class/metrics/_podMonitor.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{- $podmonitorName = printf "%v-%v" $podmonitorName $values.nameOverride -}}
{{- end }}

{{- include "tc.v1.common.lib.util.verifycrd" (dict "crd" "podmonitors.monitoring.coreos.com" "missing" "Grafana-Agent-Operator or Prometheus-Operator") }}
{{- include "tc.v1.common.lib.util.verifycrd" (dict "rootCtx" . "crd" "podmonitors.monitoring.coreos.com" "missing" "Prometheus-Operator") }}

---
apiVersion: {{ include "tc.v1.common.capabilities.podmonitor.apiVersion" $ }}
Expand Down
2 changes: 1 addition & 1 deletion library/common/templates/class/metrics/_prometheusRule.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{- $prometheusruleName = printf "%v-%v" $prometheusruleName $values.nameOverride -}}
{{- end }}

{{- include "tc.v1.common.lib.util.verifycrd" (dict "crd" "prometheusrules.monitoring.coreos.com" "missing" "Grafana-Agent-Operator or Prometheus-Operator") }}
{{- include "tc.v1.common.lib.util.verifycrd" (dict "rootCtx" . "crd" "prometheusrules.monitoring.coreos.com" "missing" "Prometheus-Operator") }}

---
apiVersion: {{ include "tc.v1.common.capabilities.prometheusrule.apiVersion" $ }}
Expand Down
2 changes: 1 addition & 1 deletion library/common/templates/class/metrics/_serviceMonitor.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{- $servicemonitorName = printf "%v-%v" $servicemonitorName $values.nameOverride -}}
{{- end }}

{{- include "tc.v1.common.lib.util.verifycrd" (dict "crd" "servicemonitors.monitoring.coreos.com" "missing" "Grafana-Agent-Operator or Prometheus-Operator") }}
{{- include "tc.v1.common.lib.util.verifycrd" (dict "rootCtx" . "crd" "servicemonitors.monitoring.coreos.com" "missing" "Prometheus-Operator") }}

---
apiVersion: {{ include "tc.v1.common.capabilities.servicemonitor.apiVersion" $ }}
Expand Down

0 comments on commit 87d6558

Please sign in to comment.