v1alpha1

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the actions v1alpha1 API group +kubebuilder:object:generate=true +groupName=actions.summerwind.dev

Index

Constants

View Source
const (
	AutoscalingMetricTypeTotalNumberOfQueuedAndInProgressWorkflowRuns = "TotalNumberOfQueuedAndInProgressWorkflowRuns"
	AutoscalingMetricTypePercentageRunnersBusy                        = "PercentageRunnersBusy"
)
View Source
const CacheEntryKeyDesiredReplicas = "desiredReplicas"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "actions.summerwind.dev", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type CacheEntry added in v0.18.0

type CacheEntry struct {
	Key            string      `json:"key,omitempty"`
	Value          int         `json:"value,omitempty"`
	ExpirationTime metav1.Time `json:"expirationTime,omitempty"`
}

func (*CacheEntry) DeepCopy added in v0.18.0

func (in *CacheEntry) DeepCopy() *CacheEntry

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

func (*CacheEntry) DeepCopyInto added in v0.18.0

func (in *CacheEntry) DeepCopyInto(out *CacheEntry)

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

type CapacityReservation added in v0.18.0

type CapacityReservation struct {
	Name           string      `json:"name,omitempty"`
	ExpirationTime metav1.Time `json:"expirationTime,omitempty"`
	Replicas       int         `json:"replicas,omitempty"`
}

CapacityReservation specifies the number of replicas temporarily added to the scale target until ExpirationTime.

func (*CapacityReservation) DeepCopy added in v0.18.0

func (in *CapacityReservation) DeepCopy() *CapacityReservation

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

func (*CapacityReservation) DeepCopyInto added in v0.18.0

func (in *CapacityReservation) DeepCopyInto(out *CapacityReservation)

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

type CheckRunSpec added in v0.18.0

type CheckRunSpec struct {
	Types  []string `json:"types,omitempty"`
	Status string   `json:"status,omitempty"`

	// Names is a list of GitHub Actions glob patterns.
	// Any check_run event whose name matches one of patterns in the list can trigger autoscaling.
	// Note that check_run name seem to equal to the job name you've defined in your actions workflow yaml file.
	// So it is very likely that you can utilize this to trigger depending on the job.
	Names []string `json:"names,omitempty"`
}

https://docs.github.com/en/actions/reference/events-that-trigger-workflows#check_run

func (*CheckRunSpec) DeepCopy added in v0.18.0

func (in *CheckRunSpec) DeepCopy() *CheckRunSpec

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

func (*CheckRunSpec) DeepCopyInto added in v0.18.0

func (in *CheckRunSpec) DeepCopyInto(out *CheckRunSpec)

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

type GitHubEventScaleUpTriggerSpec added in v0.18.0

type GitHubEventScaleUpTriggerSpec struct {
	CheckRun    *CheckRunSpec    `json:"checkRun,omitempty"`
	PullRequest *PullRequestSpec `json:"pullRequest,omitempty"`
	Push        *PushSpec        `json:"push,omitempty"`
}

func (*GitHubEventScaleUpTriggerSpec) DeepCopy added in v0.18.0

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

func (*GitHubEventScaleUpTriggerSpec) DeepCopyInto added in v0.18.0

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

type HorizontalRunnerAutoscaler added in v0.7.0

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

	Spec   HorizontalRunnerAutoscalerSpec   `json:"spec,omitempty"`
	Status HorizontalRunnerAutoscalerStatus `json:"status,omitempty"`
}

HorizontalRunnerAutoscaler is the Schema for the horizontalrunnerautoscaler API

func (*HorizontalRunnerAutoscaler) DeepCopy added in v0.7.0

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

func (*HorizontalRunnerAutoscaler) DeepCopyInto added in v0.7.0

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

func (*HorizontalRunnerAutoscaler) DeepCopyObject added in v0.7.0

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

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

type HorizontalRunnerAutoscalerList added in v0.7.0

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

