v1alpha1

package
v0.27.6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 12 Imported by: 5 modules, 1 package

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 v1 contains API Schema definitions for the batch v1 API group +kubebuilder:object:generate=true +groupName=actions.github.com

Index

Constants

This section is empty.

Variables

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

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

	Spec   AutoscalingListenerSpec   `json:"spec,omitempty"`
	Status AutoscalingListenerStatus `json:"status,omitempty"`
}

AutoscalingListener is the Schema for the autoscalinglisteners API

func (*AutoscalingListener) DeepCopy

func (in *AutoscalingListener) DeepCopy() *AutoscalingListener

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

func (*AutoscalingListener) DeepCopyInto

func (in *AutoscalingListener) DeepCopyInto(out *AutoscalingListener)

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

func (*AutoscalingListener) DeepCopyObject

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

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

type AutoscalingListenerList

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

AutoscalingListenerList contains a list of AutoscalingListener

func (*AutoscalingListenerList) DeepCopy

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

func (*AutoscalingListenerList) DeepCopyInto

func (in *AutoscalingListenerList) DeepCopyInto(out *AutoscalingListenerList)

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

func (*AutoscalingListenerList) DeepCopyObject

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

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

type AutoscalingListenerSpec

type AutoscalingListenerSpec struct {
	// Required
	GitHubConfigUrl string `json:"githubConfigUrl,omitempty"`

	// Required
	GitHubConfigSecret string `json:"githubConfigSecret,omitempty"`

	// Required
	RunnerScaleSetId int `json:"runnerScaleSetId,omitempty"`

	// Required
	AutoscalingRunnerSetNamespace string `json:"autoscalingRunnerSetNamespace,omitempty"`

	// Required
	AutoscalingRunnerSetName string `json:"autoscalingRunnerSetName,omitempty"`

	// Required
	EphemeralRunnerSetName string `json:"ephemeralRunnerSetName,omitempty"`

	// Required
	// +kubebuilder:validation:Minimum:=0
	MaxRunners int `json:"maxRunners,omitempty"`

	// Required
	// +kubebuilder:validation:Minimum:=0
	MinRunners int `json:"minRunners,omitempty"`

	// Required
	Image string `json:"image,omitempty"`

	// Required
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`

	// +optional
	Proxy *ProxyConfig `json:"proxy,omitempty"`

	// +optional
	GitHubServerTLS *GitHubServerTLSConfig `json:"githubServerTLS,omitempty"`

	// +optional
	Template *corev1.PodTemplateSpec `json:"template,omitempty"`
}

AutoscalingListenerSpec defines the desired state of AutoscalingListener

func (*AutoscalingListenerSpec) DeepCopy

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

func (*AutoscalingListenerSpec) DeepCopyInto

func (in *AutoscalingListenerSpec) DeepCopyInto(out *AutoscalingListenerSpec)

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

type AutoscalingListenerStatus

type AutoscalingListenerStatus struct{}

AutoscalingListenerStatus defines the observed state of AutoscalingListener

func (*AutoscalingListenerStatus) DeepCopy

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

func (*AutoscalingListenerStatus) DeepCopyInto

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

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 is the Schema for the autoscalingrunnersets API

func (*AutoscalingRunnerSet) DeepCopy

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.

func (*AutoscalingRunnerSet) ListenerSpecHash

func (ars *AutoscalingRunnerSet) ListenerSpecHash() string

func (*AutoscalingRunnerSet) RunnerSetSpecHash

func (ars *AutoscalingRunnerSet) RunnerSetSpecHash() string

type AutoscalingRunnerSetList

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

AutoscalingRunnerSetList contains a list of AutoscalingRunnerSet

func (*AutoscalingRunnerSetList) DeepCopy

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 {
	// Required
	GitHubConfigUrl string `json:"githubConfigUrl,omitempty"`

	// Required
	GitHubConfigSecret string `json:"githubConfigSecret,omitempty"`

	// +optional
	RunnerGroup string `json:"runnerGroup,omitempty"`

	// +optional
	RunnerScaleSetName string `json:"runnerScaleSetName,omitempty"`

	// +optional
	Proxy *ProxyConfig `json:"proxy,omitempty"`

	// +optional
	GitHubServerTLS *GitHubServerTLSConfig `json:"githubServerTLS,omitempty"`

	// Required
	Template corev1.PodTemplateSpec `json:"template,omitempty"`

	// +optional
	ListenerTemplate *corev1.PodTemplateSpec `json:"listenerTemplate,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum:=0
	MaxRunners *int `json:"maxRunners,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum:=0
	MinRunners *int `json:"minRunners,omitempty"`
}

AutoscalingRunnerSetSpec defines the desired state of AutoscalingRunnerSet

func (*AutoscalingRunnerSetSpec) DeepCopy

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 {
	// +optional
	CurrentRunners int `json:"currentRunners"`

	// +optional
	State string `json:"state"`

	//+optional
	PendingEphemeralRunners int `json:"pendingEphemeralRunners"`
	// +optional
	RunningEphemeralRunners int `json:"runningEphemeralRunners"`
	// +optional
	FailedEphemeralRunners int `json:"failedEphemeralRunners"`
}

AutoscalingRunnerSetStatus defines the observed state of AutoscalingRunnerSet

func (*AutoscalingRunnerSetStatus) DeepCopy

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

func (*AutoscalingRunnerSetStatus) DeepCopyInto

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

type EphemeralRunner

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

	Spec   EphemeralRunnerSpec   `json:"spec,omitempty"`
	Status EphemeralRunnerStatus `json:"status,omitempty"`
}

EphemeralRunner is the Schema for the ephemeralrunners API

func (*EphemeralRunner) DeepCopy

func (in *EphemeralRunner) DeepCopy() *EphemeralRunner

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

func (*EphemeralRunner) DeepCopyInto

func (in *EphemeralRunner) DeepCopyInto(out *EphemeralRunner)

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

func (*EphemeralRunner) DeepCopyObject

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

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

type EphemeralRunnerList

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

EphemeralRunnerList contains a list of EphemeralRunner

func (*EphemeralRunnerList) DeepCopy

func (in *EphemeralRunnerList) DeepCopy() *EphemeralRunnerList

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

func (*EphemeralRunnerList) DeepCopyInto

func (in *EphemeralRunnerList) DeepCopyInto(out *EphemeralRunnerList)

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

func (*EphemeralRunnerList) DeepCopyObject

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

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

type EphemeralRunnerSet

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

	Spec   EphemeralRunnerSetSpec   `json:"spec,omitempty"`
	Status EphemeralRunnerSetStatus `json:"status,omitempty"`
}

EphemeralRunnerSet is the Schema for the ephemeralrunnersets API

func (*EphemeralRunnerSet) DeepCopy

func (in *EphemeralRunnerSet) DeepCopy() *EphemeralRunnerSet

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

func (*EphemeralRunnerSet) DeepCopyInto

func (in *EphemeralRunnerSet) DeepCopyInto(out *EphemeralRunnerSet)

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

func (*EphemeralRunnerSet) DeepCopyObject

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

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

type EphemeralRunnerSetList

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

EphemeralRunnerSetList contains a list of EphemeralRunnerSet

func (*EphemeralRunnerSetList) DeepCopy

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

func (*EphemeralRunnerSetList) DeepCopyInto

func (in *EphemeralRunnerSetList) DeepCopyInto(out *EphemeralRunnerSetList)

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

func (*EphemeralRunnerSetList) DeepCopyObject

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

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

type EphemeralRunnerSetSpec

type EphemeralRunnerSetSpec struct {
	// Replicas is the number of desired EphemeralRunner resources in the k8s namespace.
	Replicas int `json:"replicas,omitempty"`

	EphemeralRunnerSpec EphemeralRunnerSpec `json:"ephemeralRunnerSpec,omitempty"`
}

EphemeralRunnerSetSpec defines the desired state of EphemeralRunnerSet

func (*EphemeralRunnerSetSpec) DeepCopy

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

func (*EphemeralRunnerSetSpec) DeepCopyInto

func (in *EphemeralRunnerSetSpec) DeepCopyInto(out *EphemeralRunnerSetSpec)

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

type EphemeralRunnerSetStatus

type EphemeralRunnerSetStatus struct {
	// CurrentReplicas is the number of currently running EphemeralRunner resources being managed by this EphemeralRunnerSet.
	CurrentReplicas int `json:"currentReplicas"`

	// +optional
	PendingEphemeralRunners int `json:"pendingEphemeralRunners"`
	// +optional
	RunningEphemeralRunners int `json:"runningEphemeralRunners"`
	// +optional
	FailedEphemeralRunners int `json:"failedEphemeralRunners"`
}

EphemeralRunnerSetStatus defines the observed state of EphemeralRunnerSet

func (*EphemeralRunnerSetStatus) DeepCopy

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

func (*EphemeralRunnerSetStatus) DeepCopyInto

func (in *EphemeralRunnerSetStatus) DeepCopyInto(out *EphemeralRunnerSetStatus)

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

type EphemeralRunnerSpec

type EphemeralRunnerSpec struct {

	// +required
	GitHubConfigUrl string `json:"githubConfigUrl,omitempty"`

	// +required
	GitHubConfigSecret string `json:"githubConfigSecret,omitempty"`

	// +required
	RunnerScaleSetId int `json:"runnerScaleSetId,omitempty"`

	// +optional
	Proxy *ProxyConfig `json:"proxy,omitempty"`

	// +optional
	ProxySecretRef string `json:"proxySecretRef,omitempty"`

	// +optional
	GitHubServerTLS *GitHubServerTLSConfig `json:"githubServerTLS,omitempty"`

	// +required
	corev1.PodTemplateSpec `json:",inline"`
}

EphemeralRunnerSpec defines the desired state of EphemeralRunner

func (*EphemeralRunnerSpec) DeepCopy

func (in *EphemeralRunnerSpec) DeepCopy() *EphemeralRunnerSpec

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

func (*EphemeralRunnerSpec) DeepCopyInto

func (in *EphemeralRunnerSpec) DeepCopyInto(out *EphemeralRunnerSpec)

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

type EphemeralRunnerStatus

type EphemeralRunnerStatus struct {

	// Turns true only if the runner is online.
	// +optional
	Ready bool `json:"ready"`
	// Phase describes phases where EphemeralRunner can be in.
	// The underlying type is a PodPhase, but the meaning is more restrictive
	//
	// The PodFailed phase should be set only when EphemeralRunner fails to start
	// after multiple retries. That signals that this EphemeralRunner won't work,
	// and manual inspection is required
	//
	// The PodSucceded phase should be set only when confirmed that EphemeralRunner
	// actually executed the job and has been removed from the service.
	// +optional
	Phase corev1.PodPhase `json:"phase,omitempty"`
	// +optional
	Reason string `json:"reason,omitempty"`
	// +optional
	Message string `json:"message,omitempty"`

	// +optional
	RunnerId int `json:"runnerId,omitempty"`
	// +optional
	RunnerName string `json:"runnerName,omitempty"`
	// +optional
	RunnerJITConfig string `json:"runnerJITConfig,omitempty"`

	// +optional
	Failures map[string]bool `json:"failures,omitempty"`

	// +optional
	JobRequestId int64 `json:"jobRequestId,omitempty"`

	// +optional
	JobRepositoryName string `json:"jobRepositoryName,omitempty"`

	// +optional
	JobWorkflowRef string `json:"jobWorkflowRef,omitempty"`

	// +optional
	WorkflowRunId int64 `json:"workflowRunId,omitempty"`

	// +optional
	JobDisplayName string `json:"jobDisplayName,omitempty"`
}

EphemeralRunnerStatus defines the observed state of EphemeralRunner

func (*EphemeralRunnerStatus) DeepCopy

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

func (*EphemeralRunnerStatus) DeepCopyInto

func (in *EphemeralRunnerStatus) DeepCopyInto(out *EphemeralRunnerStatus)

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

type GitHubServerTLSConfig

type GitHubServerTLSConfig struct {
	// Required
	CertificateFrom *TLSCertificateSource `json:"certificateFrom,omitempty"`
}

func (*GitHubServerTLSConfig) DeepCopy

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

func (*GitHubServerTLSConfig) DeepCopyInto

func (in *GitHubServerTLSConfig) DeepCopyInto(out *GitHubServerTLSConfig)

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

func (*GitHubServerTLSConfig) ToCertPool

func (c *GitHubServerTLSConfig) ToCertPool(keyFetcher func(name, key string) ([]byte, error)) (*x509.CertPool, error)

type ProxyConfig

type ProxyConfig struct {
	// +optional
	HTTP *ProxyServerConfig `json:"http,omitempty"`

	// +optional
	HTTPS *ProxyServerConfig `json:"https,omitempty"`

	// +optional
	NoProxy []string `json:"noProxy,omitempty"`
}

func (*ProxyConfig) DeepCopy

func (in *ProxyConfig) DeepCopy() *ProxyConfig

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

func (*ProxyConfig) DeepCopyInto

func (in *ProxyConfig) DeepCopyInto(out *ProxyConfig)

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

func (*ProxyConfig) ProxyFunc

func (c *ProxyConfig) ProxyFunc(secretFetcher func(string) (*corev1.Secret, error)) (func(*http.Request) (*url.URL, error), error)

func (*ProxyConfig) ToSecretData

func (c *ProxyConfig) ToSecretData(secretFetcher func(string) (*corev1.Secret, error)) (map[string][]byte, error)

type ProxyServerConfig

type ProxyServerConfig struct {
	// Required
	Url string `json:"url,omitempty"`

	// +optional
	CredentialSecretRef string `json:"credentialSecretRef,omitempty"`
}

func (*ProxyServerConfig) DeepCopy

func (in *ProxyServerConfig) DeepCopy() *ProxyServerConfig

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

func (*ProxyServerConfig) DeepCopyInto

func (in *ProxyServerConfig) DeepCopyInto(out *ProxyServerConfig)

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

type TLSCertificateSource

type TLSCertificateSource struct {
	// Required
	ConfigMapKeyRef *corev1.ConfigMapKeySelector `json:"configMapKeyRef,omitempty"`
}

func (*TLSCertificateSource) DeepCopy

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

func (*TLSCertificateSource) DeepCopyInto

func (in *TLSCertificateSource) DeepCopyInto(out *TLSCertificateSource)

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