Skip to content

Commit d41109f

Browse files
philrhurstPhilip Hurst
andauthored
adust LabelMonitoring to account for new label in PGO Monitoring stack (#107)
Co-authored-by: Philip Hurst <[email protected]>
1 parent 7a82608 commit d41109f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/util/naming.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ const (
2929
// LabelRole is used to identify object roles.
3030
LabelRole = labelPrefix + "role"
3131

32-
// LabelMonitoring is used to identify monitoring Pods
33-
LabelMonitoring = "app.kubernetes.io/name=postgres-operator-monitoring"
32+
// LabelMonitoring is used to identify monitoring Pods.
33+
// Older versions of PGO monitoring use the label 'postgres-operator-monitoring'.
34+
LabelMonitoring = "app.kubernetes.io/name in (postgres-operator-monitoring,crunchy-monitoring)"
3435

3536
// LabelOperator is used to identify operator Pods
3637
LabelOperator = "postgres-operator.crunchydata.com/control-plane"

0 commit comments

Comments
 (0)