arc

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package arc holds the slice of actions-runner-controller's actions.github.com/v1alpha1 API that this operator writes and reads.

The upstream module is not imported: its only semver tags belong to the legacy controller, and its go.mod moves ahead of this one's Go version. Every field here keeps upstream's JSON name, and the operator only ever server-side applies the fields it sets, so whatever else the CRD carries is left to the controller. +kubebuilder:object:generate=true +kubebuilder:skip

Index

Constants

View Source
const (
	// LabelVersion must carry the controller's major and minor version. The
	// controller deletes an AutoscalingRunnerSet whose label does not match.
	LabelVersion            = "app.kubernetes.io/version"
	LabelPartOf             = "app.kubernetes.io/part-of"
	LabelComponent          = "app.kubernetes.io/component"
	LabelScaleSetName       = "actions.github.com/scale-set-name"
	LabelScaleSetNamespace  = "actions.github.com/scale-set-namespace"
	AnnotationManagerRole   = "actions.github.com/cleanup-manager-role-name"
	AnnotationManagerRB     = "actions.github.com/cleanup-manager-role-binding"
	AnnotationNoPermission  = "actions.github.com/cleanup-no-permission-service-account-name"
	AnnotationGitHubSecret  = "actions.github.com/cleanup-github-secret-name"
	FinalizerCleanupProtect = "actions.github.com/cleanup-protection"
)

Labels and annotations the controller reads off an AutoscalingRunnerSet.

Variables

View Source
var (
	// SchemeGroupVersion is the actions-runner-controller API this package
	// mirrors.
	SchemeGroupVersion = schema.GroupVersion{Group: "actions.github.com", Version: "v1alpha1"}

	// SchemeBuilder registers the mirrored types.
	SchemeBuilder = runtime.NewSchemeBuilder(func(s *runtime.Scheme) error {
		s.AddKnownTypes(SchemeGroupVersion, &AutoscalingRunnerSet{}, &AutoscalingRunnerSetList{})
		metav1.AddToGroupVersion(s, SchemeGroupVersion)
		return nil
	})

	// AddToScheme adds the mirrored types to a scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type AutoscalingRunnerSet

type AutoscalingRunnerSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AutoscalingRunnerSetSpec   `json:"spec,omitempty"`
	Status AutoscalingRunnerSetStatus `json:"status,omitempty"`
}

AutoscalingRunnerSet mirrors actions.github.com/v1alpha1 AutoscalingRunnerSet.

func (*AutoscalingRunnerSet) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingRunnerSet.

func (*AutoscalingRunnerSet) DeepCopyInto

func (in *AutoscalingRunnerSet) DeepCopyInto(out *AutoscalingRunnerSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AutoscalingRunnerSet) DeepCopyObject

func (in *AutoscalingRunnerSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AutoscalingRunnerSetList

type AutoscalingRunnerSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AutoscalingRunnerSet `json:"items"`
}

AutoscalingRunnerSetList mirrors actions.github.com/v1alpha1 AutoscalingRunnerSetList.

func (*AutoscalingRunnerSetList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingRunnerSetList.

func (*AutoscalingRunnerSetList) DeepCopyInto

func (in *AutoscalingRunnerSetList) DeepCopyInto(out *AutoscalingRunnerSetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AutoscalingRunnerSetList) DeepCopyObject

func (in *AutoscalingRunnerSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AutoscalingRunnerSetSpec

type AutoscalingRunnerSetSpec struct {
	GitHubConfigUrl    string `json:"githubConfigUrl,omitempty"`
	GitHubConfigSecret string `json:"githubConfigSecret,omitempty"`
	RunnerGroup        string `json:"runnerGroup,omitempty"`
	RunnerScaleSetName string `json:"runnerScaleSetName,omitempty"`

	Template         corev1.PodTemplateSpec  `json:"template,omitempty"`
	ListenerTemplate *corev1.PodTemplateSpec `json:"listenerTemplate,omitempty"`

	MaxRunners *int `json:"maxRunners,omitempty"`
	MinRunners *int `json:"minRunners,omitempty"`
}

AutoscalingRunnerSetSpec is the part of upstream's spec this operator sets.

func (*AutoscalingRunnerSetSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingRunnerSetSpec.

func (*AutoscalingRunnerSetSpec) DeepCopyInto

func (in *AutoscalingRunnerSetSpec) DeepCopyInto(out *AutoscalingRunnerSetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AutoscalingRunnerSetStatus

type AutoscalingRunnerSetStatus struct {
	Phase              string `json:"phase,omitempty"`
	ObservedGeneration int64  `json:"observedGeneration,omitempty"`
}

AutoscalingRunnerSetStatus is the part of upstream's status this operator reads.

func (*AutoscalingRunnerSetStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingRunnerSetStatus.

func (*AutoscalingRunnerSetStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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