v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the batchops v1alpha1 API group. +kubebuilder:object:generate=true +groupName=batchops.io

Index

Constants

This section is empty.

Variables

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

type APIAuth struct {
	// +kubebuilder:validation:Required
	Type APIAuthType `json:"type"`
	// +kubebuilder:validation:Required
	SecretRef SecretRef `json:"secretRef"`
	// +kubebuilder:validation:Required
	UsernameKey string `json:"usernameKey,omitempty"`
	// +kubebuilder:validation:Required
	PasswordKey string `json:"passwordKey,omitempty"`
}

func (*APIAuth) DeepCopy

func (in *APIAuth) DeepCopy() *APIAuth

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

func (*APIAuth) DeepCopyInto

func (in *APIAuth) DeepCopyInto(out *APIAuth)

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

type APIAuthType

type APIAuthType string

+kubebuilder:validation:Enum=basic;bearer

const (
	BasicAuth  APIAuthType = "basic"
	BearerAuth APIAuthType = "bearer"
)

type APIConfig

type APIConfig struct {
	// +kubebuilder:validation:Required
	URL     string            `json:"url"`
	Headers map[string]string `json:"headers,omitempty"`
	Auth    *APIAuth          `json:"auth,omitempty"`
	// +kubebuilder:validation:Required
	JSONPath string `json:"jsonPath,omitempty"`
}

func (*APIConfig) DeepCopy

func (in *APIConfig) DeepCopy() *APIConfig

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

func (*APIConfig) DeepCopyInto

func (in *APIConfig) DeepCopyInto(out *APIConfig)

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

type JobTemplateSpec

type JobTemplateSpec struct {
	Image     string                      `json:"image"`
	Command   []string                    `json:"command"`
	EnvName   string                      `json:"envName"`
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

func (*JobTemplateSpec) DeepCopy

func (in *JobTemplateSpec) DeepCopy() *JobTemplateSpec

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

func (*JobTemplateSpec) DeepCopyInto

func (in *JobTemplateSpec) DeepCopyInto(out *JobTemplateSpec)

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

type ListCronJob

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

	Spec   ListCronJobSpec   `json:"spec,omitempty"`
	Status ListCronJobStatus `json:"status,omitempty"`
}

ListCronJob is the Schema for the listcronjobs API.

func (*ListCronJob) DeepCopy

func (in *ListCronJob) DeepCopy() *ListCronJob

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

func (*ListCronJob) DeepCopyInto

func (in *ListCronJob) DeepCopyInto(out *ListCronJob)

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

func (*ListCronJob) DeepCopyObject

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

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

type ListCronJobList

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

ListCronJobList contains a list of ListCronJob.

func (*ListCronJobList) DeepCopy

func (in *ListCronJobList) DeepCopy() *ListCronJobList

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

func (*ListCronJobList) DeepCopyInto

func (in *ListCronJobList) DeepCopyInto(out *ListCronJobList)

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

func (*ListCronJobList) DeepCopyObject

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

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

type ListCronJobSpec

type ListCronJobSpec struct {
	ListSourceRef              string                    `json:"listSourceRef,omitempty"`
	StaticList                 []string                  `json:"staticList,omitempty"`
	Parallelism                int32                     `json:"parallelism"`
	Template                   JobTemplateSpec           `json:"template"`
	TTLSecondsAfterFinished    *int32                    `json:"ttlSecondsAfterFinished,omitempty"`
	Schedule                   string                    `json:"schedule"`
	ConcurrencyPolicy          batchv1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"`
	StartingDeadlineSeconds    *int64                    `json:"startingDeadlineSeconds,omitempty"`
	SuccessfulJobsHistoryLimit *int32                    `json:"successfulJobsHistoryLimit,omitempty"`
	FailedJobsHistoryLimit     *int32                    `json:"failedJobsHistoryLimit,omitempty"`
	Suspend                    *bool                     `json:"suspend,omitempty"`
}

ListCronJobSpec defines the desired state of ListCronJob.

func (*ListCronJobSpec) DeepCopy

func (in *ListCronJobSpec) DeepCopy() *ListCronJobSpec

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

func (*ListCronJobSpec) DeepCopyInto

func (in *ListCronJobSpec) DeepCopyInto(out *ListCronJobSpec)

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

type ListCronJobStatus

type ListCronJobStatus struct {
	Active           []corev1.ObjectReference `json:"active,omitempty"`
	LastScheduleTime *metav1.Time             `json:"lastScheduleTime,omitempty"`
}

ListCronJobStatus defines the observed state of ListCronJob.

func (*ListCronJobStatus) DeepCopy

func (in *ListCronJobStatus) DeepCopy() *ListCronJobStatus

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

func (*ListCronJobStatus) DeepCopyInto

func (in *ListCronJobStatus) DeepCopyInto(out *ListCronJobStatus)

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

type ListJob

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

	Spec   ListJobSpec   `json:"spec,omitempty"`
	Status ListJobStatus `json:"status,omitempty"`
}

func (*ListJob) DeepCopy

func (in *ListJob) DeepCopy() *ListJob

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

func (*ListJob) DeepCopyInto

func (in *ListJob) DeepCopyInto(out *ListJob)

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

func (*ListJob) DeepCopyObject

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

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

type ListJobList

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

func (*ListJobList) DeepCopy

func (in *ListJobList) DeepCopy() *ListJobList

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

func (*ListJobList) DeepCopyInto

func (in *ListJobList) DeepCopyInto(out *ListJobList)

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

func (*ListJobList) DeepCopyObject

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

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

type ListJobSpec

type ListJobSpec struct {
	ListSourceRef           string           `json:"listSourceRef,omitempty"`
	StaticList              []string         `json:"staticList,omitempty"`
	Parallelism             int32            `json:"parallelism"`
	Template                JobTemplateSpec  `json:"template"`
	TTLSecondsAfterFinished *int32           `json:"ttlSecondsAfterFinished,omitempty"`
	DeleteAfter             *metav1.Duration `json:"deleteAfter,omitempty"`
}

func (*ListJobSpec) DeepCopy

func (in *ListJobSpec) DeepCopy() *ListJobSpec

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

func (*ListJobSpec) DeepCopyInto

func (in *ListJobSpec) DeepCopyInto(out *ListJobSpec)

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

type ListJobStatus

type ListJobStatus struct {
	JobName string `json:"jobName,omitempty"`
}

func (*ListJobStatus) DeepCopy

func (in *ListJobStatus) DeepCopy() *ListJobStatus

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

func (*ListJobStatus) DeepCopyInto

func (in *ListJobStatus) DeepCopyInto(out *ListJobStatus)

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

type ListSource

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

	Spec   ListSourceSpec   `json:"spec,omitempty"`
	Status ListSourceStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Type",type="string",JSONPath=".spec.type" +kubebuilder:printcolumn:name="Items",type="integer",JSONPath=".status.itemCount" +kubebuilder:printcolumn:name="Last Update",type="date",JSONPath=".status.lastUpdateTime" +kubebuilder:printcolumn:name="Error",type="string",JSONPath=".status.error" +kubebuilder:validation:Required

func (*ListSource) DeepCopy

func (in *ListSource) DeepCopy() *ListSource

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

func (*ListSource) DeepCopyInto

func (in *ListSource) DeepCopyInto(out *ListSource)

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

func (*ListSource) DeepCopyObject

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

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

type ListSourceList

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

func (*ListSourceList) DeepCopy

func (in *ListSourceList) DeepCopy() *ListSourceList

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

func (*ListSourceList) DeepCopyInto

func (in *ListSourceList) DeepCopyInto(out *ListSourceList)

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

func (*ListSourceList) DeepCopyObject

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

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

type ListSourceSpec

type ListSourceSpec struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=static;api;postgresql
	Type ListSourceType `json:"type"`
	// +kubebuilder:validation:Minimum=1
	IntervalSeconds int             `json:"intervalSeconds,omitempty"`
	API             *APIConfig      `json:"api,omitempty"`
	Postgres        *PostgresConfig `json:"postgres,omitempty"`
	StaticList      []string        `json:"staticList,omitempty"`
}

func (*ListSourceSpec) DeepCopy

func (in *ListSourceSpec) DeepCopy() *ListSourceSpec

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

func (*ListSourceSpec) DeepCopyInto

func (in *ListSourceSpec) DeepCopyInto(out *ListSourceSpec)

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

type ListSourceStatus

type ListSourceStatus struct {
	LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
	ItemCount      int          `json:"itemCount,omitempty"`
	Error          string       `json:"error,omitempty"`
	State          string       `json:"state,omitempty"`
}

func (*ListSourceStatus) DeepCopy

func (in *ListSourceStatus) DeepCopy() *ListSourceStatus

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

func (*ListSourceStatus) DeepCopyInto

func (in *ListSourceStatus) DeepCopyInto(out *ListSourceStatus)

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

type ListSourceType

type ListSourceType string
const (
	StaticList   ListSourceType = "static"
	APIList      ListSourceType = "api"
	PostgresList ListSourceType = "postgresql"
)

type PostgresAuth

type PostgresAuth struct {
	// +kubebuilder:validation:Required
	SecretRef SecretRef `json:"secretRef"`
	// +kubebuilder:validation:Required
	PasswordKey string `json:"passwordKey"`
}

func (*PostgresAuth) DeepCopy

func (in *PostgresAuth) DeepCopy() *PostgresAuth

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

func (*PostgresAuth) DeepCopyInto

func (in *PostgresAuth) DeepCopyInto(out *PostgresAuth)

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

type PostgresConfig

type PostgresConfig struct {
	// +kubebuilder:validation:Required
	ConnectionString string `json:"connectionString"`
	// +kubebuilder:validation:Required
	Query string        `json:"query"`
	Auth  *PostgresAuth `json:"auth,omitempty"`
}

func (*PostgresConfig) DeepCopy

func (in *PostgresConfig) DeepCopy() *PostgresConfig

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

func (*PostgresConfig) DeepCopyInto

func (in *PostgresConfig) DeepCopyInto(out *PostgresConfig)

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

type SecretRef

type SecretRef struct {
	// +kubebuilder:validation:Required
	Name string `json:"name"`
	// +kubebuilder:validation:Optional
	Namespace string `json:"namespace,omitempty"`
	// +kubebuilder:validation:Required
	Key string `json:"key"`
}

func (*SecretRef) DeepCopy

func (in *SecretRef) DeepCopy() *SecretRef

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

func (*SecretRef) DeepCopyInto

func (in *SecretRef) DeepCopyInto(out *SecretRef)

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