From 49bba2110d18c6b037fa660b31833081555cd5f5 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 31 Oct 2023 11:42:14 -0700 Subject: [PATCH] install/0000_90_cluster-version-operator_02_servicemonitor: Drop $ from ${{ Fixing a ClusterOperatorDown typo from bbcc33dfa3 (pkg/cvo/metrics: Add 'reason' to cluster_operator_up, 2022-11-21, #868) that I'd carried forward into ClusterReleaseNotAccepted in 734b9c5df9 (install/0000_90_cluster-version-operator_02_servicemonitor: Add ClusterReleaseNotAccepted, 2023-02-23, #906) [1]. [1]: https://issues.redhat.com/browse/OCPBUGS-8079 --- .../0000_90_cluster-version-operator_02_servicemonitor.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/0000_90_cluster-version-operator_02_servicemonitor.yaml b/install/0000_90_cluster-version-operator_02_servicemonitor.yaml index 44a5a6c3f..ada901955 100644 --- a/install/0000_90_cluster-version-operator_02_servicemonitor.yaml +++ b/install/0000_90_cluster-version-operator_02_servicemonitor.yaml @@ -76,7 +76,7 @@ spec: - alert: ClusterReleaseNotAccepted annotations: summary: The desired cluster release has not been accepted for at least an hour. - description: The desired cluster release has not been accepted because {{ "${{ $labels.reason }}" }}, and the cluster will continue to reconcile an earlier release instead of moving towards that desired release. For more information refer to 'oc adm upgrade'{{ "{{ with $console_url := \"console_url\" | query }}{{ if ne (len (label \"url\" (first $console_url ) ) ) 0}} or {{ label \"url\" (first $console_url ) }}/settings/cluster/{{ end }}{{ end }}" }}. + description: The desired cluster release has not been accepted because {{ "{{ $labels.reason }}" }}, and the cluster will continue to reconcile an earlier release instead of moving towards that desired release. For more information refer to 'oc adm upgrade'{{ "{{ with $console_url := \"console_url\" | query }}{{ if ne (len (label \"url\" (first $console_url ) ) ) 0}} or {{ label \"url\" (first $console_url ) }}/settings/cluster/{{ end }}{{ end }}" }}. expr: | max by (namespace, name, reason) (cluster_operator_conditions{name="version", condition="ReleaseAccepted", endpoint="metrics"} == 0) for: 60m @@ -96,7 +96,7 @@ spec: - alert: ClusterOperatorDown annotations: summary: Cluster operator has not been available for 10 minutes. - description: The {{ "{{ $labels.name }}" }} operator may be down or disabled because {{ "${{ $labels.reason }}" }}, and the components it manages may be unavailable or degraded. Cluster upgrades may not complete. For more information refer to 'oc get -o yaml clusteroperator {{ "{{ $labels.name }}" }}'{{ "{{ with $console_url := \"console_url\" | query }}{{ if ne (len (label \"url\" (first $console_url ) ) ) 0}} or {{ label \"url\" (first $console_url ) }}/settings/cluster/{{ end }}{{ end }}" }}. + description: The {{ "{{ $labels.name }}" }} operator may be down or disabled because {{ "{{ $labels.reason }}" }}, and the components it manages may be unavailable or degraded. Cluster upgrades may not complete. For more information refer to 'oc get -o yaml clusteroperator {{ "{{ $labels.name }}" }}'{{ "{{ with $console_url := \"console_url\" | query }}{{ if ne (len (label \"url\" (first $console_url ) ) ) 0}} or {{ label \"url\" (first $console_url ) }}/settings/cluster/{{ end }}{{ end }}" }}. expr: | max by (namespace, name, reason) (cluster_operator_up{job="cluster-version-operator"} == 0) for: 10m