Skip to content

Commit

Permalink
Merge pull request #242 from brancz/cut-1.0.1
Browse files Browse the repository at this point in the history
Cut 1.0.1
  • Loading branch information
andyxning committed Aug 25, 2017
2 parents 259497e + 4266943 commit 4d77540
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v1.0.1 / 2017-08-24

* [BUGFIX] Fix nil pointer panic when pods have an owner without controllers.

## v1.0.0 / 2017-08-09

After a testing period of one week, there were no additional bugs found or features introduced.
Expand Down
6 changes: 5 additions & 1 deletion collectors/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,11 @@ func (pc *podCollector) collectPod(ch chan<- prometheus.Metric, p v1.Pod) {
addGauge(descPodOwner, 1, "<none>", "<none>", "<none>")
} else {
for _, owner := range owners {
addGauge(descPodOwner, 1, owner.Kind, owner.Name, strconv.FormatBool(*owner.Controller))
if owner.Controller != nil {
addGauge(descPodOwner, 1, owner.Kind, owner.Name, strconv.FormatBool(*owner.Controller))
} else {
addGauge(descPodOwner, 1, owner.Kind, owner.Name, "false")
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion kubernetes/kube-state-metrics-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
serviceAccountName: kube-state-metrics
containers:
- name: kube-state-metrics
image: gcr.io/google_containers/kube-state-metrics:v1.0.0
image: gcr.io/google_containers/kube-state-metrics:v1.0.1
ports:
- name: http-metrics
containerPort: 8080
Expand Down

0 comments on commit 4d77540

Please sign in to comment.