Skip to content

Commit

Permalink
Revert "helm chart fixes (#102)" (#103)
Browse files Browse the repository at this point in the history
This reverts commit 9185224.
  • Loading branch information
davidcollom committed Jul 12, 2023
1 parent 9185224 commit bacbfe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions deploy/charts/version-checker/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: "v0.2.2"
version: v0.2.3
version: 0.2.3
description: A Helm chart for version-checker
home: https://github.com/jetstack/version-checker
home: https://github.com/jetstack/verison-checker
name: version-checker
maintainers:
- name: davidcollom
13 changes: 0 additions & 13 deletions pkg/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ type Metrics struct {

registry *prometheus.Registry
containerImageVersion *prometheus.GaugeVec
containerImageErrors *prometheus.CounterVec
log *logrus.Entry

// container cache stores a cache of a container's current image, version,
Expand All @@ -48,26 +47,14 @@ func New(log *logrus.Entry) *Metrics {
"namespace", "pod", "container", "image", "current_version", "latest_version",
},
)
containerImageErrors := prometheus.NewCounterVec(
prometheus.CounterOpts{
Namespace: "version_checker",
Name: "image_failures",
Help: "Where the version-checker was unable to get the latest upstream registry version",
},
[]string{
"namespace", "pod", "container", "image",
},
)

registry := prometheus.NewRegistry()
registry.MustRegister(containerImageVersion)
registry.MustRegister(containerImageErrors)

return &Metrics{
log: log.WithField("module", "metrics"),
registry: registry,
containerImageVersion: containerImageVersion,
containerImageErrors: containerImageErrors,
containerCache: make(map[string]cacheItem),
}
}
Expand Down

0 comments on commit bacbfe5

Please sign in to comment.