v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 6 Imported by: 1 module, 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 v1alpha1 contains API Schema definitions for the garo v1alpha1 API group +kubebuilder:object:generate=true +groupName=garo.tietoevry.com

Index

Constants

This section is empty.

Variables

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

This section is empty.

Types

type GithubActionRunner

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

	Spec   GithubActionRunnerSpec   `json:"spec,omitempty"`
	Status GithubActionRunnerStatus `json:"status,omitempty"`
}

GithubActionRunner is the Schema for the githubactionrunners API +kubebuilder:subresource:status +kubebuilder:resource:path=githubactionrunners,scope=Namespaced +kubebuilder:printcolumn:name="currentPoolSize",type=integer,JSONPath=`.status.currentSize`

func (*GithubActionRunner) DeepCopy

func (in *GithubActionRunner) DeepCopy() *GithubActionRunner

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

func (*GithubActionRunner) DeepCopyInto

func (in *GithubActionRunner) DeepCopyInto(out *GithubActionRunner)

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

func (*GithubActionRunner) DeepCopyObject

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

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

type GithubActionRunnerList

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

GithubActionRunnerList contains a list of GithubActionRunner

func (*GithubActionRunnerList) DeepCopy

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

func (*GithubActionRunnerList) DeepCopyInto

func (in *GithubActionRunnerList) DeepCopyInto(out *GithubActionRunnerList)

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

func (*GithubActionRunnerList) DeepCopyObject

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

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

type GithubActionRunnerSpec

type GithubActionRunnerSpec struct {
	// Your GitHub organization
	// +kubebuilder:validation:Required
	Organization string `json:"organization"`

	// Optional Github repository name, if repo scoped.
	// +kubebuilder:validation:Optional
	Repository string `json:"repository,omitempty"`

	// Minimum pool-size. Note that you need one runner in order for jobs to be schedulable, else they fail claiming no runners match the selector labels.
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Required
	MinRunners int `json:"minRunners"`

	// Maximum pool-size.
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Required
	MaxRunners int `json:"maxRunners"`

	// +kubebuilder:validation:Required
	PodTemplateSpec v1.PodTemplateSpec `json:"podTemplateSpec"`

	// +kubebuilder:validation:Required
	TokenRef v1.SecretKeySelector `json:"tokenRef"`

	// How often to reconcile/check the runner pool. If undefined the controller uses a default of 1m
	// +kubebuilder:validation:Optional
	ReconciliationPeriod string `json:"reconciliationPeriod"`
}

GithubActionRunnerSpec defines the desired state of GithubActionRunner

func (*GithubActionRunnerSpec) DeepCopy

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

func (*GithubActionRunnerSpec) DeepCopyInto

func (in *GithubActionRunnerSpec) DeepCopyInto(out *GithubActionRunnerSpec)

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

func (GithubActionRunnerSpec) GetReconciliationPeriod

func (r GithubActionRunnerSpec) GetReconciliationPeriod() time.Duration

GetReconciliationPeriod returns period as a Duration

type GithubActionRunnerStatus

type GithubActionRunnerStatus struct {
	CurrentSize int `json:"currentSize"`
}

GithubActionRunnerStatus defines the observed state of GithubActionRunner

func (*GithubActionRunnerStatus) DeepCopy

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

func (*GithubActionRunnerStatus) DeepCopyInto

func (in *GithubActionRunnerStatus) DeepCopyInto(out *GithubActionRunnerStatus)

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