Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

590 B
Raw Blame
package api

import "github.com/rcourtman/pulse-go-rewrite/internal/updates"

// currentAgentTargetVersion returns the canonical version string agents should
// compare themselves against. Development/source builds deliberately return an
// empty string so operator-facing surfaces do not raise false update warnings
// when the server reports "dev" to avoid agent update loops.
func currentAgentTargetVersion() string {
	versionInfo, err := updates.GetCurrentVersion()
	if err != nil || versionInfo.IsDevelopment || versionInfo.IsSourceBuild {
		return ""
	}
	return versionInfo.Version
}