vars

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceMonitorCrdName           = "servicemonitors.monitoring.coreos.com"
	PodMonitorCrdName               = "podmonitors.monitoring.coreos.com"
	MonitorServiceMonitorNameSuffix = "-exporter-svcmon"
	EnvNameUnitName                 = "UNIT_NAME"
	LastUnitBelongNodeAnnotation    = "last.unit.belong.node"
)
View Source
const (
	//Version           = "1.1.0"
	VersionPrerelease = ""
)

Variables

View Source
var (
	UnitAgentName     = "unit-agent"
	UnitAgentImage    string
	UnitAgentHostType = "domain"

	ManagerNamespace = "upm-system"
	ProjectName      = "unit-operator"
	IpFamily         = "IPv4"
)
View Source
var (
	// GITCOMMIT will be overwritten automatically by the build system with short commit hash
	GITCOMMIT = "HEAD"
	// BUILDTIME will be overwritten automatically by the build system
	BUILDTIME = "<unknown>"
	// VERSION will be overwritten automatically by the build system if tag exists at current commit
	VERSION = ""
	// GITBRANCH will be overwritten automatically by the build system with the current branch
	GITBRANCH string
	// GOVERSION will be overwritten automatically by the build system with the go version in build image
	GOVERSION string
)

Functions

func GetVersion

func GetVersion() string

Types

type VersionInfo

type VersionInfo struct {
	Version   string `json:"version"`
	CommitId  string `json:"commit_id"`
	BuildTime string `json:"build_time"`
	GitBranch string `json:"git_branch"`
	GoVersion string `json:"go_version"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL