Skip to content

Commit

Permalink
Merge pull request rook#14854 from travisn/exporter-cleanup
Browse files Browse the repository at this point in the history
core: Skip counting exporter pods as a ceph pod
  • Loading branch information
travisn authored Oct 15, 2024
2 parents 0d4f2f4 + a71078b commit 1193620
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/operator/ceph/cluster/nodedaemon/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ func isCephPod(labels map[string]string, podName string) bool {
// will be empty since the monitors don't exist yet
isCanaryPod := strings.Contains(podName, "-canary-")
isCrashCollectorPod := strings.Contains(podName, "-crashcollector-")
if ok && !isCanaryPod && !isCrashCollectorPod {
isExporterPod := strings.Contains(podName, "-exporter-")
if ok && !isCanaryPod && !isCrashCollectorPod && !isExporterPod {
logger.Debugf("%q is a ceph pod!", podName)
return true
}
Expand Down

0 comments on commit 1193620

Please sign in to comment.