HorizontalRunnerAutoscalerList contains a list of HorizontalRunnerAutoscaler

func (*HorizontalRunnerAutoscalerList) DeepCopy added in v0.7.0

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

func (*HorizontalRunnerAutoscalerList) DeepCopyInto added in v0.7.0

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

func (*HorizontalRunnerAutoscalerList) DeepCopyObject added in v0.7.0

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

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

type HorizontalRunnerAutoscalerSpec added in v0.7.0

type HorizontalRunnerAutoscalerSpec struct {
	// ScaleTargetRef sis the reference to scaled resource like RunnerDeployment
	ScaleTargetRef ScaleTargetRef `json:"scaleTargetRef,omitempty"`

	// MinReplicas is the minimum number of replicas the deployment is allowed to scale
	// +optional
	MinReplicas *int `json:"minReplicas,omitempty"`

	// MinReplicas is the maximum number of replicas the deployment is allowed to scale
	// +optional
	MaxReplicas *int `json:"maxReplicas,omitempty"`

	// ScaleDownDelaySecondsAfterScaleUp is the approximate delay for a scale down followed by a scale up
	// Used to prevent flapping (down->up->down->... loop)
	// +optional
	ScaleDownDelaySecondsAfterScaleUp *int `json:"scaleDownDelaySecondsAfterScaleOut,omitempty"`

	// Metrics is the collection of various metric targets to calculate desired number of runners
	// +optional
	Metrics []MetricSpec `json:"metrics,omitempty"`

	// ScaleUpTriggers is an experimental feature to increase the desired replicas by 1
	// on each webhook requested received by the webhookBasedAutoscaler.
	//
	// This feature requires you to also enable and deploy the webhookBasedAutoscaler onto your cluster.
	//
	// Note that the added runners remain until the next sync period at least,
	// and they may or may not be used by GitHub Actions depending on the timing.
	// They are intended to be used to gain "resource slack" immediately after you
	// receive a webhook from GitHub, so that you can loosely expect MinReplicas runners to be always available.
	ScaleUpTriggers []ScaleUpTrigger `json:"scaleUpTriggers,omitempty"`

	CapacityReservations []CapacityReservation `json:"capacityReservations,omitempty" patchStrategy:"merge" patchMergeKey:"name"`
}

HorizontalRunnerAutoscalerSpec defines the desired state of HorizontalRunnerAutoscaler

func (*HorizontalRunnerAutoscalerSpec) DeepCopy added in v0.7.0

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

func (*HorizontalRunnerAutoscalerSpec) DeepCopyInto added in v0.7.0

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

type HorizontalRunnerAutoscalerStatus added in v0.7.0

type HorizontalRunnerAutoscalerStatus struct {
	// ObservedGeneration is the most recent generation observed for the target. It corresponds to e.g.
	// RunnerDeployment's generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// DesiredReplicas is the total number of desired, non-terminated and latest pods to be set for the primary RunnerSet
	// This doesn't include outdated pods while upgrading the deployment and replacing the runnerset.
	// +optional
	DesiredReplicas *int `json:"desiredReplicas,omitempty"`

	// +optional
	// +nullable
	LastSuccessfulScaleOutTime *metav1.Time `json:"lastSuccessfulScaleOutTime,omitempty"`

	// +optional
	CacheEntries []CacheEntry `json:"cacheEntries,omitempty"`
}

func (*HorizontalRunnerAutoscalerStatus) DeepCopy added in v0.7.0

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

func (*HorizontalRunnerAutoscalerStatus) DeepCopyInto added in v0.7.0

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

type MetricSpec added in v0.7.0

