Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit a9b2961

Browse files
committed
rename
1 parent 5662817 commit a9b2961

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

deploy/crds/ApplicationMonitoring.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ spec:
1616
required: ["spec"]
1717
properties:
1818
spec:
19-
required: ["namespaceSelector"]
19+
required: ["labelSelector"]
2020
properties:
21-
namespaceSelector:
21+
labelSelector:
2222
type: string
2323
minimum: 1
24-
description: The namespaces that the grafana and prometheus operators will watch
24+
description: The selector used by the Prometheus and Grafana Operators to discover resources

deploy/examples/ApplicationMonitoring.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ kind: ApplicationMonitoring
33
metadata:
44
name: example-applicationmonitoring
55
spec:
6-
namespaceSelector: "middleware"
6+
labelSelector: "middleware"

pkg/apis/applicationmonitoring/v1alpha1/applicationmonitoring_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
type ApplicationMonitoringSpec struct {
1212
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
1313
// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
14-
NamespaceSelector string `json:"namespaceSelector"`
14+
LabelSelector string `json:"labelSelector"`
1515
}
1616

1717
// ApplicationMonitoringStatus defines the observed state of ApplicationMonitoring

pkg/controller/applicationmonitoring/templateHelper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func newTemplateHelper(cr *applicationmonitoring.ApplicationMonitoring, extraPar
8282
AlertManagerRouteName: AlertManagerRouteName,
8383
GrafanaServiceMonitorName: GrafanaServiceMonitorName,
8484
PrometheusServiceMonitorName: PrometheusServiceMonitorName,
85-
MonitoringKey: cr.Spec.NamespaceSelector,
85+
MonitoringKey: cr.Spec.LabelSelector,
8686
ExtraParams: extraParams,
8787
}
8888

0 commit comments

Comments
 (0)