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 ¶
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 ¶
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 ¶
func (in *AutoscalingRunnerSet) DeepCopy() *AutoscalingRunnerSet
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 ¶
func (in *AutoscalingRunnerSetList) DeepCopy() *AutoscalingRunnerSetList
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 ¶
func (in *AutoscalingRunnerSetSpec) DeepCopy() *AutoscalingRunnerSetSpec
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 ¶
func (in *AutoscalingRunnerSetStatus) DeepCopy() *AutoscalingRunnerSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingRunnerSetStatus.
func (*AutoscalingRunnerSetStatus) DeepCopyInto ¶
func (in *AutoscalingRunnerSetStatus) DeepCopyInto(out *AutoscalingRunnerSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.