type MetricSpec struct {
	// Type is the type of metric to be used for autoscaling.
	// The only supported Type is TotalNumberOfQueuedAndInProgressWorkflowRuns
	Type string `json:"type,omitempty"`

	// RepositoryNames is the list of repository names to be used for calculating the metric.
	// For example, a repository name is the REPO part of `github.com/USER/REPO`.
	// +optional
	RepositoryNames []string `json:"repositoryNames,omitempty"`

	// ScaleUpThreshold is the percentage of busy runners greater than which will
	// trigger the hpa to scale runners up.
	// +optional
	ScaleUpThreshold string `json:"scaleUpThreshold,omitempty"`

	// ScaleDownThreshold is the percentage of busy runners less than which will
	// trigger the hpa to scale the runners down.
	// +optional
	ScaleDownThreshold string `json:"scaleDownThreshold,omitempty"`

	// ScaleUpFactor is the multiplicative factor applied to the current number of runners used
	// to determine how many pods should be added.
	// +optional
	ScaleUpFactor string `json:"scaleUpFactor,omitempty"`

	// ScaleDownFactor is the multiplicative factor applied to the current number of runners used
	// to determine how many pods should be removed.
	// +optional
	ScaleDownFactor string `json:"scaleDownFactor,omitempty"`

	// ScaleUpAdjustment is the number of runners added on scale-up.
	// You can only specify either ScaleUpFactor or ScaleUpAdjustment.
	// +optional
	ScaleUpAdjustment int `json:"scaleUpAdjustment,omitempty"`

	// ScaleDownAdjustment is the number of runners removed on scale-down.
	// You can only specify either ScaleDownFactor or ScaleDownAdjustment.
	// +optional
	ScaleDownAdjustment int `json:"scaleDownAdjustment,omitempty"`
}

func (*MetricSpec) DeepCopy added in v0.7.0

func (in *MetricSpec) DeepCopy() *MetricSpec

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

func (*MetricSpec) DeepCopyInto added in v0.7.0

func (in *MetricSpec) DeepCopyInto(out *MetricSpec)

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

type PullRequestSpec added in v0.18.0

type PullRequestSpec struct {
	Types    []string `json:"types,omitempty"`
	Branches []string `json:"branches,omitempty"`
}

https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request

func (*PullRequestSpec) DeepCopy added in v0.18.0

func (in *PullRequestSpec) DeepCopy() *PullRequestSpec

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

func (*PullRequestSpec) DeepCopyInto added in v0.18.0

func (in *PullRequestSpec) DeepCopyInto(out *PullRequestSpec)

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

type PushSpec added in v0.18.0

type PushSpec struct {
}

PushSpec is the condition for triggering scale-up on push event Also see https://docs.github.com/en/actions/reference/events-that-trigger-workflows#push

func (*PushSpec) DeepCopy added in v0.18.0

func (in *PushSpec) DeepCopy() *PushSpec

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

func (*PushSpec) DeepCopyInto added in v0.18.0

func (in *PushSpec) DeepCopyInto(out *PushSpec)

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

type Runner

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

	Spec   RunnerSpec   `json:"spec,omitempty"`
	Status RunnerStatus `json:"status,omitempty"`
}

Runner is the Schema for the runners API

func (*Runner) DeepCopy

func (in *Runner) DeepCopy() *Runner

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

func (*Runner) DeepCopyInto

func (in *Runner) DeepCopyInto(out *Runner)

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

func (*Runner) DeepCopyObject

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

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

func (*Runner) Default added in v0.5.0

func (r *Runner) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (Runner) IsRegisterable

func (r Runner) IsRegisterable() bool

func (*Runner) SetupWebhookWithManager added in v0.5.0

func (r *Runner) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Runner) Validate added in v0.5.0

func (r *Runner) Validate() error

Validate validates resource spec.

func (*Runner) ValidateCreate added in v0.5.0

func (r *Runner) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Runner) ValidateDelete added in v0.5.0

func (r *Runner) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Runner) ValidateUpdate added in v0.5.0

func (r *Runner) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type RunnerDeployment added in v0.4.0

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

	Spec   RunnerDeploymentSpec   `json:"spec,omitempty"`
	Status RunnerDeploymentStatus `json:"status,omitempty"`
}

RunnerDeployment is the Schema for the runnerdeployments API

