Documentation
¶
Index ¶
- Constants
- func BuildEnv4Server(actions []proto.Action, probes []proto.Probe, streaming []string) ([]corev1.EnvVar, error)
- func BuildEnv4Worker(tasks []proto.Task) (*corev1.EnvVar, error)
- func InitCommand() []string
- func IsContainer(container *corev1.Container) bool
- func IsInitCommand(command []string) bool
- func IsLegacyInitCommand(command []string) bool
- func Launch(logger logr.Logger, config server.Config) (bool, error)
- func LegacyInitCommand() []string
- func SharedVolumeMount() corev1.VolumeMount
- func UpdateEnv4Worker(envVars map[string]string, f func(proto.Task) *proto.Task) (*corev1.EnvVar, error)
- func UsesSharedBinary(containers []corev1.Container) bool
Constants ¶
View Source
const ( BinaryPath = "/bin/kbagent" TiniPath = "/bin/tini-static" )
View Source
const ( ContainerName = "kbagent" ContainerName4Worker = "kbagent-worker" InitContainerName = "init-kbagent" DefaultHTTPPortName = "http" DefaultStreamingPortName = "streaming" DefaultHTTPPort = 3501 DefaultStreamingPort = 3502 )
Variables ¶
This section is empty.
Functions ¶
func BuildEnv4Server ¶
func InitCommand ¶
func InitCommand() []string
InitCommand returns the current init-kbagent copy command.
func IsContainer ¶
IsContainer reports whether container belongs to the kbagent runtime.
func IsInitCommand ¶
IsInitCommand reports whether command implements the current init-kbagent copy contract.
func IsLegacyInitCommand ¶
IsLegacyInitCommand reports whether command implements the legacy init-kbagent copy contract.
func LegacyInitCommand ¶
func LegacyInitCommand() []string
LegacyInitCommand returns the init-kbagent copy command used before tini-static became part of the shared kbagent runtime contract.
func SharedVolumeMount ¶
func SharedVolumeMount() corev1.VolumeMount
SharedVolumeMount returns the volume mount used by the shared kbagent binary.
func UpdateEnv4Worker ¶
func UsesSharedBinary ¶
UsesSharedBinary reports whether the kbagent server container runs the binary copied to the shared mount.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.