constants

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetaPrefix = "mcing.kmdkuk.com/"
	Finalizer  = MetaPrefix + "finalizer"

	LabelAppInstance  = "app.kubernetes.io/instance"
	LabelAppName      = "app.kubernetes.io/name"
	LabelAppComponent = "app.kubernetes.io/component"
	LabelAppCreatedBy = "app.kubernetes.io/created-by"

	AppName            = "mcing"
	AppComponentServer = "server"
	ControllerName     = "mcing-controller"
)

Metadata

View Source
const (
	MinecraftContainerName = "minecraft"
	ServerPortName         = "server-port"
	ServerPort             = int32(25565)
	RconPortName           = "rcon-port"
	RconPort               = int32(25575)
	DataVolumeName         = "minecraft-data"
	DataPath               = "/data"
	ServerPropsName        = "server.properties"
	ServerPropsPath        = DataPath + "/" + ServerPropsName
	BanIPName              = "banned-ips.json"
	BanIPPath              = DataPath + "/" + BanIPName
	BanPlayerName          = "banned-players.json"
	BanPlayerPath          = DataPath + "/" + BanPlayerName
	OpsName                = "ops.json"
	OpsPath                = DataPath + "/" + OpsName
	WhiteListName          = "whitelist.json"
	WhiteListPath          = DataPath + "/" + WhiteListName
	ConfigVolumeName       = "config"
	ConfigPath             = "/mcing-config"

	AgentContainerName = "mcing-agent"
	AgentPort          = int32(9080)
	AgentPortName      = "agent-port"

	InitContainerName  = "mcing-init"
	ImagePrefix        = "ghcr.io/kmdkuk/"
	InitContainerImage = "mcing-init"
	InitCommand        = "mcing-init"

	DefaultServerImage = "itzg/minecraft-server:java8"
)

Container

View Source
const (
	WhitelistProps    = "white-list"
	RconPasswordProps = "rcon.password"
	RconPortProps     = "rcon.port"
)

server.properties

View Source
const (
	EulaEnvName = "EULA"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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