func (*RunnerDeployment) DeepCopy added in v0.4.0

func (in *RunnerDeployment) DeepCopy() *RunnerDeployment

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

func (*RunnerDeployment) DeepCopyInto added in v0.4.0

func (in *RunnerDeployment) DeepCopyInto(out *RunnerDeployment)

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

func (*RunnerDeployment) DeepCopyObject added in v0.4.0

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

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

func (*RunnerDeployment) Default added in v0.5.0

func (r *RunnerDeployment) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*RunnerDeployment) SetupWebhookWithManager added in v0.5.0

func (r *RunnerDeployment) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*RunnerDeployment) Validate added in v0.5.0

func (r *RunnerDeployment) Validate() error

Validate validates resource spec.

func (*RunnerDeployment) ValidateCreate added in v0.5.0

func (r *RunnerDeployment) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*RunnerDeployment) ValidateDelete added in v0.5.0

func (r *RunnerDeployment) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*RunnerDeployment) ValidateUpdate added in v0.5.0

func (r *RunnerDeployment) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type RunnerDeploymentList added in v0.4.0

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

RunnerList contains a list of Runner

func (*RunnerDeploymentList) DeepCopy added in v0.4.0

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

func (*RunnerDeploymentList) DeepCopyInto added in v0.4.0

func (in *RunnerDeploymentList) DeepCopyInto(out *RunnerDeploymentList)

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

func (*RunnerDeploymentList) DeepCopyObject added in v0.4.0

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

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

type RunnerDeploymentSpec added in v0.4.0

type RunnerDeploymentSpec struct {
	// +optional
	// +nullable
	Replicas *int `json:"replicas,omitempty"`

	// +optional
	// +nullable
	Selector *metav1.LabelSelector `json:"selector"`
	Template RunnerTemplate        `json:"template"`
}

RunnerDeploymentSpec defines the desired state of RunnerDeployment

func (*RunnerDeploymentSpec) DeepCopy added in v0.4.0

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

func (*RunnerDeploymentSpec) DeepCopyInto added in v0.4.0

func (in *RunnerDeploymentSpec) DeepCopyInto(out *RunnerDeploymentSpec)

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

type RunnerDeploymentStatus added in v0.4.0

type RunnerDeploymentStatus struct {
	AvailableReplicas int `json:"availableReplicas"`
	ReadyReplicas     int `json:"readyReplicas"`

	// Replicas is the total number of desired, non-terminated and latest pods to be set for the primary RunnerSet
	// This doesn't include outdated pods while upgrading the deployment and replacing the runnerset.
	// +optional
	Replicas *int `json:"desiredReplicas,omitempty"`
}

func (*RunnerDeploymentStatus) DeepCopy added in v0.4.0

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

func (*RunnerDeploymentStatus) DeepCopyInto added in v0.4.0

func (in *RunnerDeploymentStatus) DeepCopyInto(out *RunnerDeploymentStatus)

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

type RunnerList

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

RunnerList contains a list of Runner

func (*RunnerList) DeepCopy

func (in *RunnerList) DeepCopy() *RunnerList

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

func (*RunnerList) DeepCopyInto

func (in *RunnerList) DeepCopyInto(out *RunnerList)

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

func (*RunnerList) DeepCopyObject

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

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

type RunnerReplicaSet added in v0.4.0

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

	Spec   RunnerReplicaSetSpec   `json:"spec,omitempty"`
	Status RunnerReplicaSetStatus `json:"status,omitempty"`
}

RunnerReplicaSet is the Schema for the runnerreplicasets API

func (*RunnerReplicaSet) DeepCopy added in v0.4.0

func (in *RunnerReplicaSet) DeepCopy() *RunnerReplicaSet

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

func (*RunnerReplicaSet) DeepCopyInto added in v0.4.0

func (in *RunnerReplicaSet) DeepCopyInto(out *RunnerReplicaSet)

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

func (*RunnerReplicaSet) DeepCopyObject added in v0.4.0

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

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

