v1

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v1 is the version 1 of the DaemonSetJobs Api +k8s:deepcopy-gen=package

Index

Constants

View Source
const (
	// ResourcePlural is the id to indentify pluarals
	ResourcePlural = "daemonsetjobs"
	// ResourceSingular represents the id for identify singular resource
	ResourceSingular = "daemonsetjob"
	// ResourceKind
	ResourceKind = "DaemonSetJob"
	// ResourceVersion
	ResourceVersion = "v1"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: daemonsetjob.GroupName, Version: ResourceVersion}

SchemeGroupVersion is the group version used to register these objects.

Functions

func GetGeneratedDeepCopyFuncs deprecated

func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc

GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.

Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.

func IsDaemonSetJobDefaulted

func IsDaemonSetJobDefaulted(d *DaemonSetJob) bool

IsDaemonSetJobDefaulted check wether

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func ValidateDaemonSetJob

func ValidateDaemonSetJob(daemonsetjob *DaemonSetJob) field.ErrorList

ValidateDaemonSetJob validates DaemonSetJob

func ValidateDaemonSetJobSpec

func ValidateDaemonSetJobSpec(spec *DaemonSetJobSpec, fieldPath *field.Path) field.ErrorList

ValidateDaemonSetJobSpec validates DaemonSetJobSpec

Types

type DaemonSetJob

type DaemonSetJob struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec represents the desired behaviour of the DaemonSetJob.
	Spec DaemonSetJobSpec `json:"spec,omitempty"`

	// Status contains the current status off the DaemonSetJob
	Status DaemonSetJobStatus `json:"status,omitempty"`
}

DaemonSetJob represents a DaemonSet Job +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func DefaultDaemonSetJob

func DefaultDaemonSetJob(undefaultedDaemonSetJob *DaemonSetJob) *DaemonSetJob

DefaultDaemonSetJob defaults workflow

func (*DaemonSetJob) DeepCopy

func (in *DaemonSetJob) DeepCopy() *DaemonSetJob

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

func (*DaemonSetJob) DeepCopyInto

func (in *DaemonSetJob) DeepCopyInto(out *DaemonSetJob)

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

func (*DaemonSetJob) DeepCopyObject

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

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

type DaemonSetJobCondition

type DaemonSetJobCondition struct {
	// Type of workflow condition
	Type DaemonSetJobConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status api.ConditionStatus `json:"status"`
	// Last time the condition was checked.
	LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"`
	// Last time the condition transited from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// (brief) reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// Human readable message indicating details about last transition.
	Message string `json:"message,omitempty"`
}

DaemonSetJobCondition represent the condition of the DaemonSetJob

func (*DaemonSetJobCondition) DeepCopy

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

func (*DaemonSetJobCondition) DeepCopyInto

func (in *DaemonSetJobCondition) DeepCopyInto(out *DaemonSetJobCondition)

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

type DaemonSetJobConditionType

type DaemonSetJobConditionType string

DaemonSetJobConditionType is the type of DaemonSetJobCondition

const (
	// DaemonSetJobComplete means the workflow has completed its execution.
	DaemonSetJobComplete DaemonSetJobConditionType = "Complete"
	// DaemonSetJobFailed means the workflow has failed its execution.
	DaemonSetJobFailed DaemonSetJobConditionType = "Failed"
)

These are valid conditions of a workflow.

type DaemonSetJobList

type DaemonSetJobList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
	metav1.ListMeta `json:"metadata,omitempty"`

	// Items is the list of DaemonSetJob
	Items []DaemonSetJob `json:"items"`
}

DaemonSetJobList implements list of DaemonSetJob. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*DaemonSetJobList) DeepCopy

func (in *DaemonSetJobList) DeepCopy() *DaemonSetJobList

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

func (*DaemonSetJobList) DeepCopyInto

func (in *DaemonSetJobList) DeepCopyInto(out *DaemonSetJobList)

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

func (*DaemonSetJobList) DeepCopyObject

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

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

type DaemonSetJobNodeJobStatus

type DaemonSetJobNodeJobStatus struct {
	// Name represents the Name of the Step
	Name string `json:"name,omitempty"`
	// Complete reports the completion of status`
	Complete bool `json:"complete"`
	// Reference contains a reference to the DaemonSetJob JobNode
	Reference api.ObjectReference `json:"reference"`
}

DaemonSetJobNodeJobStatus contains necessary information for the step status

func (*DaemonSetJobNodeJobStatus) DeepCopy

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

func (*DaemonSetJobNodeJobStatus) DeepCopyInto

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

type DaemonSetJobSpec

type DaemonSetJobSpec struct {
	ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"`

	// JobTemplate contains the job specificaton that should be run in this Workflow.
	// Only one between externalRef and JobTemplate can be set.
	JobTemplate *batch.JobTemplateSpec `json:"jobTemplate,omitempty"`

	// NodeSelector use to create DaemonSetJobs only on selected nodes
	NodeSelector *metav1.LabelSelector `json:"nodeSelector,omitempty"`

	// Selector for created jobs (if any)
	Selector *metav1.LabelSelector `json:"selector,omitempty"`
}

DaemonSetJobSpec contains DaemonSetJob specification

func (*DaemonSetJobSpec) DeepCopy

func (in *DaemonSetJobSpec) DeepCopy() *DaemonSetJobSpec

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

func (*DaemonSetJobSpec) DeepCopyInto

func (in *DaemonSetJobSpec) DeepCopyInto(out *DaemonSetJobSpec)

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

type DaemonSetJobStatus

type DaemonSetJobStatus struct {
	// Conditions represent the latest available observations of an object's current state.
	Conditions []DaemonSetJobCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	// StartTime represents time when the workflow was acknowledged by the DaemonSetJob controller
	// It is not guaranteed to be set in happens-before order across separate operations.
	// It is represented in RFC3339 form and is in UTC.
	// StartTime doesn't consider startime of `ExternalReference`
	StartTime *metav1.Time `json:"startTime,omitempty"`

	// CompletionTime represents time when the workflow was completed. It is not guaranteed to
	// be set in happens-before order across separate operations.
	// It is represented in RFC3339 form and is in UTC.
	CompletionTime *metav1.Time `json:"completionTime,omitempty"`

	// The number of actively running jobs.
	// +optional
	Active int32 `json:"active,omitempty" protobuf:"varint,4,opt,name=active"`

	// The number of jobs which reached phase Succeeded.
	// +optional
	Succeeded int32 `json:"succeeded,omitempty" protobuf:"varint,5,opt,name=succeeded"`

	// The number of jobs which reached phase Failed.
	// +optional
	Failed int32 `json:"failed,omitempty" protobuf:"varint,6,opt,name=failed"`
}

DaemonSetJobStatus represents the status of DaemonSetJob

func (*DaemonSetJobStatus) DeepCopy

func (in *DaemonSetJobStatus) DeepCopy() *DaemonSetJobStatus

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

func (*DaemonSetJobStatus) DeepCopyInto

func (in *DaemonSetJobStatus) DeepCopyInto(out *DaemonSetJobStatus)

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