Documentation ¶
Index ¶
- Constants
- func CreateRunnerVolume(pod *corev1.Pod) error
- func FlavorToResourceRequirements(flavor string) corev1.ResourceRequirements
- func GetFullImagePath(containerRegistry, imageNameAndTag string) string
- func GetRunnerEnvs(gitHubScope GitHubScopeDetails, bootstrapParams params.BootstrapInstance) []corev1.EnvVar
- func ParamsToPodLabels(controllerID string, bootstrapParams params.BootstrapInstance) map[string]string
- func PodToInstance(pod *corev1.Pod, overwriteInstanceStatus params.InstanceStatus) (*params.ProviderInstance, error)
- func ToValidLabel(input string) string
- type ExtraSpecs
- type GitHubScopeDetails
- type ImageDetails
- type OSArch
- type OSName
- type OSType
- type OSVersion
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 FlavorToResourceRequirements ¶ added in v0.3.0
func FlavorToResourceRequirements(flavor string) corev1.ResourceRequirements
func GetFullImagePath ¶
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 ¶
Types ¶
type ExtraSpecs ¶
type GitHubScopeDetails ¶
func ExtractGitHubScopeDetails ¶
func ExtractGitHubScopeDetails(gitRepoURL string) (GitHubScopeDetails, error)
type ImageDetails ¶
func ExtractImageDetails ¶
func ExtractImageDetails(pod *corev1.Pod) *ImageDetails
Click to show internal directories.
Click to hide internal directories.