func (*RunnerReplicaSet) Default added in v0.5.0

func (r *RunnerReplicaSet) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*RunnerReplicaSet) SetupWebhookWithManager added in v0.5.0

func (r *RunnerReplicaSet) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*RunnerReplicaSet) Validate added in v0.5.0

func (r *RunnerReplicaSet) Validate() error

Validate validates resource spec.

func (*RunnerReplicaSet) ValidateCreate added in v0.5.0

func (r *RunnerReplicaSet) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*RunnerReplicaSet) ValidateDelete added in v0.5.0

func (r *RunnerReplicaSet) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*RunnerReplicaSet) ValidateUpdate added in v0.5.0

func (r *RunnerReplicaSet) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type RunnerReplicaSetList added in v0.4.0

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

RunnerList contains a list of Runner

func (*RunnerReplicaSetList) DeepCopy added in v0.4.0

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

func (*RunnerReplicaSetList) DeepCopyInto added in v0.4.0

func (in *RunnerReplicaSetList) DeepCopyInto(out *RunnerReplicaSetList)

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

func (*RunnerReplicaSetList) DeepCopyObject added in v0.4.0

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

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

type RunnerReplicaSetSpec added in v0.4.0

type RunnerReplicaSetSpec struct {
	// +optional
	// +nullable
	Replicas *int `json:"replicas,omitempty"`

	// +optional
	// +nullable
	Selector *metav1.LabelSelector `json:"selector"`
	Template RunnerTemplate        `json:"template"`
}

RunnerReplicaSetSpec defines the desired state of RunnerReplicaSet

func (*RunnerReplicaSetSpec) DeepCopy added in v0.4.0

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

func (*RunnerReplicaSetSpec) DeepCopyInto added in v0.4.0

func (in *RunnerReplicaSetSpec) DeepCopyInto(out *RunnerReplicaSetSpec)

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

type RunnerReplicaSetStatus added in v0.4.0

type RunnerReplicaSetStatus struct {
	AvailableReplicas int `json:"availableReplicas"`
	ReadyReplicas     int `json:"readyReplicas"`
}

func (*RunnerReplicaSetStatus) DeepCopy added in v0.4.0

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

func (*RunnerReplicaSetStatus) DeepCopyInto added in v0.4.0

func (in *RunnerReplicaSetStatus) DeepCopyInto(out *RunnerReplicaSetStatus)

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

type RunnerSpec

type RunnerSpec struct {
	// +optional
	// +kubebuilder:validation:Pattern=`^[^/]+$`
	Enterprise string `json:"enterprise,omitempty"`

	// +optional
	// +kubebuilder:validation:Pattern=`^[^/]+$`
	Organization string `json:"organization,omitempty"`

	// +optional
	// +kubebuilder:validation:Pattern=`^[^/]+/[^/]+$`
	Repository string `json:"repository,omitempty"`

	// +optional
	Labels []string `json:"labels,omitempty"`

	// +optional
	Group string `json:"group,omitempty"`

	// +optional
	Containers []corev1.Container `json:"containers,omitempty"`
	// +optional
	DockerdContainerResources corev1.ResourceRequirements `json:"dockerdContainerResources,omitempty"`
	// +optional
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
	// +optional
	VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
	// +optional
	EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"`

	// +optional
	Image string `json:"image"`
	// +optional
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
	// +optional
	Env []corev1.EnvVar `json:"env,omitempty"`

	// +optional
	Volumes []corev1.Volume `json:"volumes,omitempty"`
	// +optional
	WorkDir string `json:"workDir,omitempty"`

	// +optional
	InitContainers []corev1.Container `json:"initContainers,omitempty"`
	// +optional
	SidecarContainers []corev1.Container `json:"sidecarContainers,omitempty"`
	// +optional
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
	// +optional
	AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"`
	// +optional
	SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"`
	// +optional
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
	// +optional
	Affinity *corev1.Affinity `json:"affinity,omitempty"`
	// +optional
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
	// +optional
	EphemeralContainers []corev1.EphemeralContainer `json:"ephemeralContainers,omitempty"`
	// +optional
	TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"`
	// +optional
	DockerdWithinRunnerContainer *bool `json:"dockerdWithinRunnerContainer,omitempty"`
	// +optional
	DockerEnabled *bool `json:"dockerEnabled,omitempty"`
	// +optional
	DockerMTU *int64 `json:"dockerMTU,omitempty"`
}

