v1alpha1

package
v0.0.0-...-01a409d Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 13 Imported by: 3

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the runner v1alpha1 API group +kubebuilder:object:generate=true +groupName=runner.devjoes.com

Index

Constants

View Source
const (
	DefaultWorkVolumeSize = "5Gi"
	DefaultImage          = "myoung34/github-runner:latest"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "runner.devjoes.com", 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

func Setup

func Setup(sr *ScaledActionRunner, crNamespace string)

func Validate

func Validate(ctx context.Context, sr *ScaledActionRunner, c client.Client, apiServerNs string) error

Types

type Runner

type Runner struct {
	Image                   string                                     `json:"image,omitempty"`
	RunnerLabels            string                                     `json:"runnerLabels,omitempty"`
	Annotations             map[string]string                          `json:"annotations,omitempty"`
	NodeSelector            map[string]string                          `json:"nodeSelector,omitempty"`
	Env                     []corev1.EnvVar                            `json:"env,omitempty"`
	WorkVolumeClaimTemplate *corev1.PersistentVolumeClaimSpec          `json:"workVolumeClaimTemplate,omitempty"`
	Limits                  *map[corev1.ResourceName]resource.Quantity `json:"limits,omitempty"`
	Requests                *map[corev1.ResourceName]resource.Quantity `json:"requests,omitempty"`
	Tolerations             []corev1.Toleration                        `json:"tolerations,omitempty"`
	ServiceAccountName      string                                     `json:"serviceAccountName,omitempty"`
	MountDockerSock         *bool                                      `json:"mountDockerSock,omitempty"`
	Patch                   string                                     `json:"patch,omitempty"`
}

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.

type ScaledActionRunner

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

	Spec   ScaledActionRunnerSpec   `json:"spec,omitempty"`
	Status ScaledActionRunnerStatus `json:"status,omitempty"`
}

ScaledActionRunner is the Schema for the scaledactionrunners API

func (*ScaledActionRunner) DeepCopy

func (in *ScaledActionRunner) DeepCopy() *ScaledActionRunner

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

func (*ScaledActionRunner) DeepCopyInto

func (in *ScaledActionRunner) DeepCopyInto(out *ScaledActionRunner)

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

func (*ScaledActionRunner) DeepCopyObject

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

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

type ScaledActionRunnerCore

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

	Spec   ScaledActionRunnerCoreSpec   `json:"spec,omitempty"`
	Status ScaledActionRunnerCoreStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:path=scaledactionrunnercore,scope=Cluster ScaledActionRunnerCore is the Schema for the scaledactionrunnercore API

func (*ScaledActionRunnerCore) DeepCopy

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

func (*ScaledActionRunnerCore) DeepCopyInto

func (in *ScaledActionRunnerCore) DeepCopyInto(out *ScaledActionRunnerCore)

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

func (*ScaledActionRunnerCore) DeepCopyObject

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

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

func (*ScaledActionRunnerCore) Setup

func (a *ScaledActionRunnerCore) Setup()

type ScaledActionRunnerCoreList

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

ScaledActionRunnerCoreList contains a list of ScaledActionRunnerCore

func (*ScaledActionRunnerCoreList) DeepCopy

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

func (*ScaledActionRunnerCoreList) DeepCopyInto

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

func (*ScaledActionRunnerCoreList) DeepCopyObject

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

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

type ScaledActionRunnerCoreSpec

type ScaledActionRunnerCoreSpec struct {

	// Foo is an example field of ScaledActionRunnerCore. Edit ScaledActionRunnerCore_types.go to remove/update
	ApiServerNamespace   string        `json:"apiServerNamespace"`
	ApiServerName        string        `json:"apiServerName"`
	ApiServerImage       string        `json:"apiServerImage,omitempty"`
	ApiServerReplicas    int32         `json:"apiServerReplicas,omitempty"`
	ApiServerExtraArgs   []string      `json:"apiServerExtraArgs,omitempty"`
	CreateApiServer      *bool         `json:"createApiServer,omitempty"`
	CreateMemcached      *bool         `json:"createMemcached,omitempty"`
	CreateAuthentication *bool         `json:"createAuthentication,omitempty"`
	PrometheusNamespace  string        `json:"prometheusNamespace,omitempty"`
	MemcachedReplicas    int32         `json:"memcachedReplicas,omitempty"`
	MemcachedImage       string        `json:"memcachedImage,omitempty"`
	SslCertSecret        string        `json:"sslCertSecret"`
	KedaNamespace        string        `json:"kedaNamespace,omitempty"`
	MemcachedAuth        bool          `json:"memcachedAuth,omitempty"`
	MemcacheCredsSecret  string        `json:"memcacheCredsSecret,omitempty"`
	MemcachedUser        *string       `json:"memcacheUser,omitempty"`
	MemcacheServers      string        `json:"memcacheServers,omitempty"`
	CacheWindow          time.Duration `json:"cacheWindow,omitempty"`
	CacheWindowWhenEmpty time.Duration `json:"cacheWindowWhenEmpty,omitempty"`
	ResyncInterval       time.Duration `json:"resyncInterval,omitempty"`
	Namespaces           []string      `json:"namespaces,omitempty"`
}

ScaledActionRunnerCoreSpec defines the desired state of ScaledActionRunnerCore

func (*ScaledActionRunnerCoreSpec) DeepCopy

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

func (*ScaledActionRunnerCoreSpec) DeepCopyInto

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

type ScaledActionRunnerCoreStatus

type ScaledActionRunnerCoreStatus struct {
}

ScaledActionRunnerCoreStatus defines the observed state of ScaledActionRunnerCore

func (*ScaledActionRunnerCoreStatus) DeepCopy

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

func (*ScaledActionRunnerCoreStatus) DeepCopyInto

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

type ScaledActionRunnerList

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

ScaledActionRunnerList contains a list of ScaledActionRunner

func (*ScaledActionRunnerList) DeepCopy

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

func (*ScaledActionRunnerList) DeepCopyInto

func (in *ScaledActionRunnerList) DeepCopyInto(out *ScaledActionRunnerList)

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

func (*ScaledActionRunnerList) DeepCopyObject

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

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

type ScaledActionRunnerSpec

type ScaledActionRunnerSpec struct {

	// Foo is an example field of ScaledActionRunner. Edit ScaledActionRunner_types.go to remove/update
	MaxRunners            int32            `json:"maxRunners"`
	MinRunners            int32            `json:"minRunners,omitempty"`
	RunnerSecrets         []string         `json:"runnerSecrets"`
	GithubTokenSecret     string           `json:"githubTokenSecret"`
	Owner                 string           `json:"owner"`
	Repo                  string           `json:"repo"`
	Scaling               *Scaling         `json:"scaling,omitempty"`
	ScaleFactor           *string          `json:"scaleFactor,omitempty"`
	MetricsSelector       *string          `json:"metricsSelector,omitempty"`
	Runner                *Runner          `json:"runner,omitempty"`
	ForceScaleUpWindow    *metav1.Duration `json:"forceScaleUpWindow,omitempty"`
	ForceScaleUpFrequency *metav1.Duration `json:"forceScaleUpFrequency,omitempty"`
}

ScaledActionRunnerSpec defines the desired state of ScaledActionRunner

func (*ScaledActionRunnerSpec) DeepCopy

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

func (*ScaledActionRunnerSpec) DeepCopyInto

func (in *ScaledActionRunnerSpec) DeepCopyInto(out *ScaledActionRunnerSpec)

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

type ScaledActionRunnerStatus

type ScaledActionRunnerStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	ReferencedSecrets map[string]string `json:"referencedSecrets,omitempty"`
}

ScaledActionRunnerStatus defines the observed state of ScaledActionRunner

func (*ScaledActionRunnerStatus) DeepCopy

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

func (*ScaledActionRunnerStatus) DeepCopyInto

func (in *ScaledActionRunnerStatus) DeepCopyInto(out *ScaledActionRunnerStatus)

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

type Scaling

type Scaling struct {
	Behavior        *autoscalingv2beta2.HorizontalPodAutoscalerBehavior `json:"behavior,omitempty"`
	PollingInterval *int32                                              `json:"pollingInterval,omitempty"`
	CooldownPeriod  *int32                                              `json:"cooldownPeriod,omitempty"`
}

func (*Scaling) DeepCopy

func (in *Scaling) DeepCopy() *Scaling

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

func (*Scaling) DeepCopyInto

func (in *Scaling) DeepCopyInto(out *Scaling)

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