Skip to content

Commit

Permalink
Merge pull request #20 from gkarthiks/fix/metrics-client
Browse files Browse the repository at this point in the history
fix: metrics client fix
  • Loading branch information
gkarthiks authored Aug 16, 2020
2 parents 0ebec84 + 733d0a7 commit 6d95ecd
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 59 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## CHANGELOG

### v0.18.4
- fix for the metrics client with inCluster config
- upgraded to 0.18.8 of k8s

### v0.18.3
- added the logEnabled flag
- added changelog
Expand Down
4 changes: 4 additions & 0 deletions discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ func NewK8s() (*K8s, error) {
if err != nil {
return nil, err
}
client.MetricsClientSet, err = metricsClient.NewForConfig(config)
if err != nil {
panic(err)
}
return &client, nil
}

Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module github.com/gkarthiks/k8s-discovery

go 1.12
go 1.14

require (
github.com/Azure/go-autorest v11.1.2+incompatible // indirect
github.com/evanphx/json-patch v4.2.0+incompatible // indirect
github.com/sirupsen/logrus v1.4.2
github.com/stretchr/testify v1.4.0
k8s.io/client-go v0.18.2
k8s.io/metrics v0.18.2
k8s.io/client-go v0.18.8
k8s.io/metrics v0.18.8
)
Loading

0 comments on commit 6d95ecd

Please sign in to comment.