RunnerSpec defines the desired state of Runner

func (*RunnerSpec) DeepCopy

func (in *RunnerSpec) DeepCopy() *RunnerSpec

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

func (*RunnerSpec) DeepCopyInto

func (in *RunnerSpec) DeepCopyInto(out *RunnerSpec)

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

func (*RunnerSpec) ValidateRepository added in v0.5.0

func (rs *RunnerSpec) ValidateRepository() error

ValidateRepository validates repository field.

type RunnerStatus

type RunnerStatus struct {
	// +optional
	Registration RunnerStatusRegistration `json:"registration"`
	// +optional
	Phase string `json:"phase,omitempty"`
	// +optional
	Reason string `json:"reason,omitempty"`
	// +optional
	Message string `json:"message,omitempty"`
	// +optional
	// +nullable
	LastRegistrationCheckTime *metav1.Time `json:"lastRegistrationCheckTime,omitempty"`
}

RunnerStatus defines the observed state of Runner

func (*RunnerStatus) DeepCopy

func (in *RunnerStatus) DeepCopy() *RunnerStatus

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

func (*RunnerStatus) DeepCopyInto

func (in *RunnerStatus) DeepCopyInto(out *RunnerStatus)

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

type RunnerStatusRegistration

type RunnerStatusRegistration struct {
	Enterprise   string      `json:"enterprise,omitempty"`
	Organization string      `json:"organization,omitempty"`
	Repository   string      `json:"repository,omitempty"`
	Labels       []string    `json:"labels,omitempty"`
	Token        string      `json:"token"`
	ExpiresAt    metav1.Time `json:"expiresAt"`
}

RunnerStatusRegistration contains runner registration status

func (*RunnerStatusRegistration) DeepCopy

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

func (*RunnerStatusRegistration) DeepCopyInto

func (in *RunnerStatusRegistration) DeepCopyInto(out *RunnerStatusRegistration)

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

type RunnerTemplate added in v0.4.0

type RunnerTemplate struct {
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec RunnerSpec `json:"spec,omitempty"`
}

func (*RunnerTemplate) DeepCopy added in v0.4.0

func (in *RunnerTemplate) DeepCopy() *RunnerTemplate

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

func (*RunnerTemplate) DeepCopyInto added in v0.4.0

func (in *RunnerTemplate) DeepCopyInto(out *RunnerTemplate)

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

type ScaleTargetRef added in v0.7.0

type ScaleTargetRef struct {
	Name string `json:"name,omitempty"`
}

func (*ScaleTargetRef) DeepCopy added in v0.7.0

func (in *ScaleTargetRef) DeepCopy() *ScaleTargetRef

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

func (*ScaleTargetRef) DeepCopyInto added in v0.7.0

func (in *ScaleTargetRef) DeepCopyInto(out *ScaleTargetRef)

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

type ScaleUpTrigger added in v0.18.0

type ScaleUpTrigger struct {
	GitHubEvent *GitHubEventScaleUpTriggerSpec `json:"githubEvent,omitempty"`
	Amount      int                            `json:"amount,omitempty"`
	Duration    metav1.Duration                `json:"duration,omitempty"`
}

func (*ScaleUpTrigger) DeepCopy added in v0.18.0

func (in *ScaleUpTrigger) DeepCopy() *ScaleUpTrigger

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

func (*ScaleUpTrigger) DeepCopyInto added in v0.18.0

func (in *ScaleUpTrigger) DeepCopyInto(out *ScaleUpTrigger)

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