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

Commit

Permalink
Update to latest pkg 0.13 (knative#2727) (#482)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Morie <pmorie@redhat.com>
  • Loading branch information
matzew and pmorie authored Mar 11, 2020
1 parent 3220b54 commit 97407c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/knative.dev/pkg/injection/sharedmain/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func GetLeaderElectionConfig(ctx context.Context) (*kle.Config, error) {
leaderElectionConfigMap, err := kubeclient.Get(ctx).CoreV1().ConfigMaps(system.Namespace()).Get(kle.ConfigMapName(), metav1.GetOptions{})
if err != nil {
if apierrors.IsNotFound(err) {
return kle.NewConfigFromMap(nil)
return kle.NewConfigFromConfigMap(nil)
}

return nil, err
Expand Down
3 changes: 2 additions & 1 deletion vendor/knative.dev/pkg/metrics/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package metrics
import (
"errors"
"fmt"
"strings"
"sync"

"go.opencensus.io/stats/view"
Expand Down Expand Up @@ -74,7 +75,7 @@ func UpdateExporterFromConfigMap(component string, logger *zap.SugaredLogger) fu
return func(configMap *corev1.ConfigMap) {
UpdateExporter(ExporterOptions{
Domain: domain,
Component: component,
Component: strings.ReplaceAll(component, "-", "_"),
ConfigMap: configMap.Data,
}, logger)
}
Expand Down

0 comments on commit 97407c5

Please sign in to comment.