v1alpha1

package
v0.0.0-...-6441d12 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

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

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

	Spec   SnoopyJobSpec   `json:"spec,omitempty"`
	Status SnoopyJobStatus `json:"status,omitempty"`
}

SnoopyJob is the Schema for the snoopyjobs API.

func (*SnoopyJob) DeepCopy

func (in *SnoopyJob) DeepCopy() *SnoopyJob

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

func (*SnoopyJob) DeepCopyInto

func (in *SnoopyJob) DeepCopyInto(out *SnoopyJob)

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

func (*SnoopyJob) DeepCopyObject

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

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

type SnoopyJobList

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

SnoopyJobList contains a list of SnoopyJob.

func (*SnoopyJobList) DeepCopy

func (in *SnoopyJobList) DeepCopy() *SnoopyJobList

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

func (*SnoopyJobList) DeepCopyInto

func (in *SnoopyJobList) DeepCopyInto(out *SnoopyJobList)

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

func (*SnoopyJobList) DeepCopyObject

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

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

type SnoopyJobSpec

type SnoopyJobSpec struct {
	// Command is any linux binary that can be run by podtracer in the context of a Pod.
	// Warning: The command must be present in the used potracer image for it to be used.
	Command string `json:"command,omitempty"`

	// Args is a string containing all arguments for a given command.
	Args string `json:"args,omitempty"`

	// LabelSelector is the label to find the target Pods.
	LabelSelector map[string]string `json:"labelSelector,omitempty"`

	// TargetNamespace is the k8s where the target Pod lives.
	TargetNamespace string `json:"targetNamespace,omitempty"`

	// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
	Schedule string `json:"schedule,omitempty"`

	// Timer sets how much time to run the specified command.
	// Valid example values are 10s, 2m, 1h etc.
	Timer string `json:"timer,omitempty"`

	// Ip address for the DataEndpoint where to send collected data.
	DataServiceIP string `json:"dataServiceIP,omitempty"`

	// Port used by the data service on the data endpoint.
	DataServicePort string `json:"dataServicePort,omitempty"`
}

SnoopyJobSpec defines the desired state of SnoopyJob.

func (*SnoopyJobSpec) DeepCopy

func (in *SnoopyJobSpec) DeepCopy() *SnoopyJobSpec

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

func (*SnoopyJobSpec) DeepCopyInto

func (in *SnoopyJobSpec) DeepCopyInto(out *SnoopyJobSpec)

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

type SnoopyJobStatus

type SnoopyJobStatus struct {
	CronJobList []string `json:"cronJobList,omitempty"`
}

SnoopyJobStatus defines the observed state of SnoopyJob.

func (*SnoopyJobStatus) DeepCopy

func (in *SnoopyJobStatus) DeepCopy() *SnoopyJobStatus

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

func (*SnoopyJobStatus) DeepCopyInto

func (in *SnoopyJobStatus) DeepCopyInto(out *SnoopyJobStatus)

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