Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the runner v1alpha1 API group +kubebuilder:object:generate=true +groupName=runner.devjoes.com
Index ¶
- Constants
- Variables
- func Setup(sr *ScaledActionRunner, crNamespace string)
- func Validate(ctx context.Context, sr *ScaledActionRunner, c client.Client, ...) error
- type Runner
- type ScaledActionRunner
- type ScaledActionRunnerCore
- type ScaledActionRunnerCoreList
- type ScaledActionRunnerCoreSpec
- type ScaledActionRunnerCoreStatus
- type ScaledActionRunnerList
- type ScaledActionRunnerSpec
- type ScaledActionRunnerStatus
- type Scaling
Constants ¶
const ( DefaultWorkVolumeSize = "5Gi" DefaultImage = "myoung34/github-runner:latest" )
Variables ¶
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)
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Runner.
func (*Runner) DeepCopyInto ¶
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 ¶
func (in *ScaledActionRunnerCore) DeepCopy() *ScaledActionRunnerCore
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 ¶
func (in *ScaledActionRunnerCoreList) DeepCopy() *ScaledActionRunnerCoreList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaledActionRunnerCoreList.
func (*ScaledActionRunnerCoreList) DeepCopyInto ¶
func (in *ScaledActionRunnerCoreList) DeepCopyInto(out *ScaledActionRunnerCoreList)
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 ¶
func (in *ScaledActionRunnerCoreSpec) DeepCopy() *ScaledActionRunnerCoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaledActionRunnerCoreSpec.
func (*ScaledActionRunnerCoreSpec) DeepCopyInto ¶
func (in *ScaledActionRunnerCoreSpec) DeepCopyInto(out *ScaledActionRunnerCoreSpec)
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 ¶
func (in *ScaledActionRunnerCoreStatus) DeepCopy() *ScaledActionRunnerCoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaledActionRunnerCoreStatus.
func (*ScaledActionRunnerCoreStatus) DeepCopyInto ¶
func (in *ScaledActionRunnerCoreStatus) DeepCopyInto(out *ScaledActionRunnerCoreStatus)
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 ¶
func (in *ScaledActionRunnerList) DeepCopy() *ScaledActionRunnerList
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 ¶
func (in *ScaledActionRunnerSpec) DeepCopy() *ScaledActionRunnerSpec
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 ¶
func (in *ScaledActionRunnerStatus) DeepCopy() *ScaledActionRunnerStatus
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scaling.
func (*Scaling) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.