spec

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GarmInstanceNameLabel = "garm/instance-name"
	GarmControllerIDLabel = "garm/controllerID"
	GarmFlavorLabel       = "garm/flavor"
	GarmOSTypeLabel       = "garm/os_type"
	GarmOSArchLabel       = "garm/os_arch"
	GarmOSNameLabel       = "garm/os_name"
	GarmOSVersionLabel    = "garm/os_version"
	GarmRunnerGroupLabel  = "garm/runner-group"
	GarmPoolIDLabel       = "garm/poolID"
)

Variables

This section is empty.

Functions

func CreateRunnerVolume

func CreateRunnerVolume(pod *corev1.Pod) error

func FlavorToResourceRequirements added in v0.3.0

func FlavorToResourceRequirements(flavor string) corev1.ResourceRequirements

func GetFullImagePath

func GetFullImagePath(containerRegistry, imageNameAndTag string) string

func GetRunnerEnvs

func GetRunnerEnvs(gitHubScope GitHubScopeDetails, bootstrapParams params.BootstrapInstance) []corev1.EnvVar

func ParamsToPodLabels

func ParamsToPodLabels(controllerID string, bootstrapParams params.BootstrapInstance) map[string]string

func PodToInstance

func PodToInstance(pod *corev1.Pod, overwriteInstanceStatus params.InstanceStatus) (*params.ProviderInstance, error)

func ToValidLabel

func ToValidLabel(input string) string

Types

type ExtraSpecs

type ExtraSpecs struct {
	OSName    OSName
	OSVersion OSVersion
}

type GitHubScopeDetails

type GitHubScopeDetails struct {
	BaseURL    string
	Repo       string
	Org        string
	Enterprise string
}

func ExtractGitHubScopeDetails

func ExtractGitHubScopeDetails(gitRepoURL string) (GitHubScopeDetails, error)

type ImageDetails

type ImageDetails struct {
	OSType    OSType
	OSName    OSName
	OSArch    OSArch
	OSVersion OSVersion
}

func ExtractImageDetails

func ExtractImageDetails(pod *corev1.Pod) *ImageDetails

type OSArch

type OSArch string

type OSName

type OSName string

type OSType

type OSType string

type OSVersion

type OSVersion string

Jump to

Keyboard shortcuts

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