v1alpha1

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the batch v1alpha1 API group

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "batch.cs.sap.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
)
View Source
var (
	// Needed by kubernetes/code-generator
	SchemeGroupVersion = GroupVersion
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Needed by kubernetes/code-generator

Types

type ReactiveJob

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

	Spec ReactiveJobSpec `json:"spec,omitempty"`
	// +kubebuilder:default={"observedGeneration":-1}
	Status ReactiveJobStatus `json:"status,omitempty"`
}

ReactiveJob is the Schema for the reactivejobs API.

func (*ReactiveJob) DeepCopy

func (in *ReactiveJob) DeepCopy() *ReactiveJob

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

func (*ReactiveJob) DeepCopyInto

func (in *ReactiveJob) DeepCopyInto(out *ReactiveJob)

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

func (*ReactiveJob) DeepCopyObject

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

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

func (*ReactiveJob) Default

func (r *ReactiveJob) Default()

func (*ReactiveJob) SetState

func (reactiveJob *ReactiveJob) SetState(state ReactiveJobState, message string)

Set state (and the 'Ready' condition) of a ReactiveJob

func (*ReactiveJob) SetupWebhookWithManager

func (r *ReactiveJob) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ReactiveJob) ValidateCreate

func (r *ReactiveJob) ValidateCreate() (admission.Warnings, error)

func (*ReactiveJob) ValidateDelete

func (r *ReactiveJob) ValidateDelete() (admission.Warnings, error)

func (*ReactiveJob) ValidateUpdate

func (r *ReactiveJob) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

type ReactiveJobCondition

type ReactiveJobCondition struct {
	// Type of the condition.
	Type ReactiveJobConditionType `json:"type"`

	// Status of the condition, one of ('True', 'False', 'Unknown').
	Status corev1.ConditionStatus `json:"status"`

	// LastUpdateTime is the timestamp corresponding to the last status
	// update of this condition.
	// +optional
	LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`

	// LastTransitionTime is the timestamp corresponding to the last status
	// change of this condition.
	// +optional
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`

	// Reason is a brief machine readable explanation for the condition's last
	// transition.
	// +optional
	Reason string `json:"reason,omitempty"`

	// Message is a human readable description of the details of the last
	// transition, complementing reason.
	// +optional
	Message string `json:"message,omitempty"`
}

ReactiveJobCondition contains condition information for a ReactiveJob.

func (*ReactiveJobCondition) DeepCopy

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

func (*ReactiveJobCondition) DeepCopyInto

func (in *ReactiveJobCondition) DeepCopyInto(out *ReactiveJobCondition)

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

type ReactiveJobConditionType

type ReactiveJobConditionType string

ReactiveJobConditionType represents a ReactiveJob condition type.

const (
	// ReactiveJobConditionReady represents the fact that a given ReactiveJob is ready.
	ReactiveJobConditionTypeReady ReactiveJobConditionType = "Ready"
)

type ReactiveJobList

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

ReactiveJobList contains a list of ReactiveJob.

func (*ReactiveJobList) DeepCopy

func (in *ReactiveJobList) DeepCopy() *ReactiveJobList

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

func (*ReactiveJobList) DeepCopyInto

func (in *ReactiveJobList) DeepCopyInto(out *ReactiveJobList)

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

func (*ReactiveJobList) DeepCopyObject

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

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

type ReactiveJobSpec

type ReactiveJobSpec struct {
	// Specifies the job that will be created when executing.
	JobTemplate batchv1.JobTemplateSpec `json:"jobTemplate"`
}

ReactiveJobSpec defines the desired state of ReactiveJob.

func (*ReactiveJobSpec) DeepCopy

func (in *ReactiveJobSpec) DeepCopy() *ReactiveJobSpec

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

func (*ReactiveJobSpec) DeepCopyInto

func (in *ReactiveJobSpec) DeepCopyInto(out *ReactiveJobSpec)

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

type ReactiveJobState

type ReactiveJobState string

ReactiveJobState represents a condition state in a readable form. +kubebuilder:validation:Enum=New;Processing;DeletionBlocked;Deleting;Ready;Error

const (
	// Represents the fact that the ReactiveJob was first seen.
	ReactiveJobStateNew ReactiveJobState = "New"

	// Represents the fact that the ReactiveJob is reconciling.
	ReactiveJobStateProcessing ReactiveJobState = "Processing"

	// Represents the fact that the ReactiveJob should be deleted, but deletion is blocked.
	ReactiveJobStateDeletionBlocked ReactiveJobState = "DeletionBlocked"

	// Represents the fact that the ReactiveJob is being deleted.
	ReactiveJobStateDeleting ReactiveJobState = "Deleting"

	// Represents the fact that the ReactiveJob is ready.
	ReactiveJobStateReady ReactiveJobState = "Ready"

	// Represents the fact that the ReactiveJob has an error.
	ReactiveJobStateError ReactiveJobState = "Error"
)

These are valid condition states.

type ReactiveJobStatus

type ReactiveJobStatus struct {
	// Observed generation.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// List of status conditions to indicate the status of a ReactiveJob.
	// +optional
	Conditions []ReactiveJobCondition `json:"conditions,omitempty"`

	// Readable form of the state.
	// +optional
	State ReactiveJobState `json:"state,omitempty"`

	// Name of current job; that is, the name of the last job that was created for this ReactiveJob.
	// +optional
	CurrentJobName string `json:"currentJobName,omitempty"`
}

ReactiveJobStatus defines the observed state of ReactiveJob.

func (*ReactiveJobStatus) DeepCopy

func (in *ReactiveJobStatus) DeepCopy() *ReactiveJobStatus

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

func (*ReactiveJobStatus) DeepCopyInto

func (in *ReactiveJobStatus) DeepCopyInto(out *ReactiveJobStatus)

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