Skip to content

Commit

Permalink
Adding label for metrics service selection
Browse files Browse the repository at this point in the history
The metrics service that is being created by the Operator SDK uses a the name label of the Operator https://github.com/operator-framework/operator-sdk/blob/f50d3f0f8e7d269e583116a666a354f5d931d8a1/pkg/metrics/metrics.go#L112.  Since this label is not currently being added to the pod the service does not have any matching endpoints so metrics would not be able to be scraped from the service.
  • Loading branch information
tbickford authored Apr 15, 2020
1 parent c064d67 commit 40344cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy/12-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
metadata:
labels:
app: keda-operator
name: keda-operator
name: keda-operator
spec:
serviceAccountName: keda-operator
Expand All @@ -37,4 +38,4 @@ spec:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "keda-operator"
value: "keda-operator"

0 comments on commit 40344cc

Please sign in to comment.