Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Fixing invalid name for metrics component (#33)
Browse files Browse the repository at this point in the history
* Fixing invalid name for metrics component and updating metrics settings on the deployment yaml

* 💄 fixing typo
  • Loading branch information
matzew authored and knative-prow-robot committed Nov 14, 2019
1 parent e5cfad2 commit 6126d24
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"log"

"k8s.io/client-go/tools/clientcmd"
"knative.dev/eventing-operator/pkg/reconciler/knativeeventing"
"knative.dev/pkg/injection/sharedmain"
"knative.dev/pkg/signals"
"knative.dev/eventing-operator/pkg/reconciler/knativeeventing"
)

func main() {
Expand All @@ -32,5 +32,5 @@ func main() {
if err != nil {
log.Fatal("Error building kubeconfig", err)
}
sharedmain.MainWithConfig(signals.NewContext(), "eventing-operator", cfg, knativeeventing.NewController)
sharedmain.MainWithConfig(signals.NewContext(), "eventing_operator", cfg, knativeeventing.NewController)
}
13 changes: 9 additions & 4 deletions config/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,17 @@ spec:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
value: "knative-eventing-operator"
- name: SYSTEM_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CONFIG_LOGGING_NAME
value: config-logging
- name: CONFIG_OBSERVABILITY_NAME
value: config-observability
- name: METRICS_DOMAIN
value: knative.dev/operator-operator
value: knative.dev/eventing-operator
ports:
- name: metrics
containerPort: 9090

0 comments on commit 6126d24

Please sign